Implement domain whitelisting for web search results

This commit is contained in:
Que Nguyen authored and GitHub committed 2024-06-13 07:14:48 +07:00
1 parent a382e82dec
commit 7b5f434a07
10 files changed
+63 -29

No files matched your search

+9
View File
@@ -894,6 +894,15 @@ RAG_WEB_SEARCH_ENGINE = PersistentConfig(
os.getenv("RAG_WEB_SEARCH_ENGINE", ""),
)
RAG_WEB_SEARCH_WHITE_LIST_DOMAINS = PersistentConfig(
"RAG_WEB_SEARCH_WHITE_LIST_DOMAINS",
"rag.rag_web_search_white_list_domains",
[
# "example.com",
# "anotherdomain.com",
],
)
SEARXNG_QUERY_URL = PersistentConfig(
"SEARXNG_QUERY_URL",
"rag.web.search.searxng_query_url",