Engineering

Retrieval that holds up in production

Chunking, hybrid search and citations: the unglamorous details that decide whether a chatbot is trusted.

Author
Azed AI
Published
14 Jul 2026
Reading time
8 min

Retrieval-augmented generation looks simple in a tutorial: split documents, embed them, search, answer. In production, every one of those steps hides a failure mode.

Chunk by meaning, not by length

Fixed-size chunks cut tables in half and separate questions from answers. We split on document structure — headings, list items, table rows — and keep a link back to the source section.

Vector search is great at meaning and poor at exact terms like product codes. Combining it with keyword search fixes most “it couldn’t find the obvious thing” complaints.

Always cite

Every answer links to the passage it came from. Citations make wrong answers easy to spot and right answers easy to trust.