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.

Role
Builder, end to end
Group
LLMOps and AIOps
Services
AI & LLM systems

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

  1. 01

    PyPDF directory loader reads every PDF in a US census folder.

  2. 02

    Recursive character splitter chunks documents before NVIDIA embedding into a FAISS vector store.

  3. 03

    Retrieval chain passes matched chunks to Llama 3 70B Instruct hosted on NVIDIA NIM.

  4. 04

    Streamlit UI builds the vector store and answers typed questions.

The pipeline, layer by layer

Four layers, one pipeline.

  1. L1Documents

    • US census PDFs
    • Recursive splitter
  2. L2Index

    • NVIDIA embeddings
    • FAISS store
  3. L3Generation

    • Llama 3 70B on NIM
  4. L4UI

    • Streamlit app

Stack

  • NVIDIA NIM
  • Llama 3 70B Instruct
  • NVIDIA embeddings
  • LangChain
  • FAISS
  • PyPDF
  • Streamlit

Next lab build · 13 / 46

Hotel reservation cancellation prediction

Predicts whether a hotel booking will be cancelled, trained on GCS data and deployed to Cloud Run.

Previous: Serverless image labelling with Rekognition and CDK

Need a system like this in production? Tell us about it.