liveBook · Manning

Advanced rag

As explained in Machine Learning Platform Engineering

A composite RAG system is a retrieval-augmented application assembled from multiple cooperating components such as embedding, retrieval, generation, and interface stages.

Advanced RAG assembles embeddings, retrievers, LLMs, and user interfaces into an orchestrated pipeline. Separating retrieval from generation enables private, current knowledge without retraining, while increasing operational complexity. section 12.4.4

Production deployments must coordinate:

  • Performance and reliability across distributed pipeline components. section 12.4.4
  • Observability for retrieval quality, prompts, token consumption, costs, and multistep failures. section 12.4.4
  • Responsive interfaces with streaming responses, source attribution, and graceful error handling. section 12.4.4

Operational RAG application

A production pipeline can combine a vector-backed retrieval stage, an LLM generation stage, and a Chainlit interface, then use Langfuse to inspect retrieval, prompts, tokens, and costs. section 12.4.4

How Machine Learning Platform Engineering covers it

How deep it goes
Explains pipeline architecture and operational challenges but stops short of implementation code or component-specific configuration.
Examples
Uses composite pipelines, vector databases, Chainlit interfaces, streaming responses, source attribution, and Langfuse traces.
What it assumes
Assumes familiarity with Kubernetes clusters, monitoring pipelines, and CI/CD as continuing infrastructure for LLM applications.
What you can do after
Diagnose/debug retrieval quality, prompt behavior, token consumption, cost attribution, and multistep pipeline failures.
How it connects
Connects embeddings, information retrieval, large language models, vector databases, user interfaces, and observability.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Platform Engineering. The section links point to the parts of the book it draws on.