From 61bb1f1dc84e078e397e61456af30c2e363e821a Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 7 May 2024 11:42:05 +0300 Subject: [PATCH] fix: do not use hardware ID in document ID generation --- backend/apps/rag/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/rag/main.py b/backend/apps/rag/main.py index 8d1ea27e1..069e2fb67 100644 --- a/backend/apps/rag/main.py +++ b/backend/apps/rag/main.py @@ -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,