Guides & Tutorials
Step-by-step tutorials to help you build AI apps, master new frameworks, and optimize your workflows.
Guaranteed JSON from llama.cpp with Pydantic and GBNF grammars
Use llama.cpp's GBNF grammar constraints and Pydantic validation together to make invalid JSON structurally impossible at inference time.
Chain of Verification with SGLang: Reduce LLM Hallucinations
Build a factored Chain-of-Verification pipeline with SGLang that runs draft, verify, refine, and summarize as independent LLM calls.
Build a Self-Correcting RAG Agent with LangGraph and Milvus
Wire adaptive routing, corrective RAG, and self-RAG into a stateful LangGraph agent backed by Milvus Lite — no OpenAI key required.
Hybrid Search with RRF in Elasticsearch: A Complete Guide
Combine BM25 and kNN vector search using Reciprocal Rank Fusion in Elasticsearch to build a production-ready RAG retriever in Python.
Build Persistent Agent Working Memory with MongoDB and Tavily
Store, retrieve, and grow agent memory across sessions using MongoDB Atlas Vector Search and Tavily hybrid RAG with save_foreign.
Evaluate Multi-Turn Conversations with Ragas AspectCritic
Use Ragas AspectCritic to score multi-turn chatbot conversations on task completion, regulatory compliance, and brand voice with binary LLM judgements.
Showing 6 of 51 guides
Complete guides archive
Browse every published entry. Newest stories and guides remain available above.
Browse all 51 entries
2026
- Guaranteed JSON from llama.cpp with Pydantic and GBNF grammars
- Chain of Verification with SGLang: Reduce LLM Hallucinations
- Build a Self-Correcting RAG Agent with LangGraph and Milvus
- Hybrid Search with RRF in Elasticsearch: A Complete Guide
- Build Persistent Agent Working Memory with MongoDB and Tavily
- Evaluate Multi-Turn Conversations with Ragas AspectCritic
- Self-Consistency Voting with Outlines and gpt-4o-mini
- How to Remove Claude Watermarks from Text, Code, and Files
- AI Web Scraping in Python: When an LLM Earns Its Cost
- Build a Text-to-SQL Agent with smolagents in One File
- Build a Multi-Modal RAG Pipeline with LlamaIndex and Qdrant
- Generate Video with Google Veo 3.1 and the Gemini Python SDK
- Run parallel Claude agents with asyncio and a message hub
- Build a Deep Research API Agent Pipeline with OpenAI
- Self-Hosted LLM Guide 2026: Run AI Locally for Privacy & Savings
- Build a Local LLM Zero-Shot Classifier You Can Actually Deploy
- The Complete Developer Guide to Running LLMs Locally: From Ollama to Production
- Event-Driven Architecture for Agentic AI: The Architect's Guide
- Cursor AI: Complete Setup and Practical Coding Guide
- How to Run DeepSeek R1 Locally with Ollama: Full Setup Guide
- Run DeepSeek V4 Flash Locally with llama.cpp on a Single GPU
- How to Run Qwen3 Locally with Ollama: Setup, API, and a Gradio App
- Self-Hosting DeepSeek V4 with vLLM: Hardware Requirements and Deployment Guide
- The Best Small Language Models Available on Hugging Face
- 5 Cool Things I Did With Local Language Models
- Mastering Advanced RAG Evaluation: From Basic Metrics to LLM-as-a-Judge
- Building Context-Aware Search in Python with LLM Embeddings and Metadata
- Top 5 Small Language Models for Agentic Tool Calling
- Advanced LLM Compression: A Hands-on Implementation Guide for FP8, GPTQ, and SmoothQuant using llmcompressor
- Beyond Prompt Engineering: Deep-Dive RAG for Intent Detection & Slot Filling in AI Agents
- The Developer's Guide to Running Claude Code for Free: Ollama, OpenRouter, and Local Proxies
- Building a Production RAG Pipeline with Bedrock and OpenSearch Serverless
- Secure RAG on Google Cloud: From Private Data to Safe Answers
- Learning to Rank: The Hidden Layer Powering Modern RAG
- Designing a Production-Grade RAG Architecture
- RAG vs. MCP: What Every AI Developer Actually Needs to Know
- Local RAG Tutorial: LangChain, Ollama & ChromaDB with Ragas
- How to Build a Time-Series RAG for Forecasting Data
- What Is Tokenization Drift? A Practical Guide to Finding and Fixing It
- How to Analyze and Fine-Tune Agent Reasoning Traces
- APIs vs MCPs vs MCP Gateways: A Practical Guide for AI Builders
- Building AI Agents in Python with Pydantic AI
- Run Claude Code Locally with Ollama: A Complete Setup Guide
- AI Risk Management: A Comprehensive Guide to Securing AI Systems
- Building AI Agents with Local Small Language Models (SLMs)
- Zero to Automation: How to Build Your First AI Agent
- How to Implement Self-Verification in Agentic Workflows
- How to Build a Custom RAG System with Pinecone and Next.js
- How to Run Local LLMs Securely Using Ollama
- Deploying Open Source Models on RunPod: A Step-by-Step Guide
- Getting Started with LangChain in 2026