From b3d136b3b33781a4607ebdce952c3ec7daad204c Mon Sep 17 00:00:00 2001 From: Que Nguyen Date: Mon, 17 Jun 2024 14:33:23 +0700 Subject: [PATCH] Refactored config.py Renamed RAG_WEB_SEARCH_WHITE_LIST_DOMAINS to RAG_WEB_SEARCH_DOMAIN_FILTER_LIST --- backend/config.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/backend/config.py b/backend/config.py index d19a81fce..5981debb0 100644 --- a/backend/config.py +++ b/backend/config.py @@ -903,12 +903,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", +# You can provide a list of your own websites to filter after performing a web search. +# This ensures the highest level of safety and reliability of the information sources. +RAG_WEB_SEARCH_DOMAIN_FILTER_LIST = PersistentConfig( + "RAG_WEB_SEARCH_DOMAIN_FILTER_LIST", + "rag.rag.web.search.domain.filter_list", [ - # "example.com", - # "anotherdomain.com", + # "wikipedia.com", + # "wikimedia.org", + # "wikidata.org", ], )