# Shivraj Soni — AI Engineer

> AI engineer building LLM inference, speech-to-text, RAG, and computer-vision systems — from Rust internals to shipped products.

- **Site:** https://www.shivraj.live
- **GitHub:** https://github.com/Shivrajsoni
- **X / Twitter:** https://x.com/_callmeXavier_
- **LinkedIn:** https://www.linkedin.com/in/shivraj-soni-34572b226/
- **Email:** whothehellwasthat.dev@gmail.com
- **Resume (PDF):** https://www.shivraj.live/api/resume

This is the Markdown rendition of the portfolio homepage, served when a client requests `Accept: text/markdown`. Browsers receive the interactive desktop-OS UI.

---

## Quick summary

**Who is Shivraj Soni?**
Shivraj Soni is an AI engineer based in India who builds machine-learning systems end to end: an LLaMA-2 inference engine, Wispr (a private, Rust-based Wispr Flow alternative that streams speech to Deepgram with an on-device Whisper fallback), a hybrid-retrieval RAG knowledge base, a BPE tokenizer, and computer-vision models (ResNet, ViT). Previously AI Engineer Intern at kaptured.ai on 1tap.video, an AI video-generation platform. Open-source contributor to Braidpool (Rust) and Gumboard.

**What does Shivraj Soni work on?**
- **LLM inference:** building an inference engine for the LLaMA-2 architecture from scratch (KV caching, optimized matrix ops, token generation).
- **Speech AI:** Wispr — a fast, private, open-source Wispr Flow alternative for macOS in Rust. Streams audio to Deepgram while you talk and falls back to on-device Whisper (whisper.cpp on Metal); about 0.4 s from end of speech to text.
- **Retrieval / RAG:** a production-style RAG knowledge base with hybrid dense + BM25 retrieval fused by RRF, ChromaDB, cited answers, and HitRate@K / MRR evaluation.
- **Deep learning foundations:** BPE tokenizer (GPT-style), ResNet and Vision Transformer implementations, neural-network work from first principles.
- **Production AI:** at kaptured.ai built core modules of 1tap.video — a prompt-to-video pipeline and a multi-tenant RAG chatbot widget.

**Core skills:** AI Engineering, LLM Inference, Inference Engineering, Deep Learning, Computer Vision, Speech-to-Text, Whisper, Retrieval-Augmented Generation (RAG), Hybrid Search (BM25 + Dense Retrieval), Tokenization (BPE), PyTorch, Rust, Python, TypeScript, Next.js, Systems Programming, Open Source.

**How can I contact Shivraj Soni?**
Email whothehellwasthat.dev@gmail.com, or GitHub / X / LinkedIn above.

---

## AI & ML Projects

### Wispr — Open-Source Wispr Flow for macOS
Fast, private voice dictation for macOS in Rust: tap Fn, speak, and clean text is typed into any app. Audio streams to Deepgram nova-3 while you talk (~0.4 s from end of speech to text), with automatic fallback to on-device Whisper (whisper.cpp on Metal) so no dictation is lost offline. Rule-based clean-up drops fillers and resolves self-corrections, a lock-free CoreAudio pipeline keeps idle CPU at 0%, and history syncs to Obsidian.

- **Stack:** Rust, Swift, Speech-to-Text, Whisper, Deepgram, macOS
- **Links:** [GitHub](https://github.com/Shivrajsoni/Wispr)

### RAG Knowledge Base — Panjab University
Retrieval-augmented QA over Panjab University and UIET data. Crawls and cleans 87 HTML/PDF sources into 660 breadcrumb-tagged chunks, retrieves with hybrid dense + BM25 search fused by reciprocal rank fusion (ChromaDB), and generates cited answers through Gemini, Groq, or local Ollama (Llama 3.2). Retrieval quality is tracked with HitRate@3 and MRR benchmarks.

- **Stack:** Python, RAG, LLM, ChromaDB, FastAPI
- **Links:** [GitHub](https://github.com/Shivrajsoni/synopsis-project)

### GPT Tokenizer from Scratch
Byte-level BPE tokenizer built from first principles: a basic BPE trainer plus a regex tokenizer using the GPT-2 and GPT-4 split patterns, with special-token support.

- **Stack:** Python, Tokenizer, LLM, NLP
- **Links:** [GitHub](https://github.com/Shivrajsoni/gpt-tokenizer)

### Computer Vision from Scratch — ResNet & ViT
PyTorch implementations of a residual network and a Vision Transformer (patch embedding, multi-head self-attention, transformer blocks) trained on image classification.

- **Stack:** Python, PyTorch, Computer Vision, Deep Learning
- **Links:** [GitHub](https://github.com/Shivrajsoni/computer-vision)

### Building an Inference Engine for llama2
High-performance inference engine for LLaMA 2 architecture implemented from scratch, focusing on optimized matrix operations, KV caching, token generation, and low-latency throughput.

- **Stack:** Rust, Deep Learning, LLaMA, Inference Engine, CUDA
- **Links:** [GitHub](https://github.com/Shivrajsoni/ai-learning)


## Other Projects (Systems & Web)

### Dns resolver
Built a DNS resolver from scratch to understand how domain names are translated into IP addresses using networking fundamentals.

- **Stack:** Rust, Networking
- **Links:** [GitHub](https://github.com/Shivrajsoni/dns-resolver)

### Bit Torrent
A BitTorrent client implementation that handles peer-to-peer file sharing, including torrent parsing, peer communication, and efficient chunk-based file downloading.

- **Stack:** Rust, Networking
- **Links:** [GitHub](https://github.com/Shivrajsoni/Bittorrent)

### Terminal Color
A lightweight terminal styling library for adding colors and formatting to CLI output, making logs and messages more readable and expressive.

- **Stack:** Rust
- **Links:** [GitHub](https://github.com/Shivrajsoni/term_colr)

### Fake-email
a web-based temporary email service that allows users to generate disposable email addresses for receiving emails instantly without registration

- **Stack:** Rust, Typescript, aws, Next.js
- **Links:** [GitHub](https://github.com/Shivrajsoni/fake-email) · [Live](https://www.fake-email.site/)


---

## Experience

### AI Engineer Intern — Kaptured.ai
*May 2026 — Jun 2026*

Building core modules for 1tap.video, an AI video-generation platform — a Remotion-based prompt-to-video component pipeline and a multi-tenant RAG chatbot widget. Integrated Stripe billing, led on-page SEO, redesigned the full site UI/UX, and built internal tooling (ads/Meta and LinkedIn crawlers for lead data).

### Open Source Contributor — Braidpool · Bitcoin P2P Pool
*Nov 2025 — Feb 2026*

Contributing to Braidpool, a Bitcoin P2P mining pool, in Rust. Built a unified CLI entry point for node RPC interaction (PR #333) and optimized Stratum v2 proxy performance by replacing global Mutexes with RwLock to cut lock contention (PR #405).

### Software Engineer Intern — DartlineCargo · soniworldexpress.com
*Jan 2026 — Present*

Designed and built soniworldexpress.com end-to-end — a production courier and cargo booking platform covering order creation and shipment management. Engineered a core billing software system and automated routing across logistics partners.


---

## Open Source Contributions

- **[Braidpool — Braidpool CLI Implementation](https://github.com/braidpool/braidpool/pull/333)** (Merged, PR 333)
  Adds JSON-RPC server for the Braidpool node with endpoints for querying braid data, mining info, peer management, and Bitcoin RPC proxying.
- **[Braidpool — stratum: Use RwLock for connection_mapping to avoid blocking RPC](https://github.com/braidpool/braidpool/pull/405)** (Merged, PR 405)
  Wrap connection_mapping in Arc<RwLock<ConnectionMapping>> so that
getminerinfo and the Notifier use read locks, preventing Stratum from being blocked when miners are added/removed or when job notifications are sent.
- **[Antiwork — Add: Vercel Deploy Button](https://github.com/antiwork/gumboard/pull/44)** (Merged, PR 44)
  First Open Source Contribution

---

## Writing

- [How Disposable Email Works](https://www.fake-email.site/blog/how-disposable-email-works) — 2026-05-26 · 5 min read · _privacy, email, web, security_
- [Deploying Rust with Nix, GitHub Actions & SCP](https://www.fake-email.site/blog/deploying-rust-with-nix-github-actions-scp) — 2026-05-26 · 8 min read · _rust, nix, devops, ci/cd, github-actions_

---

## Reading List

- **Book Of Life: Daily Meditations With Krishnamurti** by Jiddu Krishnamurti — _reading_ · [link](https://amzn.in/d/0dpfwLoG)
  > reminds us that real freedom begins when we observe life without conditioning, judgment, or the constant noise of thought
- **The Beginning of Infinity** by David Deutsch — _reading_ · [link](https://amzn.in/d/04zNzD9n)
  > Knowledge is an infinite search for good explanations: problems are inevitable, but problems are soluble.

---

## Hardware

- **Model:** MacBook Air M3
- **RAM:** 16 GB
- **STORAGE:** 512 GB
- **TERMINAL:** Wezterm Tmux Neovim Starship
- **Tools:** Obsidian Raycast  Notion
- **Stack:** Rust Next.js Python Postgres Aws

---

## API for Agents

Read-only JSON, no auth required:

- `GET https://www.shivraj.live/api/projects` — projects (AI/ML first)
- `GET https://www.shivraj.live/api/experience` — experience timeline
- `GET https://www.shivraj.live/api/oss` — open-source contributions
- `GET https://www.shivraj.live/api/blog` — writing
- `GET https://www.shivraj.live/api/books` — reading list
- `GET https://www.shivraj.live/api/hardware` — hardware specs
- `GET https://www.shivraj.live/api/resume` — resume PDF

Discovery:

- `https://www.shivraj.live/llms.txt` · `https://www.shivraj.live/llms-full.txt`
- `https://www.shivraj.live/.well-known/api-catalog` (RFC 9727 linkset)
- `https://www.shivraj.live/.well-known/agent-skills/index.json`
- `https://www.shivraj.live/sitemap.xml` · `https://www.shivraj.live/robots.txt`
