Lab build
PDF RAG app on NVIDIA NIM
Answers questions over a folder of US census PDFs with NVIDIA embeddings, FAISS and Llama 3 70B.
What it does
PDFs are loaded with a PyPDF directory loader, split with a recursive character splitter and embedded with NVIDIA embeddings into a FAISS store. A retrieval chain sends the matched context to Meta Llama 3 70B Instruct served through NVIDIA NIM, behind a Streamlit interface.
What was built
- 01
PyPDF directory loader reads every PDF in a US census folder.
- 02
Recursive character splitter chunks documents before NVIDIA embedding into a FAISS vector store.
- 03
Retrieval chain passes matched chunks to Llama 3 70B Instruct hosted on NVIDIA NIM.
- 04
Streamlit UI builds the vector store and answers typed questions.
The pipeline, layer by layer
Four layers, one pipeline.
L1Documents
- US census PDFs
- Recursive splitter
L2Index
- NVIDIA embeddings
- FAISS store
L3Generation
- Llama 3 70B on NIM
L4UI
- Streamlit app