Skip to content

Latest commit

 

History

49 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

RAG Model for Efficient PDF Information Retrieval

This project uses a Retrieval-Augmented Generation (RAG) approach to extract and answer questions from long PDF documents, specifically targeted at helping students and educators quickly sift through dense International Baccalaureate (IB) material. Instead of spending hours skimming through IB study guides, past papers, or handbooks, this tool lets you ask natural-language questions and get instant, relevant answers—saving time and boosting productivity.

Problem Being Solved

The RAG model is built to help:

  • IB students quickly find key concepts, definitions, and explanations from large PDF files
  • Educators and tutors retrieve accurate info from syllabi and IB guides
  • Anyone working with long, academic PDFs that are too time-consuming to search manually

Features

  • Question-answering over PDFs using LLM + vector store
  • Chunking of long documents for optimized search
  • Fast semantic retrieval with embeddinGS
  • Customizable for any subject or PDF

Setup Instructions (From Scratch)

Clone the Repository

git clone https://github.com/anixa-s/rag_model.git
cd rag_model

Create and Activate a Virtual Environment

# On Mac/Linux
python3 -m venv venv
source venv/bin/activate

# On Windows
python -m venv venv
venv\Scripts\activate

Install Dependencies

pip install -r requirements.txt

Set Up API Keys

Create a .env file in the root directory and add your OpenAI API key:

OPENAI_API_KEY=your_api_key_here

You can get an API key from https://platform.openai.com/account/api-keys

Query the database

Query the Chroma DB.

python query_data.py "How is the IB EE assessed?”

About

Simple Langchain RAG application for IB students

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages