From 9a7dba717825575b7e072990645fdcec9e9937f2 Mon Sep 17 00:00:00 2001 From: JinHai-CN Date: Tue, 15 Oct 2019 18:43:51 +0800 Subject: [PATCH] Update Documents Former-commit-id: e30afa602688b6664e27fd92c598f979669c2cb5 --- core/CHANGELOG.md => CHANGELOG.md | 0 core/CODE_OF_CONDUCT.md => CODE_OF_CONDUCT.md | 0 core/CONTRIBUTING.md => CONTRIBUTING.md | 0 core/NOTICE.md => NOTICE.md | 0 core/README.md | 247 ------------------ 5 files changed, 247 deletions(-) rename core/CHANGELOG.md => CHANGELOG.md (100%) rename core/CODE_OF_CONDUCT.md => CODE_OF_CONDUCT.md (100%) rename core/CONTRIBUTING.md => CONTRIBUTING.md (100%) rename core/NOTICE.md => NOTICE.md (100%) delete mode 100644 core/README.md diff --git a/core/CHANGELOG.md b/CHANGELOG.md similarity index 100% rename from core/CHANGELOG.md rename to CHANGELOG.md diff --git a/core/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md similarity index 100% rename from core/CODE_OF_CONDUCT.md rename to CODE_OF_CONDUCT.md diff --git a/core/CONTRIBUTING.md b/CONTRIBUTING.md similarity index 100% rename from core/CONTRIBUTING.md rename to CONTRIBUTING.md diff --git a/core/NOTICE.md b/NOTICE.md similarity index 100% rename from core/NOTICE.md rename to NOTICE.md diff --git a/core/README.md b/core/README.md deleted file mode 100644 index 7a396335..00000000 --- a/core/README.md +++ /dev/null @@ -1,247 +0,0 @@ -- [Slack Community](https://join.slack.com/t/milvusio/shared_invite/enQtNzY1OTQ0NDI3NjMzLWNmYmM1NmNjOTQ5MGI5NDhhYmRhMGU5M2NhNzhhMDMzY2MzNDdlYjM5ODQ5MmE3ODFlYzU3YjJkNmVlNDQ2ZTk) -- [Blog](https://www.milvus.io/blog/) - -# Welcome to Milvus - -Firstly, welcome, and thanks for your interest in [Milvus](https://milvus.io)! 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, C++ and Java APIs. - -Keep up-to-date with newest releases and latest updates by reading Milvus [release notes](https://milvus.io/docs/en/Releases/v0.4.0/). - -- 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](https://milvus.io/docs/assets/milvus_arch.png) - -## Get started - -### Install and start Milvus server - -#### Use Docker - -Use Docker to install Milvus is a breeze. See the [Milvus install guide](https://milvus.io/docs/en/userguide/install_milvus/) for details. - -#### Use source code - -##### Compilation - -###### Step 1 Install necessary tools - -```shell -# Install tools -Centos7 : -$ yum install gfortran qt4 flex bison -$ yum install mysql-devel mysql - -Ubuntu 16.04 or 18.04: -$ sudo apt-get install gfortran qt4-qmake flex bison -$ sudo apt-get install libmysqlclient-dev mysql-client -``` - -Verify the existence of `libmysqlclient_r.so`: - -```shell -# Verify existence -$ locate libmysqlclient_r.so -``` - -If not, you need to create a symbolic link: - -```shell -# Locate libmysqlclient.so -$ sudo updatedb -$ locate libmysqlclient.so - -# Create symbolic link -$ sudo ln -s /path/to/libmysqlclient.so /path/to/libmysqlclient_r.so -``` - -###### Step 2 Build - -```shell -$ cd [Milvus sourcecode path]/core -$ ./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]/core/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: - ```shell - CentOS 7: - $ yum install curl-devel - Ubuntu 16.04 or 18.04: - $ sudo apt-get install libcurl4-openssl-dev - ``` - -2. Install [CMake 3.14](https://github.com/Kitware/CMake/releases/download/v3.14.6/cmake-3.14.6.tar.gz): - ```shell - $ ./bootstrap --system-curl - $ make - $ sudo make install - ``` - -##### code format and linting -Install clang-format and clang-tidy -```shell -CentOS 7: -$ yum install clang -Ubuntu 16.04: -$ sudo apt-get install clang-tidy -$ sudo su -$ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - -$ apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" -$ apt-get update -$ apt-get install clang-format-6.0 -Ubuntu 18.04: -$ sudo apt-get install clang-tidy clang-format - -$ rm cmake_build/CMakeCache.txt -``` -Check code style -```shell -$ ./build.sh -l -``` -To format the code -```shell -$ cd cmake_build -$ make clang-format -``` - -##### Run unit test - -```shell -$ ./build.sh -u -``` - -##### Run code coverage -Install lcov -```shell -CentOS 7: -$ yum install lcov -Ubuntu 16.04 or 18.04: -$ sudo apt-get install lcov -``` -```shell -$ ./build.sh -u -c -``` -Run mysql docker -```shell -docker pull mysql:latest -docker run -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql:latest -``` -Run code coverage -```shell -$ ./coverage.sh -u root -p 123456 -t 127.0.0.1 -``` - -##### Launch Milvus server - -```shell -$ cd [Milvus root path]/core/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: - -```shell -$ ./stop_server.sh -``` - -To edit Milvus settings in `conf/server_config.yaml` and `conf/log_config.conf`, please read [Milvus Configuration](https://www.milvus-io/docs/master/reference/milvus_config.md). - -### Try your first Milvus program - -#### Run Python example code - -Make sure [Python 3.4](https://www.python.org/downloads/) or higher is already installed and in use. - -Install Milvus Python SDK. - -```shell -# Install Milvus Python SDK -$ pip install pymilvus==0.2.0 -``` - -Create a new file `example.py`, and add [Python example code](https://github.com/milvus-io/pymilvus/blob/branch-0.3.1/examples/AdvancedExample.py) to it. - -Run the example code. - -```python -# Run Milvus Python example -$ python3 example.py -``` - -#### Run C++ example code - -```shell - # Run Milvus C++ example - $ cd [Milvus root path]/core/milvus/bin - $ ./sdk_simple -``` - -## Contribution guidelines - -Contributions are welcomed and greatly appreciated. If you want to contribute to Milvus, please read our [contribution guidelines](CONTRIBUTING.md). 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](https://github.com/milvus-io/milvus/issues) to track issues and bugs. For general questions and public discussions, please join our community. - -## Join the Milvus community - -To connect with other users and contributors, welcome to join our [slack channel](https://join.slack.com/t/milvusio/shared_invite/enQtNzY1OTQ0NDI3NjMzLWNmYmM1NmNjOTQ5MGI5NDhhYmRhMGU5M2NhNzhhMDMzY2MzNDdlYjM5ODQ5MmE3ODFlYzU3YjJkNmVlNDQ2ZTk). - -## Milvus Roadmap - -Please read our [roadmap](https://milvus.io/docs/en/roadmap/) to learn about upcoming features. - -## Resources - -[Milvus official website](https://www.milvus.io) - -[Milvus docs](https://www.milvus.io/docs/en/QuickStart/) - -[Milvus blog](https://www.milvus.io/blog/) - -[Milvus CSDN](https://mp.csdn.net/mdeditor/100041006#) - -[Milvus roadmap](https://milvus.io/docs/en/roadmap/) - - -## License - -[Apache 2.0 license](milvus-io/milvus/LICENSE.md) \ No newline at end of file -- GitLab