Spaces:
Runtime error
Runtime error
v0.1.4
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
| 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")
|