Projects / rag-pipeline · 2025 · Solo architect & developer

Autonomous Multi-Agent RAG Pipeline

A multi-agent AI system that retrieves and reasons over unstructured documents, deployed on Google Cloud.

What it is: A retrieval-augmented generation (RAG) service where several cooperating AI agents answer questions over your own documents. What it does: you ingest unstructured data, the system indexes it into vectors, and an agent network plans retrieval steps, calls the LLM, and returns grounded answers with full observability into cost and latency.

The problem

Naive "embed everything, stuff the top-k chunks into a prompt" RAG breaks on real corpora: answers drift off-topic, retrieval misses multi-hop questions, and nobody can tell which chain step burned the tokens.

Architecture

  • Agent graph. Orchestrated with LangGraph on the ReAct framework: agents reason, pick a tool (retrieve, re-rank, summarize), observe, and iterate instead of following a fixed prompt chain.
  • Models. Vertex AI Gemini API for inference, deployed as a containerized service on Google Cloud Run.
  • Vector stores. An automated indexing pipeline loads unstructured data into Qdrant/Pinecone, tuned for retrieval accuracy and token-context management.
  • Observability. Granular tracing across execution chains, tracking LLM inference latency (tokens/sec) and API cost-per-request so quality work has a price tag attached.

What I took away

Running agents in production is mostly an engineering problem, not a model problem: deterministic entry points, traced chains, and explicit budgets turn a demo into a service.

← all projectsQuestions? Email me