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
876853f2
Unverified
Commit
876853f2
authored
May 07, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
May 07, 2024
Browse files
Merge pull request #2040 from akx/uuid4
fix: do not use hardware ID in document ID generation
parents
838c6f82
61bb1f1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/apps/rag/main.py
backend/apps/rag/main.py
+1
-1
No files found.
backend/apps/rag/main.py
View file @
876853f2
...
...
@@ -622,7 +622,7 @@ def store_docs_in_vector_db(docs, collection_name, overwrite: bool = False) -> b
for
batch
in
create_batches
(
api
=
CHROMA_CLIENT
,
ids
=
[
str
(
uuid
.
uuid
1
())
for
_
in
texts
],
ids
=
[
str
(
uuid
.
uuid
4
())
for
_
in
texts
],
metadatas
=
metadatas
,
embeddings
=
embeddings
,
documents
=
texts
,
...
...
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