This project is a full-stack, AI-driven application designed to allow users to ask natural language questions about their PDF documents and receive accurate, context-aware answers. It solves the problem of needing to manually search through large files for specific information.
The core of the application is a Retrieval-Augmented Generation (RAG) pipeline, which intelligently combines document retrieval with a Large Language Model (LLM) to provide grounded and reliable responses.
sentence-transformers/all-MiniLM-L6-v2You will need Python and pip installed.
Clone the repository:
git clone [your_repo_link]
cd [your_repo_name]
Set up your virtual environment:
python -m venv venv
source venv/bin/activate
Install the required packages:
pip install -r requirements.txt
Set up your environment variables:
Create a file named .env in the root directory and add your OpenAI API key:
OPENAI_API_KEY="YOUR_API_TOKEN_HERE"
Run the Streamlit application from your terminal:
streamlit run app.py