Batoi AIF Docs

Vector Store Adapters

Keep retrieval integrations explicit, governed, and tenant-aware.

Vector Store Adapters

Vector store adapters connect AIF to retrieval systems while keeping tenant boundaries and source evidence clear.

Adapter Responsibilities

  • query a configured vector store
  • apply tenant or workspace filters
  • return source references and metadata
  • avoid exposing records outside the caller's permission boundary
  • support audit references for retrieved context

Retrieval Metadata

Each retrieved chunk should include:

  • source ID
  • source title
  • tenant or workspace ID
  • document version or timestamp
  • confidence or score
  • permission context

The prompt renderer can then use retrieved context while audit logs retain the source evidence.