Available for: Python and TypeScript.
Load → Chunk → Embed → Store → Retrieve → Rerank → Plan → Ground → Generate → Stream). It dispatches lifecycle events to any object in its callbacks config array that implements the matching method — no base class required. ZespanVectraCallbackHandler implements that interface directly, so every stage of the pipeline becomes a Zespan span with no changes to how you call Vectra.
Installation
Setup
Example
What gets captured
Vectra’s callbacks pass retrieval counts, not the retrieved chunks themselves — the retrieval span records how many documents came back, not their content. If you want chunk text on the trace, call
recordRetrieval(docs, { query }) (record_retrieval in Python) yourself alongside queryRAG()/query_rag().
