Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
b3d136b3
Unverified
Commit
b3d136b3
authored
Jun 17, 2024
by
Que Nguyen
Committed by
GitHub
Jun 17, 2024
Browse files
Refactored config.py
Renamed RAG_WEB_SEARCH_WHITE_LIST_DOMAINS to RAG_WEB_SEARCH_DOMAIN_FILTER_LIST
parent
a3ac9ee7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
backend/config.py
backend/config.py
+8
-5
No files found.
backend/config.py
View file @
b3d136b3
...
@@ -903,12 +903,15 @@ RAG_WEB_SEARCH_ENGINE = PersistentConfig(
...
@@ -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",
],
],
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment