BRK300 · Breakout
Building agentic retrieval: From DIY to Foundry IQ
Speakers: Pamela Fox, Matt Gotteiner
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
Pamela Fox and Matt Gotteiner build an agentic retrieval pipeline by hand in Python over a Foundry IQ search index, step by step: a single hybrid search with RRF and the semantic ranker, LLM query planning with parallel sub-queries, an LLM reflection loop for multi-hop questions (12 seconds of retrieval) and a complexity router. They then introduce Microsoft Retriever 1, a fine-tuned task-specific model in public preview that answers the multi-hop question in under a second and, across public and private enterprise datasets, added about 8 points of fact recall while saving about a third of tokens. Auto retrieval reasoning effort now escalates from search to Retriever 1 to an LLM, giving median retrieval under a second and about 70% fewer tokens, with somewhat less complete evidence as the stated trade-off. The session ends with a DIY-versus-Foundry IQ comparison (14 times faster on the multi-hop example), Retriever 1 pricing of 10 cents per million input tokens with free output tokens, and a new agentic query type that brings Retriever 1 to existing search queries without knowledge bases.
Best for: Developers and architects building RAG or agent retrieval over enterprise documents who want to understand agentic retrieval mechanics and decide between a DIY pipeline and Foundry IQ.
New material starts at 19:23. Before 19:23 the session walks through a hand-built pipeline using known techniques (hybrid search, query planning, reflection, routing); at 19:23 Microsoft Retriever 1 is introduced.
Where to skip: If you already know hybrid search, query decomposition and reflection loops, skip to 19:23 for Microsoft Retriever 1; 24:00 (auto escalation with latency and token figures) and 29:59 (DIY vs Foundry IQ comparison, pricing, agentic query type) are the core. Watch 03:15–19:23 only if you want the DIY code and latency breakdowns; skip the intro and the 33:22 wrap-up.
Chapters (9)
- 00:01 Recap Depth 100 · Novelty 0/3
Speaker intros, Foundry IQ knowledge bases and the Coco Rinth retrieval scenario
Matt Gotteiner (PM, Foundry IQ) and Pamela Fox (principal cloud advocate) introduce the session plan: a DIY agentic retrieval build, then the built-in Foundry IQ approach, then a comparison of the two. Foundry IQ is described as a knowledge base that runs an agentic retrieval engine over knowledge sources scattered across an organisation, backed by an ingestion pipeline. The fictional chocolate company Coco Rinth serves as the running example: multilingual PDFs, PowerPoints and DOCX files containing charts and tables, plus retailer and customer questions that need multi-source answers with citations, delivered fast and cheaply.
- 03:15 Demo Depth 300 · Novelty 1/3
DIY baseline: a single hybrid search call with RRF and the semantic ranker
Pamela builds a baseline Python agent whose knowledge retrieval tool runs one hybrid search against a Foundry IQ search index using the official SDK: the query text plus its vector embedding, semantic ranking and the top 5 results. The demo answers a fact-finding question and shows the returned chunks (one is a chart description) with their original and reranker scores. She explains that BM25 keyword search handles exact matches such as years, multilingual vector search handles semantic similarity, the two result sets are merged with reciprocal rank fusion, and the semantic ranker reorders them and assigns scores that can be used to drop low-relevance chunks.
- 07:03 Demo Depth 300 · Novelty 1/3
Compound questions: adding LLM query planning with parallel fan-out searches
A compound question (tasting panel opinion plus the reason the bean lot was held) fails with the single-search baseline because one query returns lopsided results and the full tasting notes are missing. Pamela adds a query-planning step in which an LLM decomposes the question into sub-queries that run in parallel, with results combined using the reranker score. The new run answers both parts; the latency waterfall shows that query planning with GPT-5.5 at medium reasoning took 2.6 seconds, longer than the searches themselves.
- 10:19 Demo Depth 300 · Novelty 1/3
Multi-hop questions: adding an LLM reflection loop and its 12-second latency cost
Multi-hop questions require clues from the first results (such as a bean lot ID) to drive a second search; query planning alone fails on the estate-delay question. Pamela adds a reflection step in which an LLM receives the original query and results and returns whether they were sufficient, what was missing and which queries to run next; those queries run in parallel and reflection repeats until it is satisfied. The answer is now complete, but total retrieval time reaches 12 seconds, with the reflection call (GPT-5.5, low reasoning) alone taking 5 seconds because of the large context.
- 15:09 Demo Depth 300 · Novelty 1/3
Complexity router: classifying questions as direct or agentic and the tuning trade-off
To avoid paying the full agentic cost on simple questions, Pamela adds a complexity classifier (router) built on what the caption calls the 'Microsoft Decision One' model, noting the OpenAI Decisions API as an alternative. The router took 1.1 seconds on a simple question and correctly chose the agentic path for the multi-hop question, returning a direct-versus-agentic probability. She warns that routers are hard to trust and need evaluation sets, and that every router involves a trade-off between missing information and overspending, often exposed as a balance/efficiency/accuracy lever.
- 19:23 New Depth 300 · Novelty 3/3
Microsoft Retriever 1: fine-tuned agentic retrieval model in Foundry IQ (public preview)
Matt recaps the existing Foundry IQ agentic retrieval (LLM query planning, hybrid search across knowledge sources, evaluation) and introduces Microsoft Retriever 1, a fine-tuned task-specific model in public preview that searches first, judges whether results fit the query and, if not, generates the next query. It is built into Foundry IQ, so no deployment is needed: the model is swapped in the knowledge base and retrieval reasoning effort is set to minimal. The multi-hop question is answered in under a second, with reflection faster than the index search; across public and private enterprise datasets it added about 8 points of fact-recall quality and saved about a third of tokens when an LLM agent drives the search tool.
- 24:00 New Depth 300 · Novelty 2/3
Auto retrieval reasoning effort: router-free escalation from search to Retriever 1 to LLM
Auto retrieval reasoning effort, introduced in August, escalated from a search to the full LLM loop when reranker scores were poor; it now uses an ensemble that escalates search, then Microsoft Retriever 1, then the LLM. It is enabled by listing Retriever 1 and an LLM in the model list and setting retrieval reasoning effort to auto. The demo shows a simple question answered in about 200 ms, the multi-hop question resolved by Retriever 1, and the compound question escalated to GPT-5.5 query planning only when needed. In evaluations the old mode escalated to the LLM about 80% of the time, Retriever 1 now handles a little over half, median retrieval is under a second and token use is about 70% lower, with somewhat less complete evidence as a stated trade-off.
- 29:59 Deep dive Depth 300 · Novelty 2/3
DIY vs Foundry IQ comparison, ownership, Retriever 1 pricing and the new agentic query type
Matt compares the hand-rolled pipeline with Foundry IQ on Coco Rinth data: one fewer model call and lower cost for simple questions, faster but slightly more tokens for compound questions, and much faster and cheaper for multi-hop questions (14 times faster in the example). DIY requires owning query planning, reflection policy, routing, prompts and thresholds, whereas Foundry IQ exposes a knowledge base to an agent over MCP as a single retrieve tool. Microsoft Retriever 1 is priced at 10 cents per million input tokens with free output tokens, and a new agentic query type lets existing search queries use Retriever 1 without adopting knowledge bases.
- 33:22 Closing Depth 100 · Novelty 0/3
Choosing a path, labs, code repo and wrap-up
Pamela concludes that for her scenario Foundry IQ agentic retrieval is the better choice, but stresses that Foundry IQ offers several levels (plain search calls and knowledge bases) and that teams should evaluate on their own data. She notes Microsoft Retriever 1 came out at Ignite about three days earlier, points to a blog post with evaluation details, two upcoming hands-on labs that also cover the new graph features, and a repo with all demo code.
Announcements (3)
-
Microsoft Retriever 1
A fine-tuned, task-specific model built into Foundry IQ that judges whether search results fit a query and generates the next query when they do not.
10 cents per million input tokens; output tokens free
Speaker’s quote (at 20:15)
„We decided we are going to fine tune our own model. It's called Microsoft Retriever One, now in public preview.“
-
Auto retrieval reasoning effort with Microsoft Retriever 1 ensemble
Extends auto retrieval reasoning effort to escalate from search to Microsoft Retriever 1 and only then to an LLM, without a complexity router.
Speaker’s quote (at 24:51)
„Now with Microsoft Retriever One, we've enabled an ensemble approach with auto retrieval reasoning effort.“
-
Agentic query type in Foundry IQ
A new query type that lets any existing search query use Microsoft Retriever 1 without adopting knowledge bases.
Speaker’s quote (at 32:54)
„There's actually a new agentic query type in FoundryIQ. So you can basically take any search query that you have today and you can make it use Microsoft Retriever One“
Demos (6)
-
A developer answers a simple fact-finding question over company documents with one hybrid search call to a Foundry IQ search index.
Steps (5)
- Build a simple app or agent with a knowledge retrieval tool.
- In the tool, use the official search SDK to call search with the query text and a vector embedding of that query.
- Enable semantic ranking and request the top 5 results.
- Ask the fact-finding question in the app.
- Inspect the rewritten query, the returned chunks, their original scores and their reranker scores.
Prerequisites: A Foundry IQ search index with indexed documents and vector embeddings; the official search SDK for Python. Code: python/diy-baseline/main.py.
-
A developer handles compound questions by having an LLM decompose them into parallel sub-queries over a Foundry IQ index.
Steps (5)
- Run the compound question against the single-search baseline and observe the incomplete answer.
- Add a query-planning step that prompts an LLM to turn the question into multiple search queries.
- Run the generated queries in parallel as hybrid searches against the index.
- Merge the results using the reranker score.
- Re-run the question and check the latency waterfall for the planning and search steps.
Prerequisites: A Foundry IQ search index and an LLM deployment (GPT-5.5 is used in the demo). Code: python/diy-query-planning/main.py.
-
A developer answers multi-hop questions by letting an LLM judge result sufficiency and propose follow-up searches.
Steps (5)
- Run the multi-hop question with query planning only and observe the missing answer.
- Add a reflection step that sends the original question and search results to an LLM.
- Ask the LLM to return whether the results are sufficient (yes/no), what is missing and the next queries.
- Run the suggested queries in parallel and reflect again until the LLM reports sufficient.
- Review the latency waterfall for planning, search and reflection calls.
Prerequisites: A Foundry IQ search index and an LLM deployment (GPT-5.5 is used in the demo). Code: python/diy-reflection/main.py.
-
A developer routes each question to either a direct search or the full agentic retrieval path using a fast classification model.
Steps (5)
- Add a complexity classifier step before retrieval that sends the question to a fast model.
- Have the classifier return a probability of direct versus agentic handling.
- Ask a simple question and verify it takes the direct search path, checking the routing latency.
- Ask the multi-hop question and verify it takes the agentic path.
- Build a test set of questions to evaluate whether the router picks the right path.
Prerequisites: A Foundry IQ search index, a fast classification model for routing and an LLM for the agentic path.
-
A developer swaps the knowledge base model to Microsoft Retriever 1 to answer a multi-hop question quickly with agentic retrieval quality.
Steps (5)
- Open the Foundry IQ knowledge base definition.
- Replace the LLM in the model list with the built-in Microsoft Retriever 1 (no deployment required).
- Set retrieval reasoning effort to minimal.
- Ask the multi-hop question about the estate delay.
- Review the stages: initial search, Retriever 1 decision, second search and final decision.
Prerequisites: A Foundry IQ knowledge base. Code: python/foundry-iq-mr1-kb/main.py.
-
A developer configures a knowledge base to escalate automatically, so simple, multi-hop and compound questions each use only the effort they need.
Steps (5)
- Add both Microsoft Retriever 1 and an LLM to the knowledge base model list.
- Set retrieval reasoning effort to auto.
- Ask a simple storage-temperature question and verify it returns after the initial search.
- Ask the multi-hop question and verify Retriever 1 triggers a second search and then stops.
- Ask the compound question and verify Retriever 1 escalates to the LLM for query planning and the reranker ends the loop.
Prerequisites: A Foundry IQ knowledge base and an LLM deployment (GPT-5.5 in the demo). Code: python/foundry-iq-auto/main.py.