# Abrar Mahi

I build AI that reads the documents companies actually run on, and makes it show its work.

Member of Technical Staff at Squirro. Before that: LlamaIndex, The New York Public Library and NASA Goddard. After hours I run a NixOS lab where coding agents get their own dev boxes. You’re reading this page on it.

- **15+** enterprise GenAI proofs of concept
- **10k+** daily visitors on library sites I shipped
- **76%** fewer LLM tokens on my library’s benchmark suite

## Selected work

Five things I’ve built, numbers first.

### ptk, the Python Token Killer

**76%** fewer tokens on JSON, code, logs, records and prose (tiktoken cl100k), 89% on code alone · Open source · Python

Agents burn context on nulls, docstrings and log spam. Python Token Killer is a dependency-free library that compresses any Python object, whether JSON, code, logs or diffs, before it reaches a model. One call, on PyPI.

[Source and benchmarks](https://github.com/amahi2001/python-token-killer)

### The demo that became the house pattern

**15+** enterprise PoCs across banking, payments and semiconductors · Graph RAG · Squirro

I built Squirro’s flagship Graph RAG demo: LangChain over a knowledge graph, so every answer arrives with the entities and records behind it. It won multiple paid proofs of concept and became the implementation standard the rest of the company builds from.

### Extraction you can audit

**p. 9** every extracted field cites the page it came from · Document AI · LlamaIndex

A checkbox on page nine can change an insurance policy. I helped enterprise teams turn forms and PDFs into structured data you can check against the source: extract the field, cite the page, and send low-confidence answers to a person.

Sample extraction: Policy · p. 9, ☑ Flood coverage → `flood_coverage: true  # p.9, conf 0.97`

[Watch the talk](https://watch.getcontrast.io/register/llamaindex-building-document-processing-pipelines-for-agentic-workflows)

### Agents with a real job

**~40%** lift in data accuracy over the manual workflow · Agents · Squirro

I designed LangChain agents for institutional data providers, Salesforce contact management and web research, wired together with MCP tools and custom pipeline steps. They replaced copy-and-paste work and lifted data accuracy by about 40 percent.

### Research tools for The New York Public Library

**10k+** daily visitors across three public library sites · Public software · NYPL

I moved LAIR, Research Statistics and the Fellowships portal onto Django, React and Google Cloud with CI/CD and end-to-end tests. Then I built a Gemini RAG assistant on Vertex AI so thousands of staff could search library policy in plain language.

[Visit NYPL Fellowships](https://fellowships.nypl.org/)

## Career

Since 2022: from satellite retrievals to the documents enterprises bet money on.

### Squirro, Member of Technical Staff

Nov 2026 – now

Back at Squirro, this time building the enterprise GenAI platform instead of demoing it.

### LlamaIndex, Applied AI Solutions Architect

Jun – Oct 2026

Presales architecture for document agents: parsing, extraction and agent workflows for enterprise teams.

### Squirro, Solutions Engineer, Generative AI

May 2024 – Jun 2026

Presales and delivery for Fortune 500 teams in finance, legal and technology. Graph RAG, LLM-based entity extraction, document classification and agent workflows, plus the demos that helped win the accounts.

### The New York Public Library, Full Stack Engineer II

Aug 2022 – May 2024

Django, React and Google Cloud for research tools serving 10k+ visitors a day, with Cloud Build pipelines, Cypress and PyTest suites, and security scanning.

### NASA Goddard, Algorithms Development Intern

Summer 2022

A Python framework and CLI that estimates Earth-system parameters from satellite data, built around a non-linear least-squares retrieval designed with the research team.

**Hunter College, CUNY**. BA in Computer Science, minor in Mathematics. Magna cum laude with departmental honors, 2023.

## The lab

My old gaming PC, rebuilt as a single NixOS flake. I declare every service below in code, so I can rebuild the whole machine from one repository.

### Agent dev boxes

Each project gets its own container where Codex or Claude can build, test and open a pull request without touching the host.

### CI runners

Self-hosted GitHub Actions runners. I test my private repositories here instead of on rented minutes.

### Agent gateway

A personal agent with MCP tools for web search and research, running on hardware I own.

### This website

Static files behind nginx. A release is a new directory and an atomic symlink swap, so rollback is one command.

### Home services

Nextcloud keeps my files in step, Jellyfin remembers the playhead, and AdGuard Home keeps trackers off the network.

[Read the flake](https://github.com/amahi2001/abrar-homeserver)

## Contact

If you’re building agents that have to be right about documents, or you want to compare notes on running them on your own metal, I’d like to hear from you.

- Email: [amahi2001@gmail.com](mailto:amahi2001@gmail.com)
- [LinkedIn](https://www.linkedin.com/in/abrarmahi/)
- [GitHub](https://github.com/amahi2001)
- [llms.txt](https://amahi.dev/llms.txt)
