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
bcc27e38
Commit
bcc27e38
authored
Jun 18, 2024
by
Timothy J. Baek
Browse files
fix
parent
35026849
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/main.py
backend/main.py
+1
-1
No files found.
backend/main.py
View file @
bcc27e38
...
...
@@ -357,7 +357,7 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
if
"files"
in
data
:
data
=
{
**
data
}
rag_context
,
citations
=
get_rag_context
(
doc
s
=
data
[
"files"
],
file
s
=
data
[
"files"
],
messages
=
data
[
"messages"
],
embedding_function
=
rag_app
.
state
.
EMBEDDING_FUNCTION
,
k
=
rag_app
.
state
.
config
.
TOP_K
,
...
...
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