Skip to content

Writing

Hot takes on web & AI. Lukewarm, really.

Practical articles by Gaurav Sharma on full-stack development, Flutter, AI engineering with LLM APIs, and SEO for modern web apps.

What Are Vector Embeddings? How They Work, Cosine Similarity and a Python Semantic Search Example

A plain-language guide to vector embeddings: what the numbers mean, how embedding models learn to put similar text close together, how cosine similarity and dot products measure that closeness, a working Python semantic search in 20 lines, where embeddings are used (RAG, search, clustering, recommendations), how to pick a model, and the mistakes that quietly ruin results.

8 min read

What Is RAG? Retrieval-Augmented Generation Explained Simply (with Python)

RAG lets a language model answer from your own documents by searching them first and putting the best matches in the prompt. This guide covers the full pipeline, chunking, embeddings and vector databases, a short Python example, RAG vs fine-tuning, evaluation and the failures you will actually hit.

9 min read

How to Build an AI Content Agent That Writes Daily Social Posts

A practical architecture for an AI content-generation agent that produces daily Instagram, LinkedIn and blog drafts: a schedule trigger, structured Gemini output validated with Zod, a human review step, and n8n or Node.js to wire it together.

4 min read