docs/docs/application/advanced_tutorial/rag.md
Each knowledge space supports argument customization, including the relevant arguments for vector retrieval and the arguments for knowledge question-answering prompts.
As shown in the figure below, clicking on the "Knowledge" will trigger a pop-up dialog box. Click the "Arguments" button to enter the parameter tuning interface.
<Tabs defaultValue="Embedding" values={[ {label: 'Embedding Argument', value: 'Embedding'}, {label: 'Prompt Argument', value: 'Prompt'}, {label: 'Summary Argument', value: 'Summary'}, ]}> <TabItem value="Embedding" label="Embedding Argument">
:::tip Embedding Arguments
:::tip Prompt Arguments
:::tip summary arguments
set KNOWLEDGE_SEARCH_REWRITE=True in .env file, and restart the server.
# Whether to enable Chat Knowledge Search Rewrite Mode
KNOWLEDGE_SEARCH_REWRITE=True
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
<Tabs defaultValue="Chroma" values={[ {label: 'Chroma', value: 'Chroma'}, {label: 'Milvus', value: 'Milvus'}, {label: 'Weaviate', value: 'Weaviate'}, {label: 'OceanBase', value: 'OceanBase'}, ]}> <TabItem value="Chroma" label="Chroma">
set VECTOR_STORE_TYPE in .env file.
### Chroma vector db config
VECTOR_STORE_TYPE=Chroma
#CHROMA_PERSIST_PATH=/root/DB-GPT/pilot/data
set VECTOR_STORE_TYPE in .env file
### Milvus vector db config
VECTOR_STORE_TYPE=Milvus
MILVUS_URL=127.0.0.1
MILVUS_PORT=19530
#MILVUS_USERNAME
#MILVUS_PASSWORD
#MILVUS_SECURE=
set VECTOR_STORE_TYPE in .env file
### Weaviate vector db config
VECTOR_STORE_TYPE=Weaviate
#WEAVIATE_URL=https://kt-region-m8hcy0wc.weaviate.network
set VECTOR_STORE_TYPE in .env file
OB_HOST=127.0.0.1
OB_PORT=2881
OB_USER=root@test
OB_DATABASE=test
## Optional
# OB_PASSWORD=
## Optional: If {OB_ENABLE_NORMALIZE_VECTOR} is set, the vector stored in OceanBase is normalized.
# OB_ENABLE_NORMALIZE_VECTOR=True