All projects

Retrieval-augmented generation

Doc Chat.

Ask questions about your PDF documents.

My role

AI Engineer

Built with

LangChain / TypeScript / Next.js

Doc Chat with uploaded PDFs on the left and a conversation about the selected document on the right.

01 / Overview

What it does.

I built Doc Chat to let users ask questions about their PDFs instead of searching through them page by page. Users upload a document, select it, and ask questions in a chat interface. The application retrieves relevant content from that document to provide context for the model’s response.

02 / Implementation

How it works.

  1. 01Upload a PDF
  2. 02Ask a question
  3. 03Retrieve context
  4. 04Generate an answer

Document retrieval

The application uses retrieval-augmented generation (RAG) to connect a question with relevant passages from the uploaded PDF. LangChain connects the retrieval step to answer generation.

A document-focused conversation

The document list sits alongside the chat, keeping the selected PDF visible during the conversation. Next.js and TypeScript provide the application layer around the retrieval workflow.

Next project

Jenga

04 / Contact

Get in touch.