From e18aa0169e80b8af9241e57f0ab66bf463ac8a4f Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 11 Nov 2024 09:46:21 +0800 Subject: refactor: improve RAG (#982) - set max default_chuck_size to 2000 - set default rag_top_k to 4 - change reciprocal_rank_fusion weights --- config.example.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.example.yaml') diff --git a/config.example.yaml b/config.example.yaml index b969a84..706c8c6 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -37,7 +37,7 @@ summary_prompt: 'This is a summary of the chat history as a recap: ' # See [RAG-Guide](https://github.com/sigoden/aichat/wiki/RAG-Guide) for more details. rag_embedding_model: null # Specifies the embedding model to use rag_reranker_model: null # Specifies the rerank model to use -rag_top_k: 4 # Specifies the number of documents to retrieve +rag_top_k: 5 # Specifies the number of documents to retrieve rag_chunk_size: null # Specifies the chunk size rag_chunk_overlap: null # Specifies the chunk overlap rag_min_score_vector_search: 0 # Specifies the minimum relevance score for vector-based searching -- cgit v1.2.3