Kamalan C S

RAG over uploaded PDFs · 2024

PDF Chat with Atlas Vector Search

Upload PDFs, then chat with them. Text is parsed, embedded and indexed in MongoDB Atlas Vector Search for context-aware answers.

Concept illustration for PDF Chat with Atlas Vector Search

The vision

Turn any stack of PDFs into something you can question in plain language.

Problem

Keyword search over PDFs misses meaning, and chatbots without retrieval don't know what's in your documents.

Solution

A Streamlit app parses uploaded PDFs, builds a vector index in MongoDB Atlas Vector Search, retrieves similar passages for each question and composes an answer from that context.

Architecture

PDF Chat with Atlas Vector Search architectureCLIENTSEDGE & APISERVICESDATA & EXTERNALPDFindexquerycontextStreamlit UIParser + indexerAtlas Vector SearchLLM
  • Streamlit UI to Parser + indexer (PDF)
  • Parser + indexer to Atlas Vector Search (index)
  • Streamlit UI to Atlas Vector Search (query)
  • Atlas Vector Search to LLM (context)

Engineering highlights

  • PDF parsing and vector indexing
  • Atlas Vector Search similarity retrieval
  • Streamlit conversational UI