Package com.tnsai.intelligence.rag.graph
Class KnowledgeToolsGraphStoreProvider
java.lang.Object
com.tnsai.intelligence.rag.graph.KnowledgeToolsGraphStoreProvider
- All Implemented Interfaces:
GraphStoreProvider
Built-in graph adapter for live
KnowledgeTools triples.
Claims a Role when tnsai-tools is on the classpath and the
requested source fence is empty or contains SOURCE. Missing
tools leave the Role unclaimed, so @Search(strategy = GRAPH)
without this artifact still fails as a configuration error rather than
succeeding against an empty in-process bag. A consumer-supplied
provider that also claims the Role wins: this adapter is a
framework default.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanFramework-bundled fallback adapter.name()Stable provider name used in retrieval provenance.open(GraphStoreProvider.Request request) Opens a graph store for the requested Role and source fence.
-
Field Details
-
NAME
Provenance name recorded on every graph hit.- See Also:
-
SOURCE
Source identifier stamped on every node produced from tool triples.- See Also:
-
-
Constructor Details
-
KnowledgeToolsGraphStoreProvider
public KnowledgeToolsGraphStoreProvider()
-
-
Method Details
-
name
Description copied from interface:GraphStoreProviderStable provider name used in retrieval provenance.- Specified by:
namein interfaceGraphStoreProvider- Returns:
- non-blank provider name
-
frameworkDefault
public boolean frameworkDefault()Description copied from interface:GraphStoreProviderFramework-bundled fallback adapter.When a non-default provider also claims the Role, the registry drops every default so an explicit consumer adapter wins. Defaults still serve a Role that no other provider claims.
- Specified by:
frameworkDefaultin interfaceGraphStoreProvider- Returns:
truefor the bundled KnowledgeTools adapter
-
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
-