Skip to content

sxudan/ai-powered-pdf-qa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📄 AI-Powered PDF QA App

An AI-powered application that lets you upload PDFs and ask questions about their contents. It uses NLP techniques to retrieve relevant information and provide summarized answers.


🧠 Features

  • Upload any PDF document.
  • Ask natural language questions about the content.
  • Get summarized answers using AI.
  • Backend: FastAPI, LangChain, HuggingFace, ChromaDB.
  • Frontend: Next.js (App Router).

🖥️ Run the Backend

1. Setup Python Environment

Use uv (fast Python package manager) and create a virtual environment:

uv venv
source .venv/bin/activate  # or .venv\Scripts\activate on Windows

2. Install Dependencies

uv pip install -r requirements.txt

3. Start the FastAPI Server

uvicorn main:app --reload

This will start the backend on: http://localhost:8000

🌐 Run the Frontend (Next.js)

1. Set Environment Variables

Create a .env file in the frontend/ directory with the following content:

NEXT_PUBLIC_API_URL=http://localhost:8000

2. Install Node Dependencies

cd frontend
npm install

3. Start Development Server

npm run dev

The frontend will be available at: http://localhost:3000

Screenshots

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published