Wire loaders, splitters, a vector store, a retriever and a prompt into one chain.
- LoaderLoad documents from files or the web.
- SplitterChunk them.
- Vector storeEmbed and store.
- RetrieverFetch top-k for the question.
- ChainPrompt + model + parser, with the passages in context.
Explain 1/6
Source: LangChain: Build a RAG app