RAG & vector stores
Chroma
Chroma collection guard.
Wraps a ChromaDB collection. Same retrieval-inspection contract as Pinecone — local-first projects get the same safety.
Install
pnpm add @blackunicorn/bonklm-chromaMinimal example
import { ChromaClient } from 'chromadb'
import { wrapChroma } from '@blackunicorn/bonklm-chroma'
const col = wrapChroma(await new ChromaClient().getCollection({ name: 'docs' }), {
validators: ['retrieved-doc'],
})Related connectors