mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-06 02:48:22 +00:00
fix _text_node_2_memory_node
This commit is contained in:
parent
83de295eff
commit
85962e34bf
1 changed files with 1 additions and 1 deletions
|
|
@ -149,5 +149,5 @@ class LlamaIndexEsMemoryStore(BaseMemoryStore):
|
|||
Returns:
|
||||
MemoryNode: The converted MemoryNode with text and metadata from the NodeWithScore.
|
||||
"""
|
||||
text_node.metadata["vector"] = text_node.embedding
|
||||
text_node.metadata["vector"] = text_node.embedding if text_node.embedding else []
|
||||
return MemoryNode(content=text_node.text, **text_node.metadata)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue