mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-05 08:06:15 +00:00
remove metadata from embedding
This commit is contained in:
commit
970bd2ae1b
1 changed files with 3 additions and 0 deletions
|
|
@ -153,11 +153,14 @@ class LlamaIndexEsMemoryStore(BaseMemoryStore):
|
|||
return TextNode(id_=memory_node.memory_id,
|
||||
text=memory_node.content,
|
||||
embedding=embedding,
|
||||
text_template="{content}",
|
||||
metadata=memory_node.model_dump(exclude={"content",
|
||||
"vector",
|
||||
"score_recall",
|
||||
"score_rank",
|
||||
"score_rerank"}))
|
||||
|
||||
|
||||
|
||||
@staticmethod
|
||||
def _text_node_2_memory_node(text_node: NodeWithScore) -> MemoryNode:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue