Microsoft 365 Copilot Retrieval API

Microsoft 365 Developer · Beginner ·💻 AI-Assisted Coding ·12mo ago

Key Takeaways

The video introduces the Microsoft 365 Copilot Retrieval API, a natural language querying model for consuming enterprise content via a REST API, and demonstrates its usage with the Microsoft Graph Explorer.

Full Transcript

[Music] We recently released in preview the copilot retrieval API which allows you to consume the enterprise content of your Microsoft 365 tenant using a rest API available through the Microsoft graph. Let me dig into how it works and let me show you a brief demo about how you can leverage this new capability. So let's see what the retrieval API is and it is a natural language quering model over your Microsoft 365 content via a secure compliant and scalable platform. You can use the retrieval API in your own applications to consume your enterprise content using the same approach that end users can use in Microsoft 365 copilot. Currently the retrieval API targets the SharePoint online content as well as the copilot connectors and you can use filter expressions to define for example with KQL or with filters the specific scope of your queries. In order to consume the retrieval API from a graph perspective and from a permission perspective you will need to have permissions for files readall size. Roll and external item read all. This technology is nowadays in public preview. So, let's have fun with it. Let's assume that we have an HR department with a bunch of documents about HR related topics like for example how to hire people in our company and stuff like that. Now, let's say that we want to use the retrieval API provided by Microsoft Graph through the graph explorer. And to do that you can simply go to aka.ms/ge to go to the graph explorer. From there once you sign in in your account you can rely on the new retrieval API which is available in the beta uh family of APIs for Microsoft graph and it is the copilot/ retrieval. You need to make a post request and you need to provide a JSON payload in the request which will define the actual content of your request. So here for example I'm going to provide this prompt. The query string defines the prompt you send to the copilot engine and it will be how can we hire new employees in our company. I want to target SharePoint data sources and as I told you you can use and target shareepoint online or copilot connectors. I'm going to select that I want to retrieve from the documents that are matching my criteria the title and the author and I want to get up to 20 items in the output. So let me try to run this request. By doing that you can see we can get back a list of it which will define the text matching our criteria as well as the metadata of the items and the URL of the documents matching the criteria. And as you can see in the URL, we get content also from other sides than the one I was showing you before, which is this one. If you want, however, you can rely on the filter expression property in the request. And as you can see right here, I still say that I want to get data from SharePoint as the data source. But now in the filter expression, the path that I'm interested in is the one of the SharePoint online set collection that I was showing you before. And all of the other criteria are the same. So if I will run this query now, we can see that we will get back responses only from the specific site collection. So this is really powerful because you can target the specific scope of your prompt. Moreover, if you want, you can also target the copilot connectors and as such if you want to do so, you can select as the data source the external items in the copilot connectors. Still we can use a prompt. In this scenario, I'm targeting my tenant where I know I have a copilot connector with content about how to write prompt for copilot. And so my prompt is how can I write a prompt for copilot? And still I'm interested in retrieving up to 20 items. So if I will run this query again now we can see that the output comes out from the copilot connector we can see the URL of the items matching my criteria as well as the text excerpt extracted from the document and which is matching the criteria provided in the prompt. So this is really really powerful and easy to use and allows you to have access to the copilot capabilities through npi based on Microsoft graph. Here you can find additional technical information about the retrieval API in the Microsoft graph documentation as well as the public announcement of the public preview of this technology. Let's have fun with it. Thank you.

Original Description

📺 Paolo Pialorsi introduces the new Copilot Retrieval API and demonstrates how to use it to query your enterprise content using natural language. The video gives you an overview of the Copilot Retrieval API to write secure, compliant, and scalable natural language queries targeting SharePoint Online and/or Copilot Connectors. ✨ Presenter: • Paolo Pialorsi (Microsoft) – https://www.linkedin.com/in/paolopialorsi/ 📖 Resources: • Retrieve grounding data using the Microsoft 365 Copilot Retrieval API - https://learn.microsoft.com/en-us/microsoft-365-copilot/extensibility/api-reference/copilotroot-retrieval • Microsoft 365 Copilot APIs: Unlocking enterprise knowledge for AI with the Retrieval API — Now in Public Preview - https://devblogs.microsoft.com/microsoft365dev/microsoft-365-copilot-apis-unlocking-enterprise-knowledge-for-ai-with-the-retrieval-api/ • Microsoft 365 Copilot extensibility overview - https://learn.microsoft.com/en-us/microsoft-365-copilot/extensibility/ • Copilot Dev Camp - https://aka.ms/copilotdevcamp #Microsoft365 #copilot #microsoftgraph ✅SUBSCRIBE TO OUR CHANNEL: www.youtube.com/Microsoft365Developer?sub_confirmation=1
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Microsoft 365 Developer · Microsoft 365 Developer · 0 of 60

← Previous Next →
1 Adaptive Cards community call-February 2019
Adaptive Cards community call-February 2019
Microsoft 365 Developer
2 PowerApps community call-February 2019
PowerApps community call-February 2019
Microsoft 365 Developer
3 Microsoft Graph community call-March 2019
Microsoft Graph community call-March 2019
Microsoft 365 Developer
4 Office Add ins community call-March 2019
Office Add ins community call-March 2019
Microsoft 365 Developer
5 PowerApps community call-March 2019
PowerApps community call-March 2019
Microsoft 365 Developer
6 Microsoft Teams community call-March 2019
Microsoft Teams community call-March 2019
Microsoft 365 Developer
7 Using React and Office UI Fabric React Components
Using React and Office UI Fabric React Components
Microsoft 365 Developer
8 Build Microsoft Teams customization using SharePoint Framework
Build Microsoft Teams customization using SharePoint Framework
Microsoft 365 Developer
9 Microsoft Graph community call-April 2019
Microsoft Graph community call-April 2019
Microsoft 365 Developer
10 Using Change Notifications and Track Changes with Microsoft Graph
Using Change Notifications and Track Changes with Microsoft Graph
Microsoft 365 Developer
11 Office Add Ins community call-April 2019
Office Add Ins community call-April 2019
Microsoft 365 Developer
12 Adaptive Cards community call-April 2019
Adaptive Cards community call-April 2019
Microsoft 365 Developer
13 Microsoft Teams community call-April 2019
Microsoft Teams community call-April 2019
Microsoft 365 Developer
14 Getting Started with Microsoft Graph and Application Registration
Getting Started with Microsoft Graph and Application Registration
Microsoft 365 Developer
15 Getting Started with Microsoft Graph and the Directory API
Getting Started with Microsoft Graph and the Directory API
Microsoft 365 Developer
16 Getting Started with Microsoft Graph and Microsoft Teams
Getting Started with Microsoft Graph and Microsoft Teams
Microsoft 365 Developer
17 Getting Started with Microsoft Graph Explorer
Getting Started with Microsoft Graph Explorer
Microsoft 365 Developer
18 Getting Started with Microsoft Graph
Getting Started with Microsoft Graph
Microsoft 365 Developer
19 Getting Started with Microsoft Graph and Mail API
Getting Started with Microsoft Graph and Mail API
Microsoft 365 Developer
20 Getting Started with Microsoft Graph and Office 365 Groups
Getting Started with Microsoft Graph and Office 365 Groups
Microsoft 365 Developer
21 Getting Started with Microsoft Graph and the Calendar API
Getting Started with Microsoft Graph and the Calendar API
Microsoft 365 Developer
22 Getting Started with the Microsoft Graph Toolkit
Getting Started with the Microsoft Graph Toolkit
Microsoft 365 Developer
23 Getting Started with Microsoft Graph and JavaScript SDKs
Getting Started with Microsoft Graph and JavaScript SDKs
Microsoft 365 Developer
24 Getting Started with Microsoft Graph and .NET SDKs
Getting Started with Microsoft Graph and .NET SDKs
Microsoft 365 Developer
25 Discover how businesses can be more productive with Microsoft 365 integrations
Discover how businesses can be more productive with Microsoft 365 integrations
Microsoft 365 Developer
26 Adaptive Cards community call-May 2019
Adaptive Cards community call-May 2019
Microsoft 365 Developer
27 Office Add-ins community call-May 2019
Office Add-ins community call-May 2019
Microsoft 365 Developer
28 Why We Built on Microsoft Teams
Why We Built on Microsoft Teams
Microsoft 365 Developer
29 Microsoft Teams community call-May 2019
Microsoft Teams community call-May 2019
Microsoft 365 Developer
30 Microsoft Graph community call-June 2019
Microsoft Graph community call-June 2019
Microsoft 365 Developer
31 Build Angular SPA's with Microsoft Graph - June 2019
Build Angular SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
32 Office Add -ins community call-June 2019
Office Add -ins community call-June 2019
Microsoft 365 Developer
33 Build Android native apps with the Microsoft Graph Android SDK - June 2019
Build Android native apps with the Microsoft Graph Android SDK - June 2019
Microsoft 365 Developer
34 Build MVC apps with Microsoft Graph - June 2019
Build MVC apps with Microsoft Graph - June 2019
Microsoft 365 Developer
35 Authenticate and connect with Microsoft Graph - June 2019
Authenticate and connect with Microsoft Graph - June 2019
Microsoft 365 Developer
36 Microsoft Graph data connect - June 2019
Microsoft Graph data connect - June 2019
Microsoft 365 Developer
37 Change notifications with Microsoft Graph - June 2019
Change notifications with Microsoft Graph - June 2019
Microsoft 365 Developer
38 Build iOS native apps with the Microsoft Graph REST API - June 2019
Build iOS native apps with the Microsoft Graph REST API - June 2019
Microsoft 365 Developer
39 Build Node.js Express apps with Microsoft Graph - June 2019
Build Node.js Express apps with Microsoft Graph - June 2019
Microsoft 365 Developer
40 Smart UI with Microsoft Graph - June 2019
Smart UI with Microsoft Graph - June 2019
Microsoft 365 Developer
41 Leveraging the Microsoft Graph API from the SharePoint Framework - June 2019
Leveraging the Microsoft Graph API from the SharePoint Framework - June 2019
Microsoft 365 Developer
42 Build UWP apps with Microsoft Graph - June 2019
Build UWP apps with Microsoft Graph - June 2019
Microsoft 365 Developer
43 Build React SPA's with Microsoft Graph - June 2019
Build React SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
44 Getting Started with Microsoft Graph and Batching
Getting Started with Microsoft Graph and Batching
Microsoft 365 Developer
45 Getting Started with Microsoft Graph and Change Notifications
Getting Started with Microsoft Graph and Change Notifications
Microsoft 365 Developer
46 Getting Started with Microsoft Graph and Consent Permissions
Getting Started with Microsoft Graph and Consent Permissions
Microsoft 365 Developer
47 Getting Started with Microsoft Graph and Education
Getting Started with Microsoft Graph and Education
Microsoft 365 Developer
48 Getting Started with Microsoft Graph and Financials
Getting Started with Microsoft Graph and Financials
Microsoft 365 Developer
49 Getting Started with Microsoft Graph and Excel
Getting Started with Microsoft Graph and Excel
Microsoft 365 Developer
50 Getting Started with Microsoft Graph and Data Connect
Getting Started with Microsoft Graph and Data Connect
Microsoft 365 Developer
51 Getting Started with Microsoft Graph and Intune
Getting Started with Microsoft Graph and Intune
Microsoft 365 Developer
52 Getting Started with Microsoft Graph and Notifications
Getting Started with Microsoft Graph and Notifications
Microsoft 365 Developer
53 Getting Started with Microsoft Graph and OneNote
Getting Started with Microsoft Graph and OneNote
Microsoft 365 Developer
54 Getting Started with Microsoft Graph and OneDrive
Getting Started with Microsoft Graph and OneDrive
Microsoft 365 Developer
55 Getting Started with Microsoft Graph and Open Extensions
Getting Started with Microsoft Graph and Open Extensions
Microsoft 365 Developer
56 Getting Started with Microsoft Graph and Paging
Getting Started with Microsoft Graph and Paging
Microsoft 365 Developer
57 Getting Started with Microsoft Graph and Schema Extensions
Getting Started with Microsoft Graph and Schema Extensions
Microsoft 365 Developer
58 Getting Started with Microsoft Graph and Security API
Getting Started with Microsoft Graph and Security API
Microsoft 365 Developer
59 Getting Started with Microsoft Graph and Query Parameters
Getting Started with Microsoft Graph and Query Parameters
Microsoft 365 Developer
60 Getting Started with Microsoft Graph and Reporting API
Getting Started with Microsoft Graph and Reporting API
Microsoft 365 Developer

The Microsoft 365 Copilot Retrieval API allows developers to consume enterprise content using natural language queries, and can be integrated with Microsoft Graph using the Graph Explorer. The API provides a secure and scalable way to target SharePoint Online and Copilot Connectors.

Key Takeaways
  1. Go to the Graph Explorer and sign in to your Microsoft account
  2. Select the beta family of APIs for Microsoft Graph
  3. Choose the copilot/retrieval API and make a POST request
  4. Provide a JSON payload with the query string and filter expression
  5. Run the request and retrieve the list of items matching the criteria
💡 The Copilot Retrieval API provides a powerful and easy-to-use way to access enterprise content using natural language queries, and can be targeted to specific scopes using filter expressions.

Related Reads

📰
The Secret Sauce of Apple Silicon: Why Unified Memory is a Game-Changer for AI If you’ve spent…
Learn how Apple's Unified Memory boosts AI performance, especially for large language models and generative AI, and why it's a game-changer for professionals
Medium · Machine Learning
📰
The Secret Sauce of Apple Silicon: Why Unified Memory is a Game-Changer for AI If you’ve spent…
Learn how Apple's Unified Memory boosts AI performance, especially for large language models and generative AI, and why it's a game-changer for these applications
Medium · NLP
📰
We Gave Our Engineering Team a Memory — Here’s How PRECOG Uses Cognee
Learn how PRECOG uses Cognee to build predictive engineering intelligence and enhance their engineering team's capabilities
Medium · Startup
📰
You’ve Had the Same GPU Rumor Tab Open for Eight Months, and NVIDIA Has Never Once Confirmed the…
Stop waiting for GPU rumors and focus on building with current technology
Medium · Machine Learning
Up next
Copilot Cowork: Setup, Skills, Plugins & Pricing
Matt Tutorials
Watch →