RAG
AI in the stackSearch first, then answer from what was found.
Retrieval-augmented generation: find relevant passages in trusted content, put them in the prompt, and have the model answer from them with citations. When results are bad the culprit is usually the search step, not the model.
See also Embedding, Grounding, Hallucination