Samhita @sushrutalgs.ai

See the full portfolio →

Built with

  • Python
  • Pydantic
  • Knowledge graphs
  • Embeddings
  • Cloudflare R2

Links

  • live product↗
  • Email→

Source is private; sushrutalgs.ai is a live product. Happy to walk through the work in a conversation.

A Python data pipeline that turns medical-textbook PDFs into clean, structured, machine-readable data (sections, figures and tables) and publishes it as versioned packages for the search platform to load.

The problem

sushrutalgs.ai answers exam questions with citations back to standard textbooks, so the text behind every citation has to be intact and addressable down to the section, figure or table. The source material was print-layout PDFs, where tables are drawn rather than encoded and captions float near their figures. None of the retrieval work could start until that became structured data.

What I built

An extraction pipeline that parses, repairs and structures each book, then cleans and annotates the content and exports it as versioned, integrity-checked packages. Two principles shaped it: structure is decided by deterministic code that behaves the same way twice, and every stage reports what it dropped, because PDF extraction fails silently by returning a slightly smaller document rather than an error. Language models are used only at the edges, to describe figures and tables that the deterministic pass has already located.

Where it stands

It processes the full source library end to end, every exported package passes structural validation, and a clean rebuild from the source PDFs reproduces the same output. It feeds the retrieval backend behind the live product, and CI runs the pipeline so a parser change cannot quietly alter an export.

More case studies

  • sushrutalgs.ai web app: a cited RAG study assistant
  • HybridFlow: hybrid RAG with traceable citations
  • Edge API gateway for an AI product
  • sushrutalgs.ai iOS app: streaming cited answers
  • MACE-PINN: ensemble physics-informed neural networks
  • Yelp ML platform: 7M reviews, recsys and sentiment API
  • All projects →
  • Contact →