Merge branch 'feature/memory-graph-system' of https://github.com/MoFox-Studio/MoFox_Bot into feature/memory-graph-system
This commit is contained in:
@@ -367,7 +367,7 @@ class VectorStore:
|
|||||||
try:
|
try:
|
||||||
result = self.collection.get(ids=[node_id], include=["metadatas", "embeddings"])
|
result = self.collection.get(ids=[node_id], include=["metadatas", "embeddings"])
|
||||||
|
|
||||||
if result["ids"]:
|
if result and result["ids"]:
|
||||||
return {
|
return {
|
||||||
"id": result["ids"][0],
|
"id": result["ids"][0],
|
||||||
"metadata": result["metadatas"][0] if result["metadatas"] else {},
|
"metadata": result["metadatas"][0] if result["metadatas"] else {},
|
||||||
|
|||||||
Reference in New Issue
Block a user