Retrieval Methods for RAG
In this article
- Pick a lookup by key, a word-matching search, a search by meaning or both for a question, from where its answer lives and which words it carries.
- Explain why exact codes favour word matching and customers' own words favour a search by meaning.
- Explain why data that changes fast and already has a home is read live, not copied into a search index.
- Say what to measure before adding a vector database, and which results would justify one.
- Terms defined here: vector database.
Overview
A team plans to give its support assistant answers from company documents, and the first task on the board says "set up a vector database" because RAG seems to need one. Before anyone signs a contract, a cheaper question is worth asking: what does each customer question need looked up, and where does that information already live?
In an invented example, Brightline, a home-internet provider, runs a support assistant on its website that answers customers and can look up an order, issue a refund of at most $50 and hand a conversation to a person on the support team. It answers questions from about 400 Brightline help pages, which it searches through a tool called search_help. All names and numbers here are made up.
By the end you can match a question to the simplest one that fits, and name the measurement that would justify adding more.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Retrieval is a lookup, not a technology
- The question carries a key
- Exact names and codes
- Different words, same meaning
- Both at once
- One shape of evidence
- Do you need a vector database?
- Common mistakes
- Sources
- Check yourself, 13 questions