Skip to main content
Batoi AIF Docs

Vector Store Adapters

Implement workspace- and ACL-aware vector retrieval with citation evidence.

Version Foundation release Early foundation work Reviewed Jul 21, 2026 Next review Sep 21, 2026

Owner: Batoi Engineering Reviewed by: Batoi AIF Maintainers Source revision: cd680e8

AIF is the public engineering framework. For the managed intelligence capability used across supported Platform and Flex workflows, see Batoi Intelligence.
Browse Batoi AIF Documentation Vector Store Adapters

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.