From 47bc6796fac0f02226627590f8177a6f5c40e17e Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Tue, 12 Dec 2023 10:11:22 +0100 Subject: [PATCH] Fixes to graph memory manager --- level_4/Dockerfile | 3 --- .../cognitive_architecture/database/graph_database/graph.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/level_4/Dockerfile b/level_4/Dockerfile index 10a796cd6..76d333d49 100644 --- a/level_4/Dockerfile +++ b/level_4/Dockerfile @@ -38,9 +38,6 @@ RUN apt-get update -q && \ -#RUN playwright install -#RUN playwright install-deps - WORKDIR /app COPY cognitive_architecture/ /app/cognitive_architecture COPY main.py /app diff --git a/level_4/cognitive_architecture/database/graph_database/graph.py b/level_4/cognitive_architecture/database/graph_database/graph.py index e76cc6531..3b36e367b 100644 --- a/level_4/cognitive_architecture/database/graph_database/graph.py +++ b/level_4/cognitive_architecture/database/graph_database/graph.py @@ -272,7 +272,7 @@ class Neo4jGraphDB(AbstractGraphDB): # Update the function to generate Cypher CREATE statements for edges with unique variable names def generate_create_statements_for_edges_with_uuid(self, user_id, edges, unique_mapping, base_node_mapping): create_statements = [] - with_statement = f"WITH {', '.join(unique_mapping.values())}, {user_id}, semantic, episodic, buffer" + with_statement = f"WITH {', '.join(unique_mapping.values())}, user , semantic, episodic, buffer" create_statements.append(with_statement) for edge in edges: @@ -285,7 +285,7 @@ class Neo4jGraphDB(AbstractGraphDB): def generate_memory_type_relationships_with_uuid_and_time_context(self, user_id, nodes, unique_mapping, base_node_mapping): create_statements = [] - with_statement = f"WITH {', '.join(unique_mapping.values())}, {user_id}, semantic, episodic, buffer" + with_statement = f"WITH {', '.join(unique_mapping.values())}, user, semantic, episodic, buffer" create_statements.append(with_statement) # Loop through each node and create relationships based on memory_type