Forum Discussion
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
- https://share.google/ODKFwKpfhfofWMM3K
- https://learn.microsoft.com/en-us/microsoft-copilot-studio/image-input-analysis
- https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-add-file-upload
- https://learn.microsoft.com/en-us/answers/questions/2145101/how-to-access-user-uploaded-files-in-copilot-studi
- https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-documents
- 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.
- https://learn.microsoft.com/en-us/answers/questions/5554696/upload-photos-to-my-agent-via-m365
- https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-generative-answers-prompt-modification
- 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
- UhLukasIron 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
- UhLukasIron 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
- https://share.google/ODKFwKpfhfofWMM3K
- https://learn.microsoft.com/en-us/microsoft-copilot-studio/image-input-analysis
- https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-add-file-upload
- https://learn.microsoft.com/en-us/answers/questions/2145101/how-to-access-user-uploaded-files-in-copilot-studi
- https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-documents
- 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.
- https://learn.microsoft.com/en-us/answers/questions/5554696/upload-photos-to-my-agent-via-m365
- https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-generative-answers-prompt-modification
- 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
- AjaySCopper 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
- UhLukasIron Contributor
Your Welcome Glad They helped