mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-07 08:26:06 +00:00
remove metadata from embedding
This commit is contained in:
parent
924b67fca2
commit
30f39ee1ee
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