From 061646fc8e565bb3d7c314763dd294e1250f997f Mon Sep 17 00:00:00 2001 From: aries-ckt <916701291@qq.com> Date: Fri, 26 May 2023 15:09:47 +0800 Subject: [PATCH] fix:milvus readme --- README.md | 6 ++++-- README.zh.md | 2 ++ requirements.txt | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a6afcd808..7f3d18de1 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,9 @@ To use multiple models, modify the LLM_MODEL parameter in the .env configuration 1.Place personal knowledge files or folders in the pilot/datasets directory. -2.Run the knowledge repository script in the tools directory. +2.set .env configuration set your vector store type, eg:VECTOR_STORE_TYPE=Chroma, now we support Chroma and Milvus(version > 2.1) + +3.Run the knowledge repository script in the tools directory. ```bash & python tools/knowledge_init.py @@ -204,7 +206,7 @@ To use multiple models, modify the LLM_MODEL parameter in the .env configuration ``` -3.Add the knowledge repository in the interface by entering the name of your knowledge repository (if not specified, enter "default") so you can use it for Q&A based on your knowledge base. +4.Add the knowledge repository in the interface by entering the name of your knowledge repository (if not specified, enter "default") so you can use it for Q&A based on your knowledge base. Note that the default vector model used is text2vec-large-chinese (which is a large model, so if your personal computer configuration is not enough, it is recommended to use text2vec-base-chinese). Therefore, ensure that you download the model and place it in the models directory. diff --git a/README.zh.md b/README.zh.md index 9e33815bf..2c20b65ba 100644 --- a/README.zh.md +++ b/README.zh.md @@ -194,6 +194,8 @@ $ python webserver.py 2.在.env文件指定你的向量数据库类型,VECTOR_STORE_TYPE(默认Chroma),目前支持Chroma,Milvus(需要设置MILVUS_URL和MILVUS_PORT) +注意Milvus版本需要>2.1 + 3.在tools目录执行知识入库脚本() 如果是选择默认知识库,不需要指定 --vector_name, 默认default diff --git a/requirements.txt b/requirements.txt index 19d8ca34e..28da42929 100644 --- a/requirements.txt +++ b/requirements.txt @@ -46,7 +46,7 @@ wandb llama-index==0.5.27 pymysql unstructured==0.6.3 -grpcio==1.54.2 +grpcio==1.47.5 auto-gpt-plugin-template pymdown-extensions