mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
Investigating upsert
This commit is contained in:
@@ -133,6 +133,10 @@ class KnowledgeStorage(BaseKnowledgeStorage):
|
||||
else:
|
||||
metadatas = cast(chromadb.Metadata, metadata)
|
||||
|
||||
print("DOCUMENTS", documents)
|
||||
for doc, idx in enumerate(documents):
|
||||
print(f"DOC: {idx}", doc)
|
||||
|
||||
ids = [
|
||||
hashlib.sha256(doc.encode("utf-8")).hexdigest() for doc in documents
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user