diff --git a/mem0/memory/graph_memory.py b/mem0/memory/graph_memory.py index 760d864a..685862a1 100644 --- a/mem0/memory/graph_memory.py +++ b/mem0/memory/graph_memory.py @@ -327,8 +327,8 @@ class MemoryGraph: relationship = item["relationship"] # types - source_type = entity_type_map.get(source, "unknown") - destination_type = entity_type_map.get(destination, "unknown") + source_type = entity_type_map.get(source, "__User__") + destination_type = entity_type_map.get(destination, "__User__") # embeddings source_embedding = self.embedding_model.embed(source) diff --git a/mem0/memory/memgraph_memory.py b/mem0/memory/memgraph_memory.py index 3ebc4254..8071c1c0 100644 --- a/mem0/memory/memgraph_memory.py +++ b/mem0/memory/memgraph_memory.py @@ -369,8 +369,8 @@ class MemoryGraph: relationship = item["relationship"] # types - source_type = entity_type_map.get(source, "unknown") - destination_type = entity_type_map.get(destination, "unknown") + source_type = entity_type_map.get(source, "__User__") + destination_type = entity_type_map.get(destination, "__User__") # embeddings source_embedding = self.embedding_model.embed(source)