Cpp SDK for Milvus.
To contribute to this project, please read our contribution guidelines and Development Guide first.
The following collection shows Milvus versions and recommended milvus-cpp-sdk versions:
| Milvus version | Recommended SDK version |
|---|---|
| 2.3.x | 2.3(branch) |
| 2.4.x | v2.4.1 |
| 2.5.x | v2.5.4 |
| 2.6.x | v2.6.2 |
- C++ compiler with C++14 support (GCC 7+, Clang 5+, MSVC 2017+)
- CMake 3.14+
- Python 3 with pip (for Conan and build tools)
git clone https://github.com/milvus-io/milvus-sdk-cpp.git
cd milvus-sdk-cpp
bash scripts/install_deps.sh
makemake test # unit tests + integration tests
make st # system tests (requires Docker)
make coverage # code coverage reportmake install # install to /usr/localOr specify a custom install prefix:
make install CMAKE_INSTALL_PREFIX=/path/to/installThe project uses Conan 2 to manage dependencies. The scripts/build.sh handles Conan integration automatically. You can also use Conan directly:
conan install . --build=missing -s build_type=Release
cmake --preset conan-release
cmake --build build/ReleaseSee Development Guide for more details.