Merge pull request #2040 from akx/uuid4

fix: do not use hardware ID in document ID generation
This commit is contained in:
Timothy Jaeryang Baek 2024-05-07 11:02:21 -07:00 committed by GitHub
commit 876853f2b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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.uuid1()) for _ in texts],
ids=[str(uuid.uuid4()) for _ in texts],
metadatas=metadatas,
embeddings=embeddings,
documents=texts,