All connectors
RAG & vector stores

Pinecone

Pinecone retrieval guard.

Wraps a Pinecone Index so retrieved matches pass through validators before reaching the prompt. Catches RAG-poisoning payloads at the chunk boundary.

Install

pnpm add @blackunicorn/bonklm-pinecone

Minimal example

import { Pinecone } from '@pinecone-database/pinecone'
import { wrapPinecone } from '@blackunicorn/bonklm-pinecone'

const index = wrapPinecone(new Pinecone().index('docs'), {
  validators: ['retrieved-doc'],
})
Related connectors