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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 370

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 184 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 57 Super User 2026 Season 1

Last 30 days Overall leaderboard