How we built “Ask Learn”, the RAG-based knowledge service
Microsoft's Skilling organization built Ask Learn, an Advanced RAG knowledge service grounded in Microsoft Learn documentation, which powers Microsoft Q&A Assist and supplies ground truth for Copilot for Azure. The system uses a service-oriented architecture: an orchestration layer calls a Knowledge Service that chunks hundreds of thousands of docs, embeds them, and keeps the vector store continuously updated as writers publish, plus services for query rewriting, re-ranking, filtering and answer evaluation. A curated "golden dataset" of questions, approved answers and source articles served as the benchmark for measuring the effect of indexing and prompt changes. Early custom pieces, such as direct .NET calls to Azure OpenAI and Python notebooks for groundedness and harms evaluation, were later replaced by the Azure SDK and Prompt flow.
Related posts
- How we built the Microsoft Learn MCP Server
Engineering@Microsoft mediumAdeptMicrosoft Learn's MCP Server is a remote Model Context Protocol endpoint, built with the official C# MCP SDK on Azure App Service, that exposes three agent tools (docs search, docs fetch, code sample search) over Streamable HTTP. It sits on the same vector-store knowledge service that powers Ask Learn. The team's lessons: design tools around the agent's search-and-read workflow rather than mirroring internal retrieval parameters, and treat the server as a stateless multi-region distributed service. They also found that tool descriptions measurably change activation rates, so they tune them with automated evals, and that some clients hardcode schemas anyway: renaming a parameter from question to query broke 2–5% of requests until both names were accepted during a deprecation window.
- Unlocking dependable responses with Gemini Enterprise Agent Platform’s Agentic RAG
Google Research easyNoviceGoogle's agentic RAG framework, now in public preview on Gemini Enterprise Agent Platform, extends multi-agent retrieval (orchestrator, planner, query rewriter, search fanout) with a Sufficient Context Agent. That agent inspects retrieved snippets and a draft answer, identifies exactly which parts of the query lack supporting evidence, and feeds targeted gaps back to the query rewriter for further retrieval rounds before final synthesis. On the FRAMES-based FramesQA benchmark (824 multi-hop queries, 2,676 PDFs), it improves accuracy by up to 34% over a vanilla RAG Engine baseline. In a cross-corpus setting with three distractor corpora it reaches 90.1% accuracy, nearly matching single-corpus results with latency within about 3%.
- Mistral 7B and BAAI on Workers AI vs. OpenAI Models for RAG
Neon mediumAdept
Swapping gpt-3.5-turbo for mistral-7b-instruct-v0.1 and text-embedding-ada-002 for BAAI's bge-base-en-v1.5 (both on Cloudflare Workers AI) in Neon's docs chatbot shows embeddings are close to interchangeable but text generation is not. Across eight Postgres questions, the two embedding models returned the same retrieved chunks 46% of the time at k=3 (42% at k=10), with Jaccard and TF-IDF cosine scores indicating substantial context overlap. Expert raters scored GPT-3.5 answers 3.8/5 versus 2.5/5 for Mistral 7B. Migrating embeddings to BGE looks viable and can cut vector storage, while replacing the generation model would noticeably hurt answer quality.
- Inside OpenAI’s in-house data agent
OpenAI mediumAdept
OpenAI built an internal GPT-5.2-powered data agent that answers natural-language analytics questions over a platform of 600+ PB and 70k datasets, available via Slack, web, IDEs, Codex CLI and ChatGPT through MCP. Its accuracy rests on six layers of context: table usage and lineage, human annotations, Codex-derived code-level table definitions, institutional knowledge from Slack/Docs/Notion, a user-correctable memory, and live warehouse queries. A daily offline pipeline normalizes and embeds this context for RAG retrieval, keeping latency predictable across tens of thousands of tables. Quality is protected with Evals API test sets that compare generated SQL output against golden queries.
- Deploy Mistral Large to Azure and create a conversation with Python and LangChain
Neon mediumAdept
Mistral Large, Mistral AI's flagship model with a 32k-token context window and leading MBPP and GSM8K scores, can be deployed through Azure AI Studio as a Pay-As-You-Go project in the France Central region. The deployment yields an inference endpoint and API key that plug directly into LangChain's ChatMistralAI class. A short Python example builds a conversational LLMChain with a system prompt, ConversationBufferMemory and a chat-history placeholder, and shows the expected output.