milvus/cpp
yudong.cai b0fe84cd81 MS-574 save config in map
Former-commit-id: 961dc6749c1b262e489a825cce81586bf27f2c18
2019-09-21 18:14:29 +08:00
..
build-support MS-575 Add Clang-format & Clang-tidy & Cpplint 2019-09-20 06:57:23 +00:00
cmake MS-575 Add Clang-format & Clang-tidy & Cpplint 2019-09-20 06:57:23 +00:00
conf MS-574 add GET config APIs 2019-09-21 15:02:35 +08:00
scripts rename milvus_grpc_server to milvus_server 2019-08-13 17:29:13 +08:00
src MS-574 save config in map 2019-09-21 18:14:29 +08:00
thirdparty refactor cmake 2019-09-18 15:49:47 +08:00
unittest MS-574 rename ServerConfig to Config 2019-09-21 16:39:48 +08:00
.gitignore MS-575 Add Clang-format & Clang-tidy & Cpplint 2019-09-20 06:57:23 +00:00
CHANGELOG.md MS-578 makesure milvus5.0 dont crack 0.3.1 data 2019-09-20 11:33:10 +08:00
CMakeLists.txt MS-575 Add Clang-format & Clang-tidy & Cpplint 2019-09-20 06:57:23 +00:00
CODE OF CONDUCT.md Add new file 2019-09-17 14:39:43 +08:00
CONTRIBUTING.md Update CONTRIBUTING.md 2019-09-17 14:25:31 +08:00
LICENSE.txt Add LICENSE.txt and RELEASE.md 2019-04-14 20:12:34 +08:00
Milvus-EULA-cn.md Add Milvus EULA 2019-07-13 23:53:15 +08:00
Milvus-EULA-en.md Add Milvus EULA 2019-07-13 23:53:15 +08:00
NOTICE.md MS-569 Complete the NOTICE.md 2019-09-18 19:53:08 +08:00
README.md modify readme 2019-09-20 11:44:52 +08:00
RELEASE.md Add LICENSE.txt and RELEASE.md 2019-04-14 20:12:34 +08:00
build.sh remove gpu_cache_capacity config 2019-09-12 11:27:19 +08:00
coverage.sh MS-558 refine status code 2019-09-18 12:49:29 +08:00
start_server.sh rename milvus_grpc_server to milvus_server 2019-08-13 17:29:13 +08:00
stop_server.sh remove old names from source code 2019-06-14 17:29:29 +08:00
version.h.macro remove old names from source code 2019-06-14 17:29:29 +08:00

README.md

Welcome to Milvus

Firstly, welcome, and thanks for your interest in Milvus! No matter who you are, what you do, we greatly appreciate your contribution to help us reinvent data science with Milvus.

What is Milvus

Milvus is an open source vector search engine that supports similarity search of large-scale vectors. Built on optimized indexing algorithm, it is compatible with major AI/ML models.

Milvus was developed by ZILLIZ, a tech startup that intends to reinvent data science, with the purpose of providing enterprises with efficient and scalable similarity search and analysis of feature vectors and unstructured data.

Milvus provides stable Python and C++ APIs, as well as RESTful API.

Keep up-to-date with newest releases and latest updates by reading Releases.

  • GPU-accelerated search engine

    Milvus is designed for the largest scale of vector index. CPU/GPU heterogeneous computing architecture allows you to process data at a speed 1000 times faster.

  • Intelligent index

    With a “Decide Your Own Algorithm” approach, you can embed machine learning and advanced algorithms into Milvus without the headache of complex data engineering or migrating data between disparate systems. Milvus is built on optimized indexing algorithm based on quantization indexing, tree-based and graph indexing methods.

  • Strong scalability

    The data is stored and computed on a distributed architecture. This lets you scale data sizes up and down without redesigning the system.

Architecture

Milvus_arch

Get started

Install and start Milvus server

Use Docker

Use Docker to install Milvus is a breeze. See the Milvus install guide for details.

Use source code

Compilation
Step 1 Install necessary tools
# Install tools
Centos7 : 
$ yum install gfortran qt4 flex bison mysql-devel mysql
    
Ubuntu16.04 : 
$ sudo apt-get install gfortran qt4-qmake flex bison libmysqlclient-dev mysql-client
       

Verify the existence of libmysqlclient_r.so:

# Verify existence
$ locate libmysqlclient_r.so

If not, you need to create a symbolic link:

# Create symbolic link
$ sudo ln -s /path/to/libmysqlclient.so /path/to/libmysqlclient_r.so
Step 2 Build
$ cd [Milvus sourcecode path]/cpp
$ ./build.sh -t Debug
or 
$ ./build.sh -t Release

When the build is completed, all the stuff that you need in order to run Milvus will be installed under [Milvus root path]/cpp/milvus.

If you encounter the following error message, protocol https not supported or disabled in libcurl

please reinstall CMake with curl:

  1. Install curl development files:

    CentOS 7:   
    $ yum install curl-devel
    Ubuntu 16.04: 
    $ sudo apt-get install libcurl4-openssl-dev
    
  2. Install CMake 3.14:

    $ ./bootstrap --system-curl 
    $ make 
    $ sudo make install
    
Run unit test
$ ./build.sh -u
or
$ ./build.sh --unittest
Run code coverage
CentOS 7:   
$ yum install lcov
Ubuntu 16.04: 
$ sudo apt-get install lcov
    
$ ./build.sh -u -c
Launch Milvus server
$ cd [Milvus root path]/cpp/milvus

Add lib/ directory to LD_LIBRARY_PATH

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/milvus/lib

Then start Milvus server:

$ cd scripts
$ ./start_server.sh

To stop Milvus server, run:

$ ./stop_server.sh

To edit Milvus settings in conf/server_config.yaml and conf/log_config.conf, please read Milvus Configuration.

Try your first Milvus program

Run Python example code

Make sure Python 3.4 or higher is already installed and in use.

Install Milvus Python SDK.

# Install Milvus Python SDK
$ pip install pymilvus==0.2.0

Create a new file example.py, and add Python example code to it.

Run the example code.

# Run Milvus Python example
$ python3 example.py

Run C++ example code

 # Run Milvus C++ example
 $ cd [Milvus root path]/cpp/milvus/bin
 $ ./sdk_simple

Contribution guidelines

Contributions are welcomed and greatly appreciated. If you want to contribute to Milvus, please read the contribution guidelines. This project adheres to the [code of conduct](CODE OF CONDUCT.md) of Milvus. By participating, you are expected to uphold this code.

We use GitHub issues to track issues and bugs. For general questions and discussions, please go to [Milvus Forum].

Join the Milvus community

For public discussion of Milvus, please join our discussion group.

Milvus Roadmap

Please read our roadmap to learn about upcoming features.

Resources

Milvus official website

Milvus docs

Milvus blog

Milvus CSDN

Milvus roadmap

License

Apache 2.0 license