Skip to content

Conversation

@Charan6924
Copy link

Overview

This PR adds a GraphRetriever class (backend/neo4j_search_tool.py) to enable the agent to query graph-structured data (NIFSTD ontology).

Why this is needed

As discussed in the roadmap, vector search often misses explicit relationships (e.g., Disease -> Affects -> Brain Region). This tool allows the agent to retrieve these direct connections to augment the context window.

Changes

  • Added neo4j dependency.
  • Implemented GraphRetriever with environment variable configuration.
  • Added connection verification and error handling.
  • Added Unit Tests: Included tests/test_neo4j_tool.py to ensure that the graph retrieval tool works.
Screenshot 2026-01-05 at 7 40 54 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant