milvus knowhere源码编译测试

简介

Knowhere 是 Milvus 的核心向量执行引擎,集成了FaissHnswlibAnnoy等多个向量相似度搜索库。

编译环境

操作系统: Ubuntu 22.04.4

gcc/g++:11.4.0

cmake: 3.27.7

安装依赖

shell 复制代码
apt install build-essential libopenblas-dev libaio-dev python3-dev python3-pip

安装cmake:

https://cmake.org/files/v3.27/cmake-3.27.7-linux-x86_64.tar.gz

解压至/usr/local,并加入PATH环境变量(.bashrc)。

编译knowhere

下载源代码:

shell 复制代码
git clone https://github.com/zilliztech/knowhere.git
本次编译的是v2.2.5
git checkout -b branch_v2.2.5 v2.2.5

编译:

shell 复制代码
pip3 install conan==1.61.0
export PATH=$PATH:$HOME/.local/bin
mkdir build && cd build
conan remote add default-conan-local https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local
conan install .. --build=missing -o with_ut=True -s compiler.libcxx=libstdc++11 -s build_type=Release
conan build ..

跑测试用例:

shell 复制代码
./Release/tests/ut/knowhere_tests
相关推荐
m0_579146651 天前
PostgreSQL+Milvus分层存储架构:双写一致性与CAP理论取舍分析
postgresql·架构·milvus·cap
Chasing__Dreams1 天前
向量数据库--Milvus--2--介绍
数据库·milvus
像风一样自由20201 天前
15.Milvus是什么?为什么RAG系统经常使用它?
postgresql·大模型·milvus·rag·智能体
老郑聊AI业财智造2 天前
数据不搬家,也能做检索:Milvus的“湖原生”架构革命
人工智能·ai·架构·软件工程·软件构建·milvus
像风一样自由20202 天前
14.什么时候用pgvector什么时候单独部署Milvus
postgresql·大模型·微调·milvus
海天一色y3 天前
基于FastAPI + Milvus + DeepSeek构建的医学知识问答系统
fastapi·milvus
Jackyzhe3 天前
向量库不再囤数据:Milvus 3.0 零拷贝直读数据湖
milvus
会编程的吕洞宾3 天前
Spring AI 2.0 接 Milvus 做混合检索:RAG 召回率翻倍的实战方案
人工智能·spring·milvus
tryCbest5 天前
搭建企业知识库之Milvus 向量数据库
数据库·milvus
ryan_9965 天前
生产环境向量检索数据库选型:Elasticsearch、Qdrant、Milvus 与 Chroma
数据库·elasticsearch·milvus·向量数据库·chroma·qdrant