lfoppiano commited on
Commit
d2299da
1 Parent(s): 280ee18
Files changed (1) hide show
  1. document_qa/document_qa_engine.py +1 -1
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
- 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'])
 
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'])