bhaskatripathi/pdfgpt

PDF GPT allows you to chat with the contents of your PDF file by using GPT capabilities. The most effective open source solution to turn your pdf files in a...

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 11 minutes ago
Added to GitGenius on September 9th, 2026
Created on March 7th, 2023
Open Issues & Pull Requests: 48 (+0)
GitHub issues: Enabled
Number of forks: 832
Total Stargazers: 7,164 (+0)
Total Subscribers: 55 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 89 days
Stale 30+ days: 3
Stale 90+ days: 1

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

PDF GPT is a chatbot application that lets you ask questions about the contents of PDF files using GPT language models.

The tool solves the problem of extracting and querying information from PDF documents by converting PDFs to text, breaking that text into chunks of approximately 150 words, and generating embeddings for each chunk. When you ask a question, the system performs semantic search using K-nearest neighbors to find the top five most relevant chunks, embeds those chunks into a prompt sent to OpenAI's API, and returns a generated answer. The system can accept PDFs either as file uploads or via URL, and it caches embeddings to disk to avoid regenerating them on subsequent queries.

You should consider this tool if you need a straightforward way to build a question-answering interface over PDF documents without managing complex infrastructure. It works best for PDFs where semantic search over chunked text produces useful results. The tool supports multiple OpenAI models including Turbo, GPT-4, and variants with extended token limits like the 16K and 32K models, giving you flexibility in choosing between cost and capability. A demo is available as a Hugging Face Space if you want to try it before integrating it into your own project.

The project shows active maintenance with improvements to error handling and the addition of features like chat history and pre-defined questions for input auto-filling. The codebase is written in Python and includes a clear processing pipeline documented through sequence and flow diagrams in the README, making it relatively straightforward to understand how data moves through the system.