跳到主要内容
版本:v0.6.0

RAG Parameter Adjustment

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. image

image

Embedding Arguments
  • topk:the top k vectors based on similarity score.
  • recall_score:set a similarity threshold score for the retrieval of similar vectors. between 0 and 1. default 0.3.
  • recall_type:recall type. now nly support topk by vector similarity.
  • model:A model used to create vector representations of text or other data.
  • chunk_size:The size of the data chunks used in processing.default 500.
  • chunk_overlap:The amount of overlap between adjacent data chunks.default 50.

Knowledge Query Rewrite

set KNOWLEDGE_SEARCH_REWRITE=True in .env file, and restart the server.

# Whether to enable Chat Knowledge Search Rewrite Mode
KNOWLEDGE_SEARCH_REWRITE=True

Change Vector Database

set VECTOR_STORE_TYPE in .env file.

### Chroma vector db config
VECTOR_STORE_TYPE=Chroma
#CHROMA_PERSIST_PATH=/root/DB-GPT/pilot/data