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
相关推荐
IT古董4 天前
【开源向量数据库】Milvus简介
数据库·开源·milvus
大龄码农有梦想4 天前
Springboot集成Spring AI和Milvus,验证RAG构建过程
人工智能·spring boot·spring·milvus·知识库·rag·spring ai
小枫@码8 天前
Deepseek 671B + Milvus 搭建个人知识库
milvus
大龄码农有梦想8 天前
Springboot集成Milvus和Embedding服务,实现向量化检索
spring boot·embedding·milvus·向量检索·spring ai
AI-智能11 天前
DeepSeek入门到精通!(清华大学104页ppt下载)
人工智能·程序员·langchain·编程·llama·milvus·deepseek
Zilliz Planet11 天前
低成本+高性能+超灵活!Deepseek 671B+Milvus重新定义知识库搭建
milvus
大龄码农有梦想11 天前
SpringBoot集成Milvus,实现数据增删改查
人工智能·spring boot·ai·springboot·milvus·向量数据库
Carry_NJ11 天前
给milvus添加账号密码
milvus
大龄码农有梦想11 天前
MacOS安装Milvus向量数据库
macos·milvus·向量数据库·安装部署·milvus安装
张登杰踩13 天前
【Milvus】向量数据库pymilvus使用教程
数据库·oracle·milvus