mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
refac: default rag params
This commit is contained in:
parent
e99cba53fe
commit
70dd790afc
@ -932,7 +932,7 @@ TIKA_SERVER_URL = PersistentConfig(
|
|||||||
)
|
)
|
||||||
|
|
||||||
RAG_TOP_K = 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 = PersistentConfig(
|
||||||
"RAG_RELEVANCE_THRESHOLD",
|
"RAG_RELEVANCE_THRESHOLD",
|
||||||
@ -1022,7 +1022,7 @@ RAG_RERANKING_MODEL_TRUST_REMOTE_CODE = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
CHUNK_SIZE = PersistentConfig(
|
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 = PersistentConfig(
|
||||||
"CHUNK_OVERLAP",
|
"CHUNK_OVERLAP",
|
||||||
|
Loading…
Reference in New Issue
Block a user