Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

That makes this a strong first project.

Here’s a README version that reflects that this is your first RAG project and is good for GitHub or interviews.


PDF AI Assistant — My First RAG Project

This is my first Retrieval-Augmented Generation (RAG) project built using Python and AI tools.

The application allows users to upload a PDF document and ask questions based on its content. The system retrieves the most relevant information from the uploaded document and generates intelligent answers using a large language model.

This project helped me understand how modern AI systems combine document retrieval + embeddings + vector search + LLMs to build real-world applications.


What This Project Does

Users can:

✅ Upload a PDF document ✅ Ask questions related to the uploaded PDF ✅ Get AI-generated answers based only on document content

Example:

Upload: Computer Organization notes PDF Question: What is instruction cycle? Output: AI-generated explanation from the uploaded notes


ScreenShot

image

Technologies Used

Backend

  • Flask
  • Python

AI / RAG Components

  • Sentence Transformers
  • all-MiniLM-L6-v2 → for embeddings
  • FAISS → for semantic search
  • Groq + Llama 3.3 → for answer generation

Document Processing

  • PyPDF

Frontend

  • HTML
  • CSS
  • JavaScript

How It Works

Step 1 — PDF Upload

User uploads a PDF file.

Step 2 — Text Extraction

The system extracts text from the PDF using PyPDF.

Step 3 — Chunking

Large text is split into smaller chunks.

Step 4 — Embeddings

Each chunk is converted into vectors using all-MiniLM-L6-v2.

Step 5 — Vector Storage

Vectors are stored in FAISS.

Step 6 — Retrieval

When the user asks a question, the system finds the most relevant chunks.

Step 7 — Generation

The retrieved chunks are sent to Groq, which generates the final answer.


What I Learned

Through this project, I learned:

  • What RAG architecture is
  • How embeddings work
  • How vector databases work
  • Semantic search
  • Prompt engineering
  • Building AI apps with Flask
  • Integrating LLM APIs into real projects

Future Improvements

I plan to add:

  • Multiple PDF upload support
  • Chat history
  • Better document chunking
  • Support for DOCX/TXT files
  • User authentication
  • Cloud deployment

Why I Built This

As this is my first RAG project, I wanted to understand how AI assistants work behind the scenes and gain hands-on experience building an end-to-end AI application.


About

An rag based model that extracts information from pdf.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages