Forum Discussion

AjayS's avatar
AjayS
Copper Contributor
Nov 19, 2025
Solved

Hi, Is there a way to add and remove files into the knowledge source during run time?

I have an agent set up which asks user to upload files. I have set up a prompt with questions in it and i want the agent to create generative answers based on these uploaded files. Also the files are to be removed after each session as the answers should be exclusive to that session alone based on the files that the user uploads during that session. Is there a way to do this?
I tried creating a dynamic folder based on GUID for each session in sharepoint and uploading the files in that. I also added the folder where the dynamically created folders are situated as a knowledge source. It did work but the agent started indexing the responses and the even when the files were removed and new folder created and files uploaded into that the agent still generated responses based on previous files due to indexing issues. Is there a way to solve the indexing issues?
if not could someone suggest how i can tackle the issue

  •  Hi AjayS​ Thanks For Posting To The Copilot Studio User Group I Have Attached Some Microsoft Learn Articles About Your Issue Under The “Microsoft Learn Articles” Heading Can You Read Them For Me & Tell Me Which One Solves Your Issue? I Look Forward For A Reply Afterwards Thanks! -UhLukas​ 

     

    Microsoft Learn Articles

    1. https://share.google/ODKFwKpfhfofWMM3K
    2. https://learn.microsoft.com/en-us/microsoft-copilot-studio/image-input-analysis
    3. https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-add-file-upload
    4. https://learn.microsoft.com/en-us/answers/questions/2145101/how-to-access-user-uploaded-files-in-copilot-studi
    5. https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-documents
    6. https://support.microsoft.com/en-us/topic/file-upload-in-microsoft-copilot-8b7bf432-9576-4b16-9dee-6c19a4169e62#:~:text=Note:%20Information%20on%20this%20page,to%20Copilot%20for%20model%20training.
    7. https://learn.microsoft.com/en-us/answers/questions/5554696/upload-photos-to-my-agent-via-m365
    8. https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-generative-answers-prompt-modification
    9. https://community.powerplatform.com/forums/thread/details/?threadid=0a222bfa-5ebd-ef11-b8e8-6045bddb8ef7#:~:text=Since%20direct%20file%20handling%20is%20not%20supported,,or%20Azure%20Functions%20to%20handle%20file%20uploads.

    Note

    The “9” Sources May Be Useful For Files I’ve Attached Some Links Relating To Microsoft Copilot Studio Check Them Out

6 Replies

  • UhLukas's avatar
    UhLukas
    Iron Contributor

    AjayS​ | Also A AI Overview Has A Answer To Your Issue Take A Look Below⬇️

     

    Link

    1. https://www.google.com/gasearch?q=Hi,%20Is%20there%20a%20way%20to%20add%20and%20remove%20files%20into%20the%20knowledge%20source%20during%20run%20time?&source=sh/x/gs/m2/5
  • UhLukas's avatar
    UhLukas
    Iron Contributor

    AjayS​ | Here’s A Thread About Your Issue As Well A Answer Is Provided Take A Look At The Link To The Question No One Has An Answer For It Unfortunately

     

    Additional Links

    • https://www.google.com/url?q=https://community.powerplatform.com/forums/thread/details/%3Fthreadid%3D83bf4e9d-1a3d-ef11-840a-7c1e521c042d&sa=U&ved=2ahUKEwi9zb31iP-QAxUEakEAHaipKMEQFnoECBgQAQ&usg=AOvVaw2obM_IgEEhUJrBukUg3yxZ
  • UhLukas's avatar
    UhLukas
    Iron Contributor

     Hi AjayS​ Thanks For Posting To The Copilot Studio User Group I Have Attached Some Microsoft Learn Articles About Your Issue Under The “Microsoft Learn Articles” Heading Can You Read Them For Me & Tell Me Which One Solves Your Issue? I Look Forward For A Reply Afterwards Thanks! -UhLukas​ 

     

    Microsoft Learn Articles

    1. https://share.google/ODKFwKpfhfofWMM3K
    2. https://learn.microsoft.com/en-us/microsoft-copilot-studio/image-input-analysis
    3. https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-add-file-upload
    4. https://learn.microsoft.com/en-us/answers/questions/2145101/how-to-access-user-uploaded-files-in-copilot-studi
    5. https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-documents
    6. https://support.microsoft.com/en-us/topic/file-upload-in-microsoft-copilot-8b7bf432-9576-4b16-9dee-6c19a4169e62#:~:text=Note:%20Information%20on%20this%20page,to%20Copilot%20for%20model%20training.
    7. https://learn.microsoft.com/en-us/answers/questions/5554696/upload-photos-to-my-agent-via-m365
    8. https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-generative-answers-prompt-modification
    9. https://community.powerplatform.com/forums/thread/details/?threadid=0a222bfa-5ebd-ef11-b8e8-6045bddb8ef7#:~:text=Since%20direct%20file%20handling%20is%20not%20supported,,or%20Azure%20Functions%20to%20handle%20file%20uploads.

    Note

    The “9” Sources May Be Useful For Files I’ve Attached Some Links Relating To Microsoft Copilot Studio Check Them Out

    • AjayS's avatar
      AjayS
      Copper Contributor

      Hi, Thank you for the extended list of articles. I found a video in the thread of solution 4. That was the closest one i could find, but have to tweak that as well as in the video it is mentioned for a single file upload and a single question. But this was helpful. Thank you

Resources