Skip to content

BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.

fix(graph): search entities cypher query str format

Christianb5c870f65554
diff --git a/pyproject.toml b/pyproject.toml
index 12ae6f9..2cd4fab 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "brainapi2"
-version = "1.5.1-dev"
+version = "1.5.3-dev"
description = "Version 1.x.x of the BrainAPI memory layer."
authors = [
{name = "Christian",email = "[email protected]"}
diff --git a/src/lib/neo4j/client.py b/src/lib/neo4j/client.py
index e78b2fe..4e401fe 100644
--- a/src/lib/neo4j/client.py
+++ b/src/lib/neo4j/client.py
@@ -846,7 +846,7 @@ class Neo4jClient(GraphClient):
SKIP {skip}
LIMIT {limit}
"""
- cypher_count = """
+ cypher_count = f"""
MATCH (n)
{"WHERE " + " AND ".join(filters) if filters else ""}
RETURN count(n) AS total