The RAFT framework: how Microsoft's souped-up RAG works

Andrey Vechernii6 Oct 2026

Problem

Support teams run RAG over the archive of earlier tickets, for engineers and for AI agents alike. The archived threads are raw: emails, notes, logs and statuses mixed together. What was tried and how it ended is scattered across the thread. Rebuilding the context costs an engineer time and an agent tokens. During diagnosis new facts also appear and change what the problem is.

Example from the article: a user cannot log in to an internal service. It turns out that only SSO login fails, and the cause is a renewed SSO signing certificate that the service has not picked up.

Solution in brief

RAFT (Retrieval-Augmented Framework for Troubleshooting Agents) rewrites each solved ticket as a chain of investigation stages and indexes every stage separately. A new query is matched against stages, not whole tickets, with semantic and BM25 search merged by Reciprocal Rank Fusion. The engineer or agent re-runs the search as new facts arrive.

Questions this case answers
  • How to retrieve similar past cases from an archive of long, noisy, multi-step conversations when the query grows richer as new facts appear
  • How to merge semantic and lexical retrieval results so exact identifiers are not lost
  • How to find the closest past case in an archive of support tickets when the new problem is only partly described?
  • How to make an AI troubleshooting agent reuse the experience of earlier investigations instead of reading raw ticket threads?

Tools and methods

  • Timeline entries — one stage of an investigation (symptom, hypothesis, check, new fact, cause, result), stored and searched on its own
  • Worker and reviewer agents — split a ticket into stages; check for lost data and drop unsuitable tickets
  • Semantic search — finds stages with the same meaning in different words
  • BM25 — keeps exact terms such as error codes and versions
  • Reciprocal Rank Fusion — merges the two ranked lists
Continue reading — it's free

Google or a one-time email code. No password.