mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +00:00
Refactored config.py
Renamed RAG_WEB_SEARCH_WHITE_LIST_DOMAINS to RAG_WEB_SEARCH_DOMAIN_FILTER_LIST
This commit is contained in:
parent
a3ac9ee774
commit
b3d136b3b3
@ -903,12 +903,15 @@ RAG_WEB_SEARCH_ENGINE = PersistentConfig(
|
|||||||
os.getenv("RAG_WEB_SEARCH_ENGINE", ""),
|
os.getenv("RAG_WEB_SEARCH_ENGINE", ""),
|
||||||
)
|
)
|
||||||
|
|
||||||
RAG_WEB_SEARCH_WHITE_LIST_DOMAINS = PersistentConfig(
|
# You can provide a list of your own websites to filter after performing a web search.
|
||||||
"RAG_WEB_SEARCH_WHITE_LIST_DOMAINS",
|
# This ensures the highest level of safety and reliability of the information sources.
|
||||||
"rag.rag_web_search_white_list_domains",
|
RAG_WEB_SEARCH_DOMAIN_FILTER_LIST = PersistentConfig(
|
||||||
|
"RAG_WEB_SEARCH_DOMAIN_FILTER_LIST",
|
||||||
|
"rag.rag.web.search.domain.filter_list",
|
||||||
[
|
[
|
||||||
# "example.com",
|
# "wikipedia.com",
|
||||||
# "anotherdomain.com",
|
# "wikimedia.org",
|
||||||
|
# "wikidata.org",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user