Repository navigation
feat(nodes, ai): add graph base class; make FalkorDB a real graph node (stage) - #1599
Conversation
FalkorDB was classified as a vector store without implementing store behaviour, so it could not be wired into a pipeline. Give graph databases a proper home instead of overloading the database base. - Add GraphGlobalBase / GraphInstanceBase under ai/common/graph/, mirroring ai/common/database/: lifecycle, config parsing, schema reflection, and the NL->query loop (LLM -> EXPLAIN validate -> repair on error). Read-only is enforced by the engine (FalkorDB GRAPH.RO_QUERY), with is_cypher_safe as defence-in-depth only. - Rename tool_falkordb -> graph_falkordb and derive it from the base: it gains the questions lane (table/text/answers) plus get_data/get_query/execute/ get_schema/dialect tools, and keeps its FalkorDB-specific query/list_graphs. - Add the 'graph' classType (UI placement) and a Graph Databases docs section. - get_data clamps the caller limit to the driver read cap and asks for limit+1 rows, so 'truncated' is honest; get_data/get_query/execute normalise the input envelope and validate via ai.common.utils; isValid parsed with parse_bool; sanitise/format helpers kept in step with db_instance_base. - Neither the tool path (get_query) nor the lane path (writeQuestions) emits a broken or unsafe query as a prose answer; both surface an error instead. Neo4j is intentionally left untouched; migrating it onto this base is the next PR. Renaming the provider is breaking for saved pipes, which update when the new services.json ships. Co-authored review by @asclearuc and @dylan-savage.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🤖 Internal: Discord sync markerAuto-managed by the Discord notification workflow. Stores the linked Discord message ID and forum thread ID. Do not edit or delete. |
Summary
stage— single squashed commit04f9dac3, identical to the develop PR feat(nodes, ai): add graph base class; make FalkorDB a real graph node #1584 (approved by @dylan-savage; @asclearuc review addressed).GraphGlobalBase/GraphInstanceBaseunderai/common/graph/, renamestool_falkordb→graph_falkordband makes it a real graph node (questions lane +get_data/get_query/execute/get_schema/dialect), and adds thegraphclassType.GRAPH.RO_QUERY); honesttruncated; neither the tool path nor the lane path emits broken/unsafe Cypher as a prose answer.Type
feature (+ refactor: node rename)
Testing
nodes/test/test_graph_falkordb.py, 38 tests)./builder nodes:test→ 1647 passed / 0 failed on the source branch; node tests green after cherry-pick onto stage)./builder testpassesChecklist
services.jsonships. Neo4j is intentionally untouched (separate PR).Linked Issue
Fixes #1583
Tracks the develop PR: #1584. This branch is the same squashed commit cherry-picked onto
stagefor the release, with no unrelated develop commits pulled in.