Vector Store Adapters
VectorStoreInterface defines storage and search. Production RAG should use AccessControlledVectorStoreInterface, which receives trusted execution context and must push workspace and ACL filters into the backing query before ranking and topK selection.
Adapter Responsibilities
- query a configured vector store
- enforce workspace, user, and role filters before scoring
- apply score thresholds and metadata filters
- return source, chunk, collection, and citation metadata
- prevent unauthorized records from influencing the result window
- retain retrieval evidence for the generation audit
Retrieval Metadata
Each retrieved chunk should include:
- source and chunk UID
- collection
- workspace ID and ACL metadata
- source version or timestamp
- score
- embedding provider and model
- safe citation metadata
InMemoryVectorStore supports development and tests. It is not a substitute for a production access-controlled adapter.
See RAG and Governed Retrieval for the included ingestion and generation services.