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