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
a6c154d8
Commit
a6c154d8
authored
Mar 31, 2024
by
Timothy J. Baek
Browse files
feat: rag context logging
parent
7563619e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
backend/apps/rag/utils.py
backend/apps/rag/utils.py
+2
-0
No files found.
backend/apps/rag/utils.py
View file @
a6c154d8
...
...
@@ -156,6 +156,8 @@ def rag_messages(docs, messages, template, k, embedding_function):
relevant_contexts
.
append
(
context
)
log
.
debug
(
f
"relevant_contexts:
{
relevant_contexts
}
"
)
context_string
=
""
for
context
in
relevant_contexts
:
if
context
:
...
...
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