Class InMemoryGraphStoreProvider

java.lang.Object
com.tnsai.intelligence.rag.graph.InMemoryGraphStoreProvider
All Implemented Interfaces:
GraphStoreProvider

public final class InMemoryGraphStoreProvider extends Object implements 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
  • Field Details

  • Constructor Details

    • InMemoryGraphStoreProvider

      public InMemoryGraphStoreProvider()
  • Method Details

    • name

      public String name()
      Description copied from interface: GraphStoreProvider
      Stable provider name used in retrieval provenance.
      Specified by:
      name in interface GraphStoreProvider
      Returns:
      non-blank provider name
    • frameworkDefault

      public boolean frameworkDefault()
      Description copied from interface: GraphStoreProvider
      Framework-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:
      frameworkDefault in interface GraphStoreProvider
      Returns:
      true for the bundled KnowledgeTools adapter
    • open

      Description copied from interface: GraphStoreProvider
      Opens 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:
      open in interface GraphStoreProvider
      Parameters:
      request - Role and source selection
      Returns:
      a configured store, or empty when unsupported