Ayan Ali.

Writing

Notes from building things that ship.

Notes on building full-stack and AI/ML systems — RAG, vector search, computer vision, Next.js, and shipping real products end to end.

Hostname-Based Multi-Tenancy on One Vercel Deployment
A single dark block at the centre with thin lime lines radiating outward to a ring of identical panels, the Vercel triangle at the centre of the block.
Vercel

Hostname-Based Multi-Tenancy on One Vercel Deployment

One deployment can serve unlimited customer sites if you resolve the tenant from the hostname. Here is the setup: wildcard domain, custom domains, lookup code and the mistakes to avoid.

Read
How to Add an AI Chatbot to Shopify Grounded in Your Product Catalogue
A frosted speech-bubble form above a grid of product boxes, connected by thin lime lines, with the Shopify logo set into the floor and the OpenAI logo on the bubble.
Shopify

How to Add an AI Chatbot to Shopify Grounded in Your Product Catalogue

A Shopify chatbot that does not invent products needs four parts: a synced catalogue index, retrieval, a grounded prompt, and a Liquid section that talks to your backend. Here is each part.

Read
How to Build an AI Product Finder Section for Shopify
A wide field of dark cubes receding into shadow with a narrow lime light picking out exactly three, and the Shopify logo on a plate in the foreground.
Shopify

How to Build an AI Product Finder Section for Shopify

A product finder takes 'a waterproof jacket for light hiking under $150' and returns matching products. It needs vector search and filters, and it does not need a chat model.

Read
How to Chunk Documents for RAG (With a 6,234-Chunk Example)
A tall dark slab sliced into many thin horizontal layers fanned apart, four of them lime-edged, with the Qdrant logo on a plate beneath.
RAG

How to Chunk Documents for RAG (With a 6,234-Chunk Example)

One vector per document blends everything into a blur. Splitting each record into typed chunks, one per kind of question, kept my retrieval sharp. Here are the real counts and rules.

Read
Building a RAG Chatbot That Doesn't Hallucinate
A thin lime line passing through four dark gates of narrowing aperture and exiting as one clean line, with the Qdrant logo at the final gate and the OpenAI logo at the first.
RAG

Building a RAG Chatbot That Doesn't Hallucinate

A RAG chatbot hallucinates less when the model only explains what retrieval found. Here is the pipeline I built over 838 dramas, the prompt rules, and the check I would add.

Read
How to Make Shopify Color Swatches Link to Separate Product Pages
Five matte spheres in a row, each linked by a thin lime line to its own separate product panel below, with the Shopify logo on a plinth in the foreground.
Shopify

How to Make Shopify Color Swatches Link to Separate Product Pages

A swatch that opens a different product page needs one product per color, a metaobject that groups them, and a short Liquid snippet. Here is the full build, and when not to bother.

Read
How to Speed Up a Shopify Store Without Apps
A stack of heavy compressed slabs on the left resolving into a single weightless lime-edged plate on the right, with the Shopify logo embossed on the leading slab.
Shopify

How to Speed Up a Shopify Store Without Apps

Most Shopify speed problems come from images, scripts and installed apps, and none of them need another app to fix. Here is the order to work in, with the Liquid to do it.

Read
Shopify AI Chatbot App vs Building Your Own RAG Chatbot
A sealed matte black monolith beside an open lime-edged frame showing its interior lattice, with the Shopify logo on each, under even light.
Shopify

Shopify AI Chatbot App vs Building Your Own RAG Chatbot

An app is faster to start, and a custom build gives you control over answers, data and cost. Here is how to decide, what a build includes, and what to ask a developer if you hire.

Read
Core Web Vitals for Shopify Liquid Themes (LCP, CLS, INP)
Three frosted glass columns of different heights on a dark plane, the tallest edged in lime, with the Shopify logo on an inset panel at the base of the centre column.
Shopify

Core Web Vitals for Shopify Liquid Themes (LCP, CLS, INP)

Each Core Web Vital has a different usual cause on Shopify: the hero image for LCP, app widgets and fonts for CLS, and JavaScript for INP. Here is what to change for each.

Read
What Is RAG and Why Do LLMs Hallucinate?
A formless grey particle cloud on the left resolving into an ordered lattice of matte cubes on the right, one face lime, with the OpenAI logo on a plate in the foreground.
RAG

What Is RAG and Why Do LLMs Hallucinate?

An LLM predicts likely text, it does not look facts up. RAG fetches the relevant documents first and makes the model answer from them. Here is how it works and where it breaks.

Read
How to Launch a Goth Clothing Brand on Shopify (Step-by-Step)
Dark workshop with a garment on a dress form ready for launch
Shopify

How to Launch a Goth Clothing Brand on Shopify (Step-by-Step)

A step-by-step checklist for launching a goth or alternative clothing brand on Shopify, from brand identity and theme choice to products, policies and launch.

Read

Got a store or a build in mind?

Tell me what you're trying to ship — a Shopify section, a full storefront, a chatbot, or a web app. I'll tell you what it takes, honestly, before you commit.

ayanrjpoot@gmail.com