BRK367 · Breakout
Designing the data layer for AI apps and agents with Azure Cosmos DB
Speakers: Madeline Egan, Gahl Levy, Nick Blake, Loveleen Rekhi
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
The Azure Cosmos DB product team frames an agent database around three areas: operate, remember and retrieve. They introduce AgentKit (130+ Cosmos DB best practices as a skill) and a managed MCP server with Entra ID and read-only access, and show a demo in which a developer debugs a bug via MCP, stores the finding as semantic memory, and a second developer retrieves it. Announcements include Azure Backup for Cosmos DB (GA), the semantic reranker and score projection for full-text search (GA), embedding generation in Cosmos DB (public preview) and the Microsoft Embedding One multimodal model. Willis Towers Watson explains how its Violet benefits assistant uses Cosmos DB with hybrid search, change feed-driven re-embedding and reranking, and shares lessons on index policies, RU cost and 429 throttling. The session closes with Q&A on when to use Azure AI Search versus the search built into Cosmos DB.
Best for: Architects and developers designing memory, state and retrieval for agents on Azure Cosmos DB, especially those weighing hybrid search in Cosmos DB against Azure AI Search.
New material starts at 02:47. After a short intro and quiz on the operate/remember/retrieve framing, the session moves at 02:47 to AgentKit, the managed MCP server and the controls for agents working on live data.
Where to skip: Start at 02:47 for the managed MCP server, then watch the demo at 05:13. The memory and retrieval theory from 08:59 to 14:09 is basic and can be skimmed. Watch the second demo at 14:09 and the announcements at 15:03. The core of the session is the WTW architecture at 24:54 and its lessons learned at 28:31. If you are choosing between AI Search and Cosmos DB, add the Q&A at 31:39. Skip 16:51–18:13 (quiz) and 30:18 (recap).
Chapters (14)
- 00:01 Recap Depth 100 · Novelty 0/3
Session intro: operate, remember, retrieve as the three areas of an agent database
Madeline Egan and Gahl Levy (Azure Cosmos DB product team) argue that what models can reach, meaning data and the layer underneath, matters as much as the models themselves. The talk is structured into three areas an agent database must cover: operate (agents working on application data), remember (context and memory) and retrieve (grounding in current data). A first audience quiz establishes that user preferences are agent memory, while tool output is working state, product documentation is knowledge and public content lives outside the agent's data.
- 02:47 Deep dive Depth 300 · Novelty 2/3
Operate: AgentKit, managed MCP server and the four controls for agents on live data
Once agents have tools they work against live application data, so they need an enterprise database that scales and enforces permissions. Two components are introduced: AgentKit, a skill loading 130+ Cosmos DB best practices (e.g. partitioning), and a newly introduced managed MCP server with nothing to deploy, offering read-only and Entra ID connections to the database. Agents are held to the same four controls as apps: Entra ID identity, every call running as the agent, roles/permissions and read-only tools limiting reach, and diagnostic logs recording the caller. The key message is that guardrails belong in the platform, not just in the prompt.
- 05:13 Demo Depth 300 · Novelty 2/3
Demo: debugging a Zava Retail bug via managed MCP and storing the finding as memory
In a fictional Zava Retail scenario, support escalates that customers cannot see all their orders. Gahl runs the Resolutions Hub app locally, connected to Cosmos DB through the hosted managed MCP server, and debugs the issue with Copilot, which inspects the data through MCP and proposes a small code fix. The bug and its fix (not the full conversation log) are then embedded using Cosmos DB embedding generation and stored in Cosmos DB for later semantic lookup.
- 06:45 New Depth 200 · Novelty 2/3
Azure Backup for Cosmos DB GA, global scale and five-nines SLA for agent workloads
Azure Backup for Azure Cosmos DB is announced as GA, offering daily backups with retention of up to 10 years, cross-region and cross-subscription, for compliance. The speakers then explain that agent apps send far more requests per user than typical apps; Cosmos DB answers with replication to any Azure region, multi-region writes, autoscale or serverless RUs, automatic failover and a 99.999% availability SLA for multi-region accounts. A second quiz confirms that permissions, validation and auditability matter most before an agent writes to application data.
- 08:59 Deep dive Depth 200 · Novelty 1/3
Context vs. memory, memory lifecycle toolkit and multi-agent shared data layer
Context is what the agent is doing now; memory is what it carries forward, and each should have its own lifecycle in Cosmos DB. An AI app needs three kinds of data: conversation history (messages, turns, sessions), extracted memory (e.g. a user dislikes sushi) and operational data, all of which can live in Cosmos DB. A toolkit helps extract, store, recall, curate and delete memories instead of building this by hand. In multi-agent systems, agents share memory, coordinate via state in the same database and each keeps its own identity, roles and permissions; a quiz confirms stated user preferences should become durable memory while retry counts and transient errors should not.
- 12:42 Deep dive Depth 200 · Novelty 1/3
Choosing retrieval: queries, full-text, vector or hybrid search
A simple lookup works when the user knows the exact key or filter, but many questions are fuzzier. The decision flow: use normal queries for known keys and structured filters, full-text search when keywords matter, vector search for semantic similarity, and hybrid search when both keyword precision and meaning are needed. The benefit is grounding agents in current application data without copying everything into a separate system.
- 14:09 Demo Depth 300 · Novelty 2/3
Demo: second developer retrieves the shared finding in a fresh conversation
Madeline plays a second developer with an empty conversation who describes a problem in her own words. Retrieval returns Gahl's earlier finding with a matching finding ID, and the hosted MCP search receipt shows scoped retrieval restricted to published findings before ranking. The assistant checks current report code and live data, finds a related cause with a different fix, runs tests that pass, and no duplicate finding is published.
- 15:03 New Depth 200 · Novelty 3/3
Search then rank: semantic reranker GA and Microsoft Embedding One multimodal model
Retrieval for agents works best in two steps: search to find candidates (e.g. vector retrieval) and rank, where semantic reranking reorders results so the most relevant come first; the semantic reranker is now generally available. The team also introduces Microsoft Embedding One, a new multimodal embedding model from Microsoft Research that embeds text and images. It is described as top of the leaderboard, priced on usage per text or image, and available as a preview starting today.
- 16:51 Recap Depth 100 · Novelty 0/3
Final quiz on hybrid search, leaderboard and introduction of the customer speaker
The last quiz asks which method handles both exact codes and similar meanings; the answer is hybrid search, combining keyword precision with semantic similarity. The quiz leaderboard is shown and plushies are offered at the hub. Nick Blake, senior software engineer at Willis Towers Watson, is welcomed to the stage.
- 18:13 Customer story Depth 300 · Novelty 1/3
Willis Towers Watson: Violet benefits assistant and why it chose Cosmos DB
Nick Blake describes WTW's benefits outsourcing business and Violet, an AI assistant and concierge in its employee-facing app, which began almost a decade ago on Microsoft Bot Framework with LUIS and QnA Maker and moved to generative AI and agent orchestration this past summer. Employee-specific data comes from relational databases via deterministic MCP tools, while knowledge content must be searchable by meaning and filtered by employer, eligibility and access. WTW chose Cosmos DB for a single record holding content, metadata and embeddings, hybrid retrieval merged with reciprocal rank fusion, change feed-driven re-embedding, fit with existing bot state and conversation history in Cosmos, and consumption-based RU pricing without a separate search tier or vector cluster.
- 24:54 Customer story Depth 300 · Novelty 1/3
WTW architecture: populate, embed via change feed, retrieve with hybrid search and rerank
The grounding architecture has three stages. Populate: client knowledge bases, FAQs and plan documents are synced into Cosmos DB by deployment pipelines as articles or PDF chunks parsed with Document Intelligence, enriched with metadata for provenance, attribution, tenant partitioning and access filtering. Embed: Azure Functions consume the change feed and asynchronously embed or re-embed content, writing the vector back into the same record. Retrieve: the user's utterance is vectorized into a query with full text and tenant/access metadata, Cosmos runs hybrid search, results are filtered by metadata and reranked by the semantic reranker in conversation context, and the top N go into the prompt.
- 28:31 Customer story Depth 400 · Novelty 1/3
WTW lessons learned: index policies, hybrid RU cost, load testing and 429 throttling
Nick shares four lessons. Define vector and full-text policies early, because changing them requires dropping and recreating the container, which is a problem once it holds production data. Evaluate the full hybrid query cost, since hybrid search with RRF consumes materially more RUs than vector-only search; test under realistic concurrency, where conversations and asynchronous embedding batches compete; and monitor telemetry for latency, retries and especially 429 throttling responses.
- 30:18 New Depth 100 · Novelty 2/3
Announcement recap: GA reranker and score projection, embedding generation preview
The speakers recap the announcements: semantic reranker and score projection for full-text search are generally available, and embedding generation in Cosmos DB is in public preview. A QR code links to resources and promotions, and attendees are invited to the hub to meet PMs and engineers before Q&A opens.
- 31:39 Q&A Depth 200 · Novelty 1/3
Q&A: when to use Azure AI Search vs. Cosmos DB built-in search, and closing
An attendee using Azure AI Search on top of Cosmos DB asks whether the new capabilities make AI Search unnecessary. The answer: it depends on where the data lives; for operational data already in Cosmos DB, start with Cosmos DB, while data spread across SharePoint, PDFs and the many connectors AI Search supports is a good reason to start with AI Search. The session closes with an invitation to the hub booth.
Announcements (6)
-
Azure Cosmos DB managed MCP server
A hosted MCP server with nothing to deploy that gives agents read-only and Entra ID-authenticated connections directly to the Cosmos DB database.
Speaker’s quote (at 03:46)
„Second is the newly introduced managed MCP server. Nothing to deploy doesn't offer you read-only and Entra ID connections directly to your database and your agent.“
-
Azure Backup for Azure Cosmos DB
Managed long-term backups for Cosmos DB with daily backups retained up to 10 years, cross-region and cross-subscription, for compliance.
Speaker’s quote (at 06:45)
„It's up to 10 years daily backups with RPO, cross-region, cross-subscription, all the things that you need for your compliance. This is now GA“
-
Semantic reranker in Azure Cosmos DB
Reorders search results by semantic relevance so the most relevant candidates come first.
Speaker’s quote (at 15:28)
„Semantic reranking reorders what search found, so the most relevant results come first. Semantic reranker is now generally available, so everyone can use it.“
-
Microsoft Embedding One
A new multimodal embedding model from Microsoft's research team that creates embeddings from text and images, with usage-based pricing.
starting today · usage-based pricing based on text or images
Speaker’s quote (at 15:54)
„introducing today a brand new model from our research team called Microsoft Embedding One, which is a multimodal embedding model.“
-
Score projection for full-text search
Returns relevance scores for full-text search results in Azure Cosmos DB.
Speaker’s quote (at 30:18)
„One of them is some of the new generally available things, and that is semantic re-ranker and score projection for full text search.“
-
Embedding generation in Azure Cosmos DB
Generates vector embeddings within Azure Cosmos DB, as used in the demo to embed stored findings.
Speaker’s quote (at 30:18)
„We also have a new public preview, and that is embedding generation, as we were talking about earlier.“
Demos (2)
-
A developer at a fictional retailer debugs a 'customers can't see all their orders' issue with an AI assistant that reads Cosmos DB data via the managed MCP server, then saves the finding as reusable semantic memory for other developers.
Steps (5)
- Run the Resolutions Hub app locally with Azure Cosmos DB as its database.
- Connect the agent to the hosted managed MCP server, which connects to the database on the agent's behalf.
- Ask Copilot to debug the escalated issue; Copilot inspects the data through the MCP server.
- Review and apply the small code change Copilot proposes to fix the bug.
- Embed the bug and its fix (not the full conversation log) using Cosmos DB embedding generation and store it in Cosmos DB as a published finding for later semantic lookup.
Prerequisites: Azure Cosmos DB account with the managed MCP server and embedding generation; an AI coding assistant (Copilot) connected to the MCP server; the Resolutions Hub sample app.
-
A second developer, starting from an empty conversation, reuses a teammate's stored finding through semantic retrieval to diagnose a related bug faster.
Steps (6)
- Select the second developer's profile in Resolutions Hub and start an empty conversation.
- Describe the problem in your own words.
- Inspect the retrieved finding and confirm its ID matches the finding published earlier.
- Check the hosted MCP search receipt showing scoped retrieval over published findings only, before ranking.
- Let the assistant check the current report code and live data, identify the related cause and apply its different fix.
- Run the tests, confirm they pass, and do not publish a duplicate finding.
Prerequisites: The finding stored in the previous demo; Azure Cosmos DB with vector search and the managed MCP server; the Resolutions Hub sample app.