Class VectorBackends
java.lang.Object
com.tnsai.intelligence.rag.vector.VectorBackends
Picks at most one optional vector backend for Role bindings.
Qdrant and pgvector can both be installed. A process that sets both URLs is a deployment fault — the user picks by stack.
- Since:
- 0.14.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<com.tnsai.memory.advanced.VectorIndex> configured(String scope) Opens the configured optional backend, or empty for the in-memory store.static Optional<com.tnsai.memory.advanced.VectorIndex> configuredManaged(String scope) Opens a lifecycle-owned backend for the unified retrieval provider.
-
Method Details
-
configured
Opens the configured optional backend, or empty for the in-memory store.- Parameters:
scope- literal binding owner + source-set identity- Returns:
- one remote index, or empty
-
configuredManaged
Opens a lifecycle-owned backend for the unified retrieval provider.This bridge exists only because the provider and optional backend implementations live in different packages. Direct applications must use
configured(String): an index returned here starts a lease heartbeat and is safe only when itsVectorIndex.clear()is attached to the owningRetrievalEnginelifecycle.- Parameters:
scope- versioned provider ownership protocol- Returns:
- one lifecycle-owned remote index, or empty
- Since:
- 0.15.0
-