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
a73a9c73
Commit
a73a9c73
authored
Jul 06, 2024
by
Leo Benkel
Browse files
Remove the tracestack when the collection already exists
parent
824966ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
backend/apps/rag/main.py
backend/apps/rag/main.py
+2
-1
No files found.
backend/apps/rag/main.py
View file @
a73a9c73
...
...
@@ -978,10 +978,11 @@ def store_docs_in_vector_db(docs, collection_name, overwrite: bool = False) -> b
return
True
except
Exception
as
e
:
log
.
exception
(
e
)
if
e
.
__class__
.
__name__
==
"UniqueConstraintError"
:
return
True
log
.
exception
(
e
)
return
False
...
...
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