Skip to content
Back to projects

Project / AI Tool

Docs Search

Ask questions about a set of PDFs and get answers that point to the source page.

Year
2025
Role
Backend and full-stack developer
Type
AI Tool
Stack
Custom stack

Tech stack

  • Python
  • FastAPI
  • LangChain
  • PostgreSQL
  • Next.js

01 / Overview

Overview

A small tool for searching long documents in plain language. Files are split into passages and indexed, and each answer links back to the page it came from.

02 / The problem

The problem

Long PDFs are hard to search. Keyword search misses a page when it uses different words, and people end up skimming a hundred pages for one answer.

03 / My approach

My approach

Split each file into short passages, store them with their page numbers, and find the passages closest in meaning to a question. The answer is built from those passages, and every one links back to its page so it can be checked. FastAPI handles indexing and search, and a small Next.js interface sits on top.

04 / Key features

Key features

  • Upload PDFs from the browser
  • Plain-language questions
  • Answers that cite the file and page
  • Search limited to one file or all of them
  • Indexing progress for large files
  • Works without signing in for a quick try

05 / Challenges & learnings

Challenges & learnings

  1. 01

    Cutting passages in sensible places

    Splitting every few hundred words broke sentences in half. Splitting on headings and paragraphs first gave much better matches.

  2. 02

    Trusting the answers

    A confident wrong answer is worse than none. If no passage is close enough, the tool says so instead of guessing.

  3. 03

    Slow first upload

    Indexing a big file blocked the request. It now runs in the background and the page shows progress.

06 / Gallery

Gallery

Click an image to enlarge it.

Next project

Commerce Platform

A full-featured storefront with cart, checkout and an admin panel.