web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Agent finding files ou...
Copilot Studio
Unanswered

Agent finding files outside of Knowledge base on SharePoint site.

(1) ShareShare
ReportReport
Posted on by 7
Hi, 
 
I created an agent to use a single folder within a document library on a sharepoint site, for example: "SharePointSite/DocumentLibrary/Folder1/Test". This is the single source of knowledge for the Agent. Inside are a handful of PDFs and Docx files.
 
Now, if ask it specific questions, it will go and pull files from: "SharePointSite/DocumentLibrary/Folder2" or "SharePointSite/DocumentLibrary/Folder3/FolderInsideFolder/FolderHere"
 
 
Now, the content of the files it has found in those folders are relevant to the question asked, but why is it going to other folders? Surely by setting a single path to a folder, it should stay within the bounds of that folder? If that's not the case, then why are we able to specifically add individual folders on a SharePoint site in the first place?
 
Any help would be greatly appreciated.
 
Thank you
Categories:
I have the same question (0)
  • Suggested answer
    Artur Stepniak Profile Picture
    1,539 Super User 2025 Season 2 on at
    Hello,
     
    I guess the answer is that probably it's still indexing the whole SP site/library. You should think about how to properly feed the data to the model - usually the approach with simply connecting to the library is not working very well as it's too random. You can use a Sharepoint list or Dataverse table to store the data - that way the model can use RAG to generate a response for the user. Otherwise it's based solely on the indexed library content.
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak
  • JK-29111522-0 Profile Picture
    7 on at
    That's so bizarre to me.. 
     
    Is there a guide on how to use a SharePoint List for this?

    I've just gone ahead and created a separate SharePoint Site, and copied the files to that document library, created a new agent and linked the knowledge that that library. 
     
    Not ideal, as now I need to update files in two places... but that will work for now. 
     
    Thanks

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 264 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 263 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 105 Moderator

Last 30 days Overall leaderboard