Package com.tnsai.intelligence.rag.graph
Class InMemoryGraphStoreProvider
java.lang.Object
com.tnsai.intelligence.rag.graph.InMemoryGraphStoreProvider
- All Implemented Interfaces:
GraphStoreProvider
Bundled FILE-corpus graph adapter.
Claims a Role that has FILE Knowledge documents. The
store is built from the binding-time corpus when present, otherwise from
the Role's FILE annotations. Roles without FILE sources stay unclaimed
so GRAPH remains a missing-capability error unless another adapter
(KnowledgeTools, Neo4j, or a consumer) claims them. This provider is a
framework default: an
explicit consumer adapter wins.
- 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:
-
-
Constructor Details
-
InMemoryGraphStoreProvider
public InMemoryGraphStoreProvider()
-
-
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
-