I'm building a production-grade, multi-tenant AI support agent in TypeScript. No Python. No LangChain. Just Node.js, PostgreSQL with pgvector, and a lot of wrong assumptions that taught me more than any tutorial.

This post covers three things I got wrong while building my RAG (Retrieval-Augmented Generation) pipeline, what I replaced them with,...