Spaces:
Sleeping
Sleeping
cosmetics
Browse files
document_qa/document_qa_engine.py
CHANGED
@@ -257,7 +257,7 @@ class DocumentQAEngine:
|
|
257 |
self.embeddings_dict[hash] = Chroma.from_texts(texts,
|
258 |
embedding=self.embedding_function,
|
259 |
metadatas=metadata,
|
260 |
-
|
261 |
else:
|
262 |
# if 'documents' in self.embeddings_dict[hash].get() and len(self.embeddings_dict[hash].get()['documents']) == 0:
|
263 |
# self.embeddings_dict[hash].delete(ids=self.embeddings_dict[hash].get()['ids'])
|
|
|
257 |
self.embeddings_dict[hash] = Chroma.from_texts(texts,
|
258 |
embedding=self.embedding_function,
|
259 |
metadatas=metadata,
|
260 |
+
collection_name=hash)
|
261 |
else:
|
262 |
# if 'documents' in self.embeddings_dict[hash].get() and len(self.embeddings_dict[hash].get()['documents']) == 0:
|
263 |
# self.embeddings_dict[hash].delete(ids=self.embeddings_dict[hash].get()['ids'])
|