~/Generative AI

AI-Powered Document Q&A Chatbot.

A retrieval-augmented chatbot that answers natural-language questions over user-uploaded PDF documents.

overview

A Retrieval-Augmented Generation (RAG) application: upload PDFs, ask questions in natural language, and get answers grounded in the documents' content through an interactive Streamlit interface.

problem

Finding specific information across long PDF documents means slow, manual searching and reading.

solution

A RAG pipeline that ingests PDFs, splits them into chunks, embeds them and retrieves the most relevant passages to answer each query — reducing manual document lookup to a single question.

implementation

• PDF ingestion — parse user-uploaded documents
• Text chunking — split content into retrievable passages
• Embeddings — encode chunks for semantic similarity
• Semantic retrieval — select relevant context for each question
• Answer generation — LLM response grounded in retrieved context (LangChain)
• Interface — interactive Streamlit app

key features

  • PDF upload and parsing
  • Text chunking
  • Embedding-based semantic retrieval
  • Retrieval-augmented answers
  • Interactive Streamlit interface

technologies

  • Python
  • LangChain
  • Streamlit
  • Embeddings
  • Semantic Search
  • Document Loaders
  • HTML

Source code ↗