Skip to main content

Notifications

Copilot Studio - General
Suggested answer

Agent finding files outside of Knowledge base on SharePoint site.

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:
  • JK-29111522-0 Profile Picture
    JK-29111522-0 7 on at
    Agent finding files outside of Knowledge base on SharePoint site.
    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
  • Suggested answer
    Artur Stepniak Profile Picture
    Artur Stepniak 226 on at
    Agent finding files outside of Knowledge base on SharePoint site.
    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

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,297

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,890

Leaderboard