Multi-Vector Retrieval
A document may be represented by multiple searchable vectors: chunks, summaries, hypothetical questions, titles, entities, tables or image embeddings. Retrieval can match any representation and then map results back to the parent document.
type SearchVector = {
parentId: string;
kind: 'chunk' | 'summary' | 'question' | 'image';
vector: number[];
};
Failure mode
More vectors can improve recall but multiply index size, update cost and duplicate retrieval. Deduplicate by parent/section and evaluate contribution of each representation.
Practice
- Why index summaries as well as chunks?
- How do hypothetical-question vectors help?
- What deduplication should happen after retrieval?
- What metrics would show whether extra vectors justify cost?