Skip to main content

AI Engineering and Advanced RAG

AI engineering for production systems: advanced RAG with re-ranking, chunking strategies, vector stores, guardrails, evaluation frameworks, and multi-agent architectures.

This series collects 27 articles (approximately 368 minutes of total reading time), designed for a level Advanced. The main topics covered are AI Engineering, RAG, vector search, guardrails.

27Articles368 minTotal reading timeAdvancedLevel
AI EngineeringRAGvector searchguardrailsmulti-agent

Series Articles

  1. 1

    AI Agents in Production: Claude SDK vs Anthropic Agents API vs Ollama Local—Step-by-Step Tutorial

    A production AI Agent requires 4 critical components: reactive planning loop (ReAct/OODA), type-safe tool registry with validation, persistent memory...

  2. 2

    FastAPI for ML Microservices with Pydantic v2

    Build ML microservices with FastAPI (Python 3.12) and Pydantic v2: request/response validation, async/await, lifespan for model loading at boot, dependency injection, health checks, graceful degradation with on-prem Ollama.

  3. 3

    Prompt Engineering for Code Generation: Techniques and Best Practices

    Practical guide to prompt engineering techniques for reliable code generation with LLMs. Few-shot learning, chain-of-thought, role prompting, structured output, iteration and evaluation. Real examples with Ollama on-prem.

  4. 4

    LightGBM for Sports Prediction: Gradient Boosting and Brier Score

    Sports prediction pipeline with LightGBM in Python: feature engineering, gradient boosting, probabilistic calibration, evaluation with Brier score on a dataset of 2000+ matches.

  5. 5

    RAG Evaluation Pipeline: golden dataset Italian

    RAGAS framework, faithfulness/relevance metrics, golden dataset 100 Q&A in Italian, DeepEval, continuous evaluation loop for RAG production.

  6. 6

    vLLM in production: scaling enterprise SME

    PagedAttention deep dive, continuous batching, tensor/pipeline parallelism, GPTQ/AWQ quantization, Italian SME deployment patterns on Hetzner/OVH.

  7. 7

    Self-hosted LLM stack: alternatives to Ollama 2026

    vLLM, llama.cpp, TGI comparison vs Ollama: performance, memory overhead, inference latency, quantization support, EU sovereignty constraints for SMEs.

  8. 8

    Travel Intelligence Engine: RAG, LLMs, 8,802 Open POIs

    How I built an open source travel intelligence engine with Redis HNSW, sentence-transformers, Cloudflare Workers AI and 8,802 POIs from OSM and Wikidata.

  9. 9

    Taxonomy of AI failures: 12 ways your LLM can break

    Taxonomy of AI failures: 12 ways your LLM can break You've deployed your AI service. It works. For three weeks everything is fine.

  10. 10

    Agents are not chat: autonomous architectures that do more than you ask for

    Agents are not chat: autonomous architectures that do more than you ask for An actual agent is an LLM that uses tools, maintains state, fails, and recovers...

  11. 11

    01 - RAG Explained: Retrieval-Augmented Generation Fundamentals

    Complete guide to RAG Explained: Retrieval-Augmented Generation Fundamentals: architecture, practical implementation and best practices for developers and technical teams.

  12. 12

    Provider Failover AI: Ollama → OpenAI → Fallback Static, Case Study Architecture

    Provider Failover AI: Ollama → OpenAI → Fallback Static, Case Study Architecture: Provider Failover AI: Ollama → OpenAI → Fallback Static, Case Study...

  13. 13

    Observability agent: tracing span-per-thought with OpenTelemetry

    Observability agent: tracing span-per-thought with OpenTelemetry Your agent failed after 47 tool call. The log says AssertionError: unexpected output...

  14. 14

    02 - Embeddings and Semantic Search: Choosing the Right Model

    Complete guide to Embeddings and Semantic Search: Choosing the Right Model: architecture, practical implementation and best practices for developers and technical teams.

  15. 15

    Graceful Degradation UX AI: What the User Sees When AI is Down

    Graceful Degradation UX AI: What the User Sees When AI is Down Imagine this scenario: a user opens your portfolio's AI chat, types in a...

  16. 16

    Cost optimization agent: reduce token spend 80% without losing quality

    Cost optimization agent: reduce token spend 80% without losing quality An agent Claude Sonnet 3.7 without optimizations, on a document analysis task...

  17. 17

    03 - Vector Database Comparison: Qdrant, Pinecone, Weaviate

    Complete guide to Vector Database Comparison: Qdrant, Pinecone, Weaviate: architecture, practical implementation and best practices for developers and technical teams.

  18. 18

    Circuit breaker LLM: Resilience4j + smart recovery + half-open probing

    Circuit breaker LLM: Resilience4j + smart recovery + half-open probing The circuit breaker is born from electrical mechanics: when the current exceeds...

  19. 19

    Debugging agent loop: 6 patterns of deadlock and how to escape them

    Debugging agent loop: 6 patterns of deadlock and how to escape them: Debugging agent loop: 6 patterns of deadlock and how to escape them Your agent started with ...,

  20. 20

    04 - Hybrid Search: Combining Keyword and Vector Retrieval

    Complete guide to Hybrid Search: Combining Keyword and Vector Retrieval: architecture, practical implementation and best practices for developers and technical teams.

  21. 21

    Tool design for agent: naming, schema, error handling that reduce errors by 60%

    Tool design for agent: naming, schema, error handling that reduce errors by 60%: Tool design for agent: naming, schema, error handling that reduce...

  22. 22

    05 - Building RAG with LangChain: Document Processing and Chains

    Complete guide to Building RAG with LangChain: Document Processing and Chains: architecture, practical implementation and best practices for developers and technical teams.

  23. 23

    06 - Prompt Engineering at Scale: Techniques and Best Practices

    Complete guide to Prompt Engineering at Scale: Techniques and Best Practices: architecture, practical implementation and best practices for developers and technical teams.

  24. 24

    07 - Managing LLM Context: Memory Allocation and Optimization

    Complete guide to Managing LLM Context: Memory Allocation and Optimization: architecture, practical implementation and best practices for developers and technical teams.

  25. 25

    08 - Multi-Agent Systems: Orchestration and Coordination Patterns

    Complete guide to Multi-Agent Systems: Orchestration and Coordination Patterns: architecture, practical implementation and best practices for developers and technical teams.

  26. 26

    09 - Knowledge Graphs: Building Structured Knowledge for AI

    Complete guide to Knowledge Graphs: Building Structured Knowledge for AI: architecture, practical implementation and best practices for developers and technical teams.

  27. 27

    10 - Evaluating RAG: Metrics, Benchmarking, Production Monitoring

    Complete guide to Evaluating RAG: Metrics, Benchmarking, Production Monitoring: architecture, practical implementation and best practices for developers and technical teams.

Test your knowledge!

Have you read all the articles? Check how much you've learned by taking this series' quizzes.

Take the quiz!