I Paid for the Embedding. My Logs Never Saw the Request.A follow-up to Counting OpenAI Tokens per Request in FastAPI. I sent a document to evorag while the database was down. OpenAI was called. The embedding was created. I paid for it. Then the database wr4 min read·yusufoztoprak.hashnode.devNov 5
Swapping OpenAI for a Fake Embedder With One Environment VariableA Factory refactor in a NestJS RAG API, and three things the tutorials leave out9 min read·yusufoztoprak.hashnode.devOct 27
Counting OpenAI Tokens per Request in FastAPI — Without Touching My Use CasesStructured logging for a Clean Architecture RAG service, and the ContextVar trap I had to design around7 min read·yusufoztoprak.hashnode.devOct 17
Building a RAG Service from Scratch with NestJS + pgvectorHow I built a Retrieval-Augmented Generation (RAG) service from scratch using NestJS, PostgreSQL, and pgvector — covering chunking, embeddings, and semantic search.4 min read·yusufoztoprak.hashnode.devJul 6