anubhav77 commited on
Commit
056b42f
·
1 Parent(s): 2732917
Files changed (1) hide show
  1. src/chromaIntf.py +4 -1
src/chromaIntf.py CHANGED
@@ -176,7 +176,10 @@ class ChromaIntf():
176
  print(doc)
177
  try:
178
  print(metadata['ID'])
179
- return self.vectorstore.add_documents(docs,ids=[metadata['ID']])
 
 
 
180
  except Exception as ex:
181
  logger.exception("exception in adding",exc_info=True)
182
  print("inside expect of addText")
 
176
  print(doc)
177
  try:
178
  print(metadata['ID'])
179
+ ids=[doc.metadata['ID'] for doc in docs]
180
+ print("ids are:")
181
+ print(ids)
182
+ return self.vectorstore.add_documents(docs,ids=ids)
183
  except Exception as ex:
184
  logger.exception("exception in adding",exc_info=True)
185
  print("inside expect of addText")