Package com.tnsai.intelligence.rag.graph
Interface GraphStore
- All Known Implementing Classes:
InMemoryGraphStore,Neo4jGraphStore
public interface GraphStore
Vendor-neutral graph data access contract used by graph retrieval.
Implementations locate query-relevant seed nodes and expose outgoing
neighbors. Traversal, cycle handling, path scoring, source fencing, and
result ranking remain framework responsibilities. The built-in
knowledge-tools adapter maps live KnowledgeTools triples
onto this contract; it is not a separate graph.
- Since:
- 0.13.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA directed graph edge.static final recordAn outgoing edge paired with its destination node.static final recordA graph node that can become a retrieved document.static final recordA scored query seed. -
Method Summary
Modifier and TypeMethodDescriptionFinds graph nodes that can seed traversal for a query.Returns the outgoing edges and destination nodes for a node.
-
Method Details
-
findSeeds
Finds graph nodes that can seed traversal for a query.- Parameters:
query- query text, nevernulllimit- maximum number of seeds requested- Returns:
- seeds, never
null
-
neighbors
Returns the outgoing edges and destination nodes for a node.- Parameters:
nodeId- expanded node identifier- Returns:
- neighbors, never
null
-