Agent frameworks
LlamaIndex
LlamaIndex pipeline hooks.
Hooks into the LlamaIndex query and retrieval pipelines so retrieved chunks are inspected before they enter the prompt.
Install
pnpm add @blackunicorn/bonklm-llamaindexMinimal example
import { VectorStoreIndex } from 'llamaindex'
import { withBonkLM } from '@blackunicorn/bonklm-llamaindex'
const queryEngine = withBonkLM(index.asQueryEngine(), {
guards: ['secret', 'pii'],
})Related connectors