Skip to content
All case studies
Private client system · Dev House
Web + mobile

Clients served

PythonFastAPIPostgreSQLpgvectorRAGDeepSeek APIHugging Face Transformers
AI Systems

RAG document chat API built on pgvector and FastAPI

Client: Dev House product·Backend & AI Engineer, Dev House

A retrieval-augmented generation service: PDFs are chunked and embedded into pgvector, and users chat with an LLM that answers from the document, exposed over FastAPI to web and mobile apps.

Project overview

Users upload a PDF and ask questions about it. The service turns the document into a searchable knowledge base and answers with an LLM grounded in that content.

The challenge

LLM answers are only useful if they are grounded in the right passages. The service needed reliable ingestion, relevant retrieval and conversation memory, packaged for both web and mobile clients.

The solution

I built the full RAG system: ingestion, retrieval and the LLM layer, behind a FastAPI interface.

  • Ingestion pipeline that vectorises PDF content and stores it in PostgreSQL with pgvector.
  • Retrieval pipeline that embeds user queries and fetches the most relevant passages.
  • LLM layer (DeepSeek) that answers using the retrieved context, with reasoning.
  • Queries and responses stored alongside the document for conversation history.
  • FastAPI wrapper serving mobile and web clients.

My role

  • Built the ingestion, retrieval and LLM layers.
  • Serve and maintain the API in production.

Results & impact

Web + mobile

Clients served

single FastAPI service

  • Powers document chat in web and mobile apps through one API.

Services behind this project

Next case study

Quick-Commerce Marketplace

Five-Platform Quick-Commerce Marketplace for Africa

Taking on new projects · Remote worldwide

Have a similar problem?

If this project resembles the challenge you're facing, tell me about your system and what you need to change.