Agent Zero AI framework
Merge branch 'development' into testing
frdel65bc8348108c
diff --cc python/helpers/vector_db.pyindex 4ffdb376b,8c6a0edf3..aa053f6b4--- a/python/helpers/vector_db.py+++ b/python/helpers/vector_db.py@@@ -63,10 -61,16 +66,17 @@@ class VectorDBreturn tot+ def delete_documents_by_ids(self, ids:list[str]):+ # pre = self.db.get(ids=ids)["ids"]+ self.db.delete(ids=ids)+ # post = self.db.get(ids=ids)["ids"]+ #TODO? compare pre and post+ return len(ids)+def insert_document(self, data):id = str(uuid.uuid4())- self.db.add_documents(documents=[ Document(data, metadata={"id": id}) ])+ self.db.add_documents(documents=[ Document(data, metadata={"id": id}) ], ids=[id])+return id