Back to Projects
ai
2026

Ask Amit + AI Labs — AI-Native Portfolio

An AI-native developer portfolio that demonstrates AI rather than just describing it. The 'Ask Amit' assistant answers visitor questions about projects, blog posts, and résumé with cited sources, grounded in a 320-chunk RAG index built from the site's own content. A ⌘K command palette runs meaning-based search over the same index. A dedicated /ai-labs page bundles four interactive demos — RAG Playground, Prompt Cost Calculator, Embeddings Playground, and Tokenization Visualizer — each also embedded inline in the relevant blog post. Query embedding runs entirely in the visitor's browser via Transformers.js (all-MiniLM-L6-v2, q8); only the LLM call hits a rate-limited, key-protected OpenRouter route. The architecture keeps the Vercel serverless function tiny (no ONNX runtime bundled server-side) and the visitor experience snappy.

Ask Amit + AI Labs — AI-Native Portfolio
Technologies

Frontend

Next.js 15
React 19
TypeScript
Tailwind CSS
framer-motion
cmdk

Backend

Next.js API Routes
OpenRouter

Database

Tools

Transformers.js
all-MiniLM-L6-v2
cl100k_base tokenizer
Vercel
Challenges
  • Bundling an embedding model server-side blew past Vercel's 250 MB function limit
  • Running RAG, semantic search, and LLM chat on a public portfolio without runaway cloud costs
  • Indexing scattered résumé, blog, and project data so a single assistant can answer about any of it
Solutions
  • Moved query embedding into the visitor's browser via Transformers.js — the serverless function stays tiny and the first request after a cold start is no longer slow
  • Server-only OpenRouter key with per-IP rate limiting, length caps, and a hard spend cap on the key itself
  • Single 320-chunk RAG index built from blog posts, project data, and a lib/profile-data.ts source of truth — powers the chat assistant, the ⌘K palette, and the in-blog RAG demo
Key Outcomes & Impact

Visitor-facing AI assistant that answers questions about Amit's work with cited sources

Cmd+K semantic search across the entire portfolio — no keyword matching

/ai-labs page with four browser-side interactive AI demos that recruiters can try in seconds

Other Projects

JobJam.io — AI Job Search & Application Platform
JobJam.io — AI Job Search & Application Platform

AI-powered job search platform: discover roles, evaluate fit, tailor applications, and close skill gaps. One-time pricing, no subscriptions.

View Project
Paperclip - AI Company OS
Paperclip - AI Company OS

Explored Paperclip - an open-source orchestration platform for zero-human companies where AI agents (CEO, engineers, marketers, QA) collaborate autonomously.

View Project