From 3b3d39cef0211b607d51360d0739022f953ba1a7 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 19 Jun 2024 12:15:54 +0800 Subject: refactor: rag add rag_minimum_score config (#617) --- config.example.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config.example.yaml') diff --git a/config.example.yaml b/config.example.yaml index 6e4416c..9813ced 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -39,8 +39,10 @@ rag_embedding_model: null rag_chunk_size: null # Specifies the chunk overlap rag_chunk_overlap: null -# Determines how many relevant documents are retrieved +# Specifies the number of documents to retrieve rag_top_k: 4 +# Specifies the minimum relevance score for retrieved documents +rag_minimum_score: 0 # Defines the query structure using variables like __CONTEXT__ and __INPUT__ to tailor searches to specific needs rag_template: | -- cgit v1.2.3