---
title: "How we built “Ask Learn”, the RAG-based knowledge service"
description: "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."
url: "https://swe.quest/articles/how-we-built-ask-learn-the-rag-based-knowledge-service-18591af643e9f64f"
canonical: "https://devblogs.microsoft.com/engineering-at-microsoft/how-we-built-ask-learn-the-rag-based-knowledge-service/"
source: "Engineering@Microsoft"
published: "2024-04-22"
difficulty: "easy"
kind: "Case study"
reading_minutes: 18
tags: ["rag","llms","evals","system-design"]
---

# How we built “Ask Learn”, the RAG-based knowledge service

A post on [Engineering@Microsoft](https://swe.quest/sources/ms-engineering.md), published 2024-04-22, 18 min read, Case study. Original: [https://devblogs.microsoft.com/engineering-at-microsoft/how-we-built-ask-learn-the-rag-based-knowledge-service/](https://devblogs.microsoft.com/engineering-at-microsoft/how-we-built-ask-learn-the-rag-based-knowledge-service/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- embeddings and vector search ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))
- LLM basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Ask Learn, Microsoft Learn, Copilot for Azure, Microsoft Q&A, Azure OpenAI, Prompt flow

## Related posts

- [How we built the Microsoft Learn MCP Server](https://swe.quest/articles/how-we-built-the-microsoft-learn-mcp-server-0014fb713a8036c2.md): Engineering@Microsoft · 2026-02-11 · Medium · 5 min read · AI agents, API design, RAG & retrieval, .NET
  Microsoft 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.
- [Unlocking dependable responses with Gemini Enterprise Agent Platform’s Agentic RAG](https://swe.quest/articles/unlocking-dependable-responses-with-gemini-enterprise-agent-platform-s-agentic-1fa2162940afaaba.md): Google Research · 2026-06-05 · Easy · 8 min read · RAG & retrieval, AI agents, LLMs, Evaluation
  Google'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.
- [Mistral 7B and BAAI on Workers AI vs. OpenAI Models for RAG](https://swe.quest/articles/mistral-7b-and-baai-on-workers-ai-vs-openai-models-for-rag-30d70a2c28e85606.md): Neon · 2023-12-11 · Medium · 7 min read · RAG & retrieval, LLMs, Evaluation, Inference & serving
  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.
- [Inside OpenAI’s in-house data agent](https://swe.quest/articles/inside-openai-s-in-house-data-agent-55ba2e68b590558a.md): OpenAI · 2026-01-29 · Medium · 13 min read · AI agents, RAG & retrieval, Analytics & OLAP, Evaluation, LLMs
  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.
- [Deploy Mistral Large to Azure and create a conversation with Python and LangChain](https://swe.quest/articles/deploy-mistral-large-to-azure-and-create-a-conversation-with-python-and-9f252b9b3fd4d808.md): Neon · 2024-02-27 · Medium · 4 min read · LLMs, Python, Cloud platforms
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
