From 70dd790afc7784ed33876d470ca6db4653237c9b Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 19 Sep 2024 16:44:33 +0200 Subject: [PATCH] refac: default rag params --- backend/open_webui/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index 7ad10ccdcc..86d8a47a3f 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -932,7 +932,7 @@ TIKA_SERVER_URL = PersistentConfig( ) RAG_TOP_K = PersistentConfig( - "RAG_TOP_K", "rag.top_k", int(os.environ.get("RAG_TOP_K", "5")) + "RAG_TOP_K", "rag.top_k", int(os.environ.get("RAG_TOP_K", "3")) ) RAG_RELEVANCE_THRESHOLD = PersistentConfig( "RAG_RELEVANCE_THRESHOLD", @@ -1022,7 +1022,7 @@ RAG_RERANKING_MODEL_TRUST_REMOTE_CODE = ( ) CHUNK_SIZE = PersistentConfig( - "CHUNK_SIZE", "rag.chunk_size", int(os.environ.get("CHUNK_SIZE", "1500")) + "CHUNK_SIZE", "rag.chunk_size", int(os.environ.get("CHUNK_SIZE", "1000")) ) CHUNK_OVERLAP = PersistentConfig( "CHUNK_OVERLAP",