Agentic RAG: When the Model Decides What to Retrieve

Posted on Fri 03 December 2027 in GenAI • Tagged with GenAI, RAG, AI-agents, agentic-RAG, tool-use, retrieval

The Question Classic RAG Can't Answer

Our RAG API handles simple questions well. But try this one:

"Can I return the headphones from order 1234? I bought them about 40 days ago."

Classic RAG turns that into one search, retrieves a few policy chunks, and answers. It never looks up …


Continue reading

The Difference Between an AI Model and an AI Product

Posted on Fri 01 October 2027 in GenAI • Tagged with GenAI, LLM, AI-product, startups, opinion

Why This Distinction Keeps Getting Blurred

People use "AI" to mean a lot of different things in the same breath — GPT-4 is "AI," ChatGPT is "AI," a company's customer support bot built on top of both is also "AI." But these are three genuinely different things, sitting at different layers …


Continue reading

Environment Variables in FastAPI — Managing Secrets the Right Way

Posted on Tue 28 September 2027 in Tutorial • Tagged with FastAPI, Python, environment-variables, security, pydantic-settings, deployment

Why This Matters

Almost every FastAPI app eventually needs something it shouldn't have hardcoded in the source code: a database URL, an LLM API key, a JWT secret, a third-party service token. When you're building GenAI apps, this shows up on day one, because you can't call an LLM API …


Continue reading

Why FastAPI Auto-Generates API Docs (And How to Customize Them)

Posted on Mon 27 September 2027 in Tutorial • Tagged with FastAPI, Python, API-docs, Swagger, OpenAPI

Why This Matters

If you've built even a basic FastAPI app, you've probably stumbled onto /docs and been pleasantly surprised — a fully interactive API documentation page, complete with every endpoint, request schema, and a "Try it out" button, without writing a single line of documentation yourself. This isn't a small …


Continue reading

Temperature and Top-p Explained: Why Your AI Sounds Different Each Time

Posted on Sun 18 April 2027 in Beginner Guide • Tagged with GenAI, LLM, temperature, top-p, sampling, beginner

The Question That Started This

I once asked the same question to the same model twice and got two noticeably different answers. My first thought was that something was broken. It wasn't. That variation is a feature, controlled by a couple of settings you've probably seen in every LLM API …


Continue reading

Function Calling Explained: How an LLM Actually "Uses" a Tool

Posted on Sun 04 April 2027 in Beginner Guide • Tagged with GenAI, LLM, function-calling, tool-use, AI-agents, Python

The Misconception I Had

When I first heard that an LLM can "call a function" or "use a tool," I pictured the model reaching out and running code: checking the weather, querying a database, sending an email. It sounded almost magical, and a little scary.

The reality is much simpler …


Continue reading

Understanding Juuri: A Knowledge Graph Library for RAG

Posted on Thu 03 December 2026 in GenAI • Tagged with GenAI, RAG, KnowledgeGraph, LLM, Python, AI

Why Do AI Applications Need Better Knowledge?

AI applications use information from documents to answer questions. But sometimes, finding the right information is not enough. The system also needs to understand how different facts are connected.

This is where knowledge graphs become useful.

Juuri is a lightweight Python library developed …


Continue reading

vLLM vs Ollama: Which One Should You Use to Serve Open Models?

Posted on Thu 26 November 2026 in Tutorial • Tagged with GenAI, LLM, vLLM, Ollama, local-LLM, model-serving, FastAPI, deployment

The Moment Ollama Stopped Being Enough

In the earlier post on running a local LLM, I set up Ollama in about fifteen minutes and plugged it into a FastAPI chatbot. It felt great. One model, one laptop, one user: me.

Then I imagined what happens when ten people use that …


Continue reading

Why PDFs Are the Hardest Part of RAG (And How to Parse Them Better)

Posted on Mon 23 November 2026 in Tutorial • Tagged with GenAI, RAG, PDF, document-parsing, OCR, chunking, Python

The Moment My RAG App Fell Apart

The RAG API we built earlier worked beautifully, as long as I fed it clean text. Then I did what every user eventually does: I uploaded a real PDF. A quarterly report, 40 pages, with columns, tables, charts, and a header on every …


Continue reading

Mem0: Giving AI the Ability to Remember

Posted on Sun 22 November 2026 in GenAI • Tagged with GenAI, Mem0, AIMemory, LLM, AIAgents, MachineLearning

The Problem with AI Forgetting

Have you ever talked to an AI chatbot, closed the conversation, and started again later? Sometimes, you have to explain everything from the beginning.

For example, imagine telling an AI assistant that you are learning Python and want to become a Full Stack Developer. The …


Continue reading