Guides & Tutorials

Step-by-step tutorials to help you build AI apps, master new frameworks, and optimize your workflows.

Sort by:
guides
ShanSeptember 1, 2026
llama.cpppydanticstructured outputlocal inferenceGBNF

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.

Read more
guides
ShanAugust 29, 2026
SGLanghallucinationLLM inferencechain-of-verificationPython

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.

Read more
guides
ShanAugust 27, 2026
LangGraphRAGMilvusOllamaLangChain

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.

Read more
guides
ShanAugust 26, 2026
elasticsearchhybrid-searchRAGvector-searchreciprocal-rank-fusion

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.

Read more
guides
ShanAugust 25, 2026
MongoDBTavilyRAGvector-searchagent-memoryCohere

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.

Read more
guides
ShanAugust 23, 2026
ragasevaluationmulti-turnllm-as-judgechatbot

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.

Read more

Showing 6 of 51 guides

Complete guides archive

Browse every published entry. Newest stories and guides remain available above.

Browse all 51 entries

2026