IAMUVIN

Blog

Blog

Technical writing on Web3, AI, and building things. Written by Uvin Vindula.

130 articles · 16 in AI & Machine Learning

AI & Machine Learning12 min
IAMUVIN

MCP Servers: The New Standard for AI Tool Integration

A hands-on guide to building MCP (Model Context Protocol) servers that give AI models access to your tools, databases, and APIs. Covers the full architecture — tools, resources, transport layers — with a complete TypeScript implementation you can deploy today. Based on real MCP servers I've built and use daily through Claude Code. If you're integrating AI into your workflow or building AI-powered products, MCP is the protocol that makes tool use composable, testable, and production-ready.

U
Uvin Vindula·February 10, 2025
AI & Machine Learning10 min
IAMUVIN

LangChain vs Building from Scratch: When to Use a Framework

An honest comparison of LangChain versus building custom AI pipelines from scratch using the Anthropic SDK. After shipping production apps both ways, I break down when LangChain genuinely helps, when it actively hurts, and why most production applications are better served by a thin custom layer over the Anthropic SDK. Includes code comparisons, a decision framework, and the maintenance reality nobody talks about.

U
Uvin Vindula·June 10, 2024
AI & Machine Learning11 min
IAMUVIN

Building an AI Content Generation Pipeline

A practical guide to building production AI content pipelines using Claude API with structured prompts, quality control layers, and human review checkpoints. Covers prompt design for consistent output, template systems, automated quality checks, SEO optimization, cost analysis with real numbers, and honest assessment of when AI content works and when it doesn't. Based on pipelines I've built for clients generating blog posts, product descriptions, and SEO content at scale.

U
Uvin Vindula·June 3, 2024
AI & Machine Learning10 min
IAMUVIN

Vercel AI SDK: Streaming AI Responses in Next.js

A production guide to streaming AI responses in Next.js using the Vercel AI SDK with Claude as the provider. Covers useChat, useCompletion, streamText, tool calling, custom providers, error handling, token counting, and cost control. Based on real implementations where streaming cut perceived latency by 80% and tool calling replaced brittle prompt chains. Includes the exact patterns I use to ship AI features at iamuvin.com and in client projects.

U
Uvin Vindula·May 20, 2024
AI & Machine Learning11 min
IAMUVIN

How to Build a Document Analysis System with Claude

A practical guide to building production document analysis with Claude — from PDF text extraction and vision-based OCR for scanned documents, to structured data extraction for invoices and contracts. Covers chunking strategies for large documents, confidence scoring, and the Next.js API architecture that ties it all together.

U
Uvin Vindula·May 13, 2024
AI & Machine Learning11 min
IAMUVIN

Building AI-Powered Search for E-commerce Applications

How I built AI search systems that understand what customers actually mean — not just what they type. From EuroParts Lanka where customers describe car problems in plain language to FreshMart where shoppers search by recipe instead of ingredient. Semantic search, hybrid ranking, and the architecture that makes it work at production scale.

U
Uvin Vindula·May 6, 2024
AI & Machine Learning9 min
IAMUVIN

The Real Cost of AI Integration in 2026

A transparent breakdown of what AI integration actually costs in 2026 — from API spend and development hours to infrastructure and ongoing maintenance. Based on real projects I've shipped, including the EuroParts Lanka AI Part Finder. No vague estimates. Real numbers from $15K to $50K engagements.

U
Uvin Vindula·April 22, 2024
AI & Machine Learning12 min
IAMUVIN

Implementing Semantic Search in Next.js with Supabase pgvector

A complete implementation guide for building semantic search with pgvector in Supabase. Covers embedding generation, vector storage, hybrid search combining vector and full-text queries, and a production-ready Next.js API route with a React search component. Real code from real projects.

U
Uvin Vindula·April 15, 2024
AI & Machine Learning10 min
IAMUVIN

Vector Databases Explained: Pinecone vs Weaviate vs pgvector

A practical comparison of Pinecone, Weaviate, and pgvector from someone who has shipped production systems on all three. Spoiler: pgvector wins for most teams because it is already in your database.

U
Uvin Vindula·April 8, 2024
AI & Machine Learning11 min
IAMUVIN

Building an AI Chatbot That Actually Works

Most AI chatbots are glorified search bars that hallucinate. Here's how to build one that actually works — with proper context management, streaming responses, conversation memory, and guardrails that prevent your chatbot from confidently lying to customers. Based on real production experience building the EuroParts Lanka AI Part Finder with Claude API, Next.js, and TypeScript. Includes complete code examples, architecture decisions, and a production checklist.

U
Uvin Vindula·April 1, 2024
AI & Machine Learning11 min
IAMUVIN

Prompt Engineering for Production Applications

A practical guide to prompt engineering for production applications, drawn from shipping real AI features with the Claude API. Covers system prompt design, few-shot vs zero-shot patterns, chain-of-thought reasoning, structured JSON output, temperature tuning, and systematic testing. Includes real prompt examples from the EuroParts Lanka AI Part Finder, where natural language descriptions get mapped to exact OEM part numbers for 40,000+ European car parts.

U
Uvin Vindula·March 18, 2024
AI & Machine Learning11 min
IAMUVIN

How I Built the EuroParts Lanka AI Part Finder with Claude

A build log of how I integrated Claude's API into europartslanka.lk to let customers describe car problems in plain English and get back exact OEM part numbers, compatible models, and pricing — serving 966 customers and 1,444 parts delivered.

U
Uvin Vindula·March 11, 2024