Troubleshooting Generative Answers don’t return results
Khurram Hafeez
MVP | M365 Copilot, M365 migrations, Active Directory deployments, MS Exchange deployments & migrations, Azure IaaS deployments & Migrations, Microsoft CSP Licensing, Technical Content Reviewer
Generative answers empower creators to build Copilots that can respond to queries based on data from various sources, such as public websites or SharePoint. By directing the Copilot toward these data repositories, users can obtain relevant information. However, there are instances when the Copilot may not provide a direct answer and instead responds with a message like, ‘'I’m not sure how to help with that. Can you try rephrasing?
Generative answers pointing to SharePoint or OneDrive
When you’ve configured a SharePoint or OneDrive data source, several factors might hinder generative answers from providing a response. We will discover a few factors in this blog post.
Search results are missing
When generative answers are missing for a SharePoint or OneDrive data source, it’s because they rely on calls to the Graph API search endpoint. Specifically, only the top three results returned from the Graph API are used to summarize and generate a response. If no results are obtained from the Graph API, the generative answers node remains silent.
To troubleshoot whether Copilot Studio isn’t retrieving results from the Graph API, you can directly make calls to the Graph API search endpoint. This process simulates how Copilot Studio operates behind the scenes. You can use the following template with Graph Explorer to generate these calls. Remember to sign in using the appropriate credentials for your SharePoint or OneDrive tenant:
{
??? "requests": [
??????? {
??????????? "entityTypes": [
??????????????? "driveItem",
??????????????? "listItem"
??????????? ],
??????????? "query": {
??????????????? "queryString": "SEARCH TERMS filetype:docx OR filetype:aspx OR filetype:pptx OR filetype:pdf path:\"DOMAIN.sharepoint.com/sites/SITENAME"
??????????? },
??????????? "from": 0,
??????????? "size": 3,
??????????? "QueryAlterationOptions": {
??????????????? "EnableModification": true,
??????????????? "EnableSuggestion": true
??????????? }
??????? }
??? ]
}
How to Resolve:
To resolve issues with generative answers, follow these steps:
Verify Content Location: Ensure your Create generative answers node is linked to a relevant SharePoint or OneDrive location containing the necessary content.
Check Document Formats: Only documents in supported formats will be used to generate responses. Ensure your documents are in the following format:
Indexing Delay: Recently uploaded documents to SharePoint or OneDrive may not be indexed yet.
Search Settings: Some sites may be excluded from search results due to settings. Check your settings to ensure they are configured correctly.
User Permission Issues
Generative answers for SharePoint and OneDrive require delegated permissions to access the Graph API. To function correctly, users must have:
领英推荐
Minimum Required Permissions
Consequences of Missing Permissions
If a user lacks the necessary permissions:
The app registration or copilot misconfigured
Generative answers rely on a correctly configured Microsoft Entra ID app registration and specific permissions. When administrators set up generative answers for SharePoint and OneDrive, they need to configure authentication using a Microsoft Entra ID and define additional scopes. If these settings aren't accurate or complete, the system won't return any results, even if documents exist. This can be misleading as it appears no documents were found.
Common Problems:
How to Resolve:
App Registration Scopes:
Copilot Authentication Settings:
Consent:
File Size Limitations for Generative Answers
Currently, Generative Answers can only process files up to 3 MB in size. While larger files can be stored and searched within SharePoint, they cannot be directly processed for generating answers.
Exception: Customers using Microsoft 365 Semantic Indexing are exempt from this file size limitation.
Workarounds:
If your important files exceed the 3 MB limit, consider these alternatives:
Content blocked by content moderation
Content moderation is an essential aspect of Copilot Studio’s operation. Copilot Studio features a robust content moderation system that automatically blocks:
If any content falls into these categories, generative answers remain silent—neither providing a response nor indicating that moderation occurred.
To monitor moderation events, Copilot Studio can be configured to send telemetry data to Azure Application Insights. This provides visibility into the types of content being blocked.
How to Resolve:
Everyday is an adventure but adversity creates Opportunity
7 个月Great posting!!!