Spaces:
Runtime error
Runtime error
v0.8.4
Browse files- src/chromaIntf.py +3 -2
src/chromaIntf.py
CHANGED
@@ -125,8 +125,9 @@ class ChromaIntf():
|
|
125 |
return await self.vectorstore.add_documents(docs,ids=[metadata['ID']])
|
126 |
|
127 |
async def listDocs(self):
|
128 |
-
|
129 |
-
return
|
|
|
130 |
|
131 |
|
132 |
async def persist(self):
|
|
|
125 |
return await self.vectorstore.add_documents(docs,ids=[metadata['ID']])
|
126 |
|
127 |
async def listDocs(self):
|
128 |
+
collection=self.vectorstore._client.get_collection(self.vectorstore._LANGCHAIN_DEFAULT_COLLECTION_NAME,embedding_function=self.embedding)
|
129 |
+
return collection.get()
|
130 |
+
#return self.vectorstore._client._get(collection_id=self._uuid(collectionInfo.id))
|
131 |
|
132 |
|
133 |
async def persist(self):
|