update readme

This commit is contained in:
csunny 2023-05-20 10:06:30 +08:00
parent 9e9d7932fa
commit 5a434d3be4
2 changed files with 18 additions and 2 deletions

View File

@ -183,8 +183,8 @@ We provide a user interface for Gradio, which allows you to use DB-GPT through o
2.Run the knowledge repository script in the tools directory. 2.Run the knowledge repository script in the tools directory.
``` ```bash
python tools/knowledge_init.py & python tools/knowledge_init.py
--vector_name : your vector store name default_value:default --vector_name : your vector store name default_value:default
--append: append mode, True:append, False: not append default_value:False --append: append mode, True:append, False: not append default_value:False
@ -194,6 +194,15 @@ python tools/knowledge_init.py
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. 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.
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. 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.
If nltk-related errors occur during the use of the knowledge base, you need to install the nltk toolkit. For more details, please refer to: [nltk documents](https://www.nltk.org/data.html)
Run the Python interpreter and type the commands:
```bash
>>> import nltk
>>> nltk.download()
```
## Acknowledgement ## Acknowledgement
The achievements of this project are thanks to the technical community, especially the following projects: The achievements of this project are thanks to the technical community, especially the following projects:

View File

@ -196,6 +196,13 @@ python tools/knowledge_init.py
注意这里默认向量模型是text2vec-large-chinese(模型比较大如果个人电脑配置不够建议采用text2vec-base-chinese),因此确保需要将模型download下来放到models目录中。 注意这里默认向量模型是text2vec-large-chinese(模型比较大如果个人电脑配置不够建议采用text2vec-base-chinese),因此确保需要将模型download下来放到models目录中。
如果在使用知识库时遇到与nltk相关的错误您需要安装nltk工具包。更多详情请参见[nltk文档](https://www.nltk.org/data.html)
Run the Python interpreter and type the commands:
```bash
>>> import nltk
>>> nltk.download()
```
## 感谢 ## 感谢
项目取得的成果,需要感谢技术社区,尤其以下项目。 项目取得的成果,需要感谢技术社区,尤其以下项目。