Study
LangChain · RAG
Retrieval-augmented generation end to end with LCEL: retrieve chunks from my own notes, stuff them into a grounded prompt, answer with a local model, and return the sources with the answer.
- RAG = retrieve relevant chunks, put them in the prompt, and tell the model to answer only from them.
- Returning the retrieved sources alongside the answer makes it checkable.