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
400bfa5a
"...git@developer.sourcefind.cn:OpenDAS/torchani.git" did not exist on "648c970ecc19df3a51e52e7c7eb53d980d849da1"
Commit
400bfa5a
authored
May 17, 2024
by
Timothy J. Baek
Browse files
fix: rag config.json
parent
7facfa33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
backend/apps/rag/main.py
backend/apps/rag/main.py
+2
-2
No files found.
backend/apps/rag/main.py
View file @
400bfa5a
...
...
@@ -433,12 +433,12 @@ async def update_query_settings(
form_data
:
QuerySettingsForm
,
user
=
Depends
(
get_admin_user
)
):
app
.
state
.
config
.
RAG_TEMPLATE
=
(
form_data
.
template
if
form_data
.
template
else
RAG_TEMPLATE
,
form_data
.
template
if
form_data
.
template
else
RAG_TEMPLATE
)
app
.
state
.
config
.
TOP_K
=
form_data
.
k
if
form_data
.
k
else
4
app
.
state
.
config
.
RELEVANCE_THRESHOLD
=
form_data
.
r
if
form_data
.
r
else
0.0
app
.
state
.
config
.
ENABLE_RAG_HYBRID_SEARCH
=
(
form_data
.
hybrid
if
form_data
.
hybrid
else
False
,
form_data
.
hybrid
if
form_data
.
hybrid
else
False
)
return
{
"status"
:
True
,
...
...
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