← All projects

Applied AI · RAG foundations

PDF RAG

The simplest complete RAG pipeline: retrieve the right information from a PDF first, then generate the answer.

01What it is

Index first, answer second.

  • 01IndexingA PDF is loaded, split into chunks, embedded and stored in a FAISS index.
  • 02AnsweringA retriever finds the relevant chunks and GPT-4.1-mini answers from them.
  • 03TracedLangChain wires the steps and LangSmith traces each run.

02How it works

The two phases of the pipeline.

  1. PDF uploadStreamlit
  2. Chunking and embeddings
  3. FAISS index
  4. Retriever
  5. Grounded answer

03Where it stands

A foundations exercise.

The repository holds an eight-slide learning mind map of the pipeline. It is the base that the later hybrid RAG builds extend.