haive.agents.memory.neo4j_schema ================================ .. py:module:: haive.agents.memory.neo4j_schema .. autoapi-nested-parse:: Neo4j schema initialization and Cypher templates for the Memory KG. Schema: (:Entity {name, type, user_id, created_at}) (:Memory {content, importance, user_id, created_at}) (:Summary {content, token_count, user_id, created_at}) Relationships: (Entity)-[:RELATES_TO {predicate}]->(Entity) (Entity)-[:MENTIONED_IN]->(Memory) (Memory)-[:SUMMARIZED_BY]->(Summary) Compatible with the existing graph_db RAG agent's Neo4j patterns. Uses same env vars: NEO4J_URI, NEO4J_USER, NEO4J_PASSWORD, NEO4J_DATABASE. Functions --------- .. autoapisummary:: haive.agents.memory.neo4j_schema.init_schema Module Contents --------------- .. py:function:: init_schema(driver, database = 'neo4j') Initialize the Neo4j schema with constraints and indexes. :param driver: Neo4j driver instance :param database: Database name