Package com.tnsai.intelligence.rag.graph
Class Neo4jGraphStoreProvider
java.lang.Object
com.tnsai.intelligence.rag.graph.Neo4jGraphStoreProvider
- All Implemented Interfaces:
GraphStoreProvider
Optional Neo4j
GraphStoreProvider.
Opens only when tnsai.graph.neo4j.uri (or
TNSAI_GRAPH_NEO4J_URI) is set and org.neo4j.driver
is on the runtime classpath. The official driver is never a required
tnsai-intelligence dependency and is never shipped from
tnsai-core. This provider is not a framework default: when it
claims a Role it beats the bundled in-memory adapter.
- Since:
- 0.14.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tnsai.intelligence.rag.graph.GraphStoreProvider
GraphStoreProvider.Request -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates the production provider backed by the optional Neo4j driver. -
Method Summary
Modifier and TypeMethodDescriptionname()Stable provider name used in retrieval provenance.open(GraphStoreProvider.Request request) Opens a graph store for the requested Role and source fence.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tnsai.intelligence.rag.graph.GraphStoreProvider
frameworkDefault
-
Field Details
-
NAME
Provenance name recorded on every graph hit.- See Also:
-
URI_PROPERTY
System property that enables the adapter.- See Also:
-
URI_ENV
Environment variable that enables the adapter.- See Also:
-
-
Constructor Details
-
Neo4jGraphStoreProvider
public Neo4jGraphStoreProvider()Creates the production provider backed by the optional Neo4j driver.
-
-
Method Details
-
name
Description copied from interface:GraphStoreProviderStable provider name used in retrieval provenance.- Specified by:
namein interfaceGraphStoreProvider- Returns:
- non-blank provider name
-
open
Description copied from interface:GraphStoreProviderOpens a graph store for the requested Role and source fence.Return
Optional.empty()when this provider is not configured for the Role. Providers should not widen the requested source set.- Specified by:
openin interfaceGraphStoreProvider- Parameters:
request- Role and source selection- Returns:
- a configured store, or empty when unsupported
-