Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

SharePoint Knowledge Source gives hallucinations? Looking for advice

(0) ShareShare
ReportReport
Posted on by 4

Hey all, I'm using Copilot Studio and have connected a SharePoint site as a knowledge source. The site hosts around 1800 PDF documents, and I've added the entire site as a single knowledge source for my agent.


The problem is that the agent frequently gives factually incorrect answers, even when the correct information clearly exists in the documents; it often "hallucinates" and/or mixes up details. I'm assuming it's trying to parse too much unstructured data at once.


What I did:

  • turned on orchestration (alongside generative AI) and turned off "Allow the AI to use its own general knowledge"

  • turned on enhanced search results (yes, I do have Microsoft 365 Copilot license in the same tenant as the agent)

  • added the content moderation to be medium (maybe should try with high as well now)


Possible next steps:

  • I saw in some documentation that SharePoint has a limit of a total of 200 files which can be included for each source, so maybe I should break my knowledge sources into 9 separate sources containing 200 PDF documents each. (docs: Unstructured data as a knowledge source - Microsoft Copilot Studio | Microsoft Learn). But, I wonder if this is relevant in my case since my understanding is that there are two types of SharePoint knowledge sources (SP URL, and direct documents from SP).

Wondered if anyone has any tips on what is the best way to move forward? I understand that most likely I will need to enhance the description of the knowledge source and maybe clean the source some more (some folders are unnecessary and can be removed). Would it help if I added some sort of semantic mapping in the general instructions? What I mean is that I explain where to look for (relative path) in the knowledge source in case a certain question is being asked.


Any tips or opinions I would greatly appreciate. :)

  • MM-07030830-0 Profile Picture
    4 on at
    SharePoint Knowledge Source gives hallucinations? Looking for advice
    @Jcook, any explanation as to why I should turn off Enhanced Search? The second suggestion I am already implementing at the moment of writing - will let you know after testing in a couple of days.
     
    @ronaldwalcott, the problem comes from general questions on the knowledge. The answers are present in the documents and there are no conflicting information (tough to be 100% sure because of the big count of files, but I analyzed a lot of the documentation and I haven't found any conflicting information).
  • Jcook Profile Picture
    7,779 Most Valuable Professional on at
    SharePoint Knowledge Source gives hallucinations? Looking for advice
    Hi,
     
    you can try a few things:
    1. I would try with Enhanced Search turned off.
     
    2. Try adding retrieval hints in the agents instructions. 
    example:
    - For payroll-holiday questions, prefer files in /HR/Benefits/Holidays.
     
  • ronaldwalcott Profile Picture
    3,810 on at
    SharePoint Knowledge Source gives hallucinations? Looking for advice
    What type of queries are generating hallucinations? Is it possible that the data contains conflicting information? Could also be caused language phrasing.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 99

#2
Pablo Roldan Profile Picture

Pablo Roldan 61

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 34 Super User 2025 Season 1

Overall leaderboard