Skip to content

A full-stack AI-powered application that allows users to upload PDF documents and ask natural language questions about their content. Built with FastAPI (backend), LangChain and Gemini API for intelligent Q&A, and a Next.js frontend for seamless user experience.

Notifications You must be signed in to change notification settings

theeaashish/FastAPI-PDF-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

FastAPI-PDF-Chatbot

A web application that allows users to upload PDF documents and ask questions about their content using AI-powered natural language processing.

Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • Python (v3.8 or higher)
  • Google Gemini API key

Backend Setup

  1. Navigate to the backend directory:
    cd backend## Features
  • PDF Upload: Upload any PDF document for analysis
  • Question Answering: Ask questions about the content of your PDF
  • AI-Powered Responses: Get intelligent answers using Google's Gemini AI model
  • Responsive UI: Clean, modern interface that works on desktop and mobile devices

Tech Stack

Backend

  • FastAPI: High-performance Python web framework
  • LangChain: Framework for developing applications powered by language models
  • PyMuPDF: PDF processing library for text extraction
  • Google Gemini AI: Advanced language model for question answering

Frontend

  • Next.js: React framework for building the user interface
  • React: JavaScript library for building user interfaces
  • Tailwind CSS: Utility-first CSS framework for styling

Project Structure

├── backend/ # FastAPI server │ ├── main.py # Main application file with API endpoints │ └── requirements.txt # Python dependencies └── frontend/ # Next.js client ├── app/ # Next.js app directory ├── components/ # React components ├── lib/ # Utility functions and API clients ├── public/ # Static assets └── svg/ # SVG components

Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • Python (v3.8 or higher)
  • Google Gemini API key

Backend Setup

  1. Navigate to the backend directory: cd backend
  2. Create a virtual environment: python -m venv venv

About

A full-stack AI-powered application that allows users to upload PDF documents and ask natural language questions about their content. Built with FastAPI (backend), LangChain and Gemini API for intelligent Q&A, and a Next.js frontend for seamless user experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published