Retrieval-Augmented Generation (RAG) in Context
Searching by meaning and by keyword, why you want both, and 18 labelled questions to check it against
RAG gets a language model to answer questions from documents it was never trained on, by finding the right passages and pasting them into the prompt. Most of what makes the searching work predates the models, so this notebook connects it back to ideas that have been around a lot longer.
Read the notebook on GitHub → About a twenty minute read, no account and no API key. Browse the repo.