Shaf Lab

AI search

Search that retrieves relevant passages and drafts an answer from them.

AI search retrieves relevant passages and then drafts an answer from them, instead of returning only a list of links. It is what people mean when they want a system that can 'just tell me' from a corpus of docs, tickets, or code. Under the hood it is usually retrieval plus a language model, sometimes with a follow-up search if the first pass is thin.

It is a better fit than a plain index when the question is a sentence, not a keyword, and when the user wants a synthesis rather than a browsing list. It is a worse fit when the user needs a precise record, a full file, or a guaranteed exact match. In those cases a classic search result list is clearer and easier to trust.

Always show enough of the retrieved passages that a person can check the answer. An unsupported sentence looks confident and is hard to correct. Ranking quality still matters: a fluent summary of the wrong passage is worse than a simple list of the right ones.

Start with a small, clean corpus and a way to judge answers against it. If you cannot tell whether a response is grounded, adding a larger model will not fix the problem.