Renamed unknown node type (#2649)
This commit is contained in:
@@ -327,8 +327,8 @@ class MemoryGraph:
|
|||||||
relationship = item["relationship"]
|
relationship = item["relationship"]
|
||||||
|
|
||||||
# types
|
# types
|
||||||
source_type = entity_type_map.get(source, "unknown")
|
source_type = entity_type_map.get(source, "__User__")
|
||||||
destination_type = entity_type_map.get(destination, "unknown")
|
destination_type = entity_type_map.get(destination, "__User__")
|
||||||
|
|
||||||
# embeddings
|
# embeddings
|
||||||
source_embedding = self.embedding_model.embed(source)
|
source_embedding = self.embedding_model.embed(source)
|
||||||
|
|||||||
@@ -369,8 +369,8 @@ class MemoryGraph:
|
|||||||
relationship = item["relationship"]
|
relationship = item["relationship"]
|
||||||
|
|
||||||
# types
|
# types
|
||||||
source_type = entity_type_map.get(source, "unknown")
|
source_type = entity_type_map.get(source, "__User__")
|
||||||
destination_type = entity_type_map.get(destination, "unknown")
|
destination_type = entity_type_map.get(destination, "__User__")
|
||||||
|
|
||||||
# embeddings
|
# embeddings
|
||||||
source_embedding = self.embedding_model.embed(source)
|
source_embedding = self.embedding_model.embed(source)
|
||||||
|
|||||||
Reference in New Issue
Block a user