mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-04 18:40:10 +00:00
feat: Command-line tool with knowledge repository initialization
This commit is contained in:
@@ -22,16 +22,13 @@ python -m spacy download zh_core_web_sm
|
||||
2.Update your .env, set your vector store type, VECTOR_STORE_TYPE=Chroma
|
||||
(now only support Chroma and Milvus, if you set Milvus, please set MILVUS_URL and MILVUS_PORT)
|
||||
|
||||
2.Run the knowledge repository script in the tools directory.
|
||||
|
||||
```
|
||||
python tools/knowledge_init.py
|
||||
|
||||
--vector_name : your vector store name default_value:default
|
||||
2.Run the knowledge repository initialization command
|
||||
|
||||
```bash
|
||||
dbgpt knowledge load
|
||||
```
|
||||
|
||||
Optionally, you can run `python tools/knowledge_init.py -h` command to see more usage.
|
||||
Optionally, you can run `dbgpt knowledge load --help` command to see more usage.
|
||||
|
||||
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.
|
||||
|
||||
|
Reference in New Issue
Block a user