Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
How to access files generated by AI Assistants (Assistants API)?
Hi.
- Our mobile app deploys assistants (create once in AI Foundry, then use assistant_id to create thread for each user @ runtime) to generate a variety of plans (PDFs) or images.
- These files are being generated and saved in Data files sandbox: /mnt/data/<filename>
- How do we retrieve these files from Data files using File ID? How do we access Data files location? When user requests access path or link to generated file, assistant replies with a sandbox location. However that's not a fully qualified URL that user can access publicly.
- Solution: We may retrieve the file based on File ID and purpose = "assistant_output" -> save to a public URL and share the URL back with user to access. Would that be considered a better approach to render any type of file display?
- Is there an easier way to access file directly from Data files (storage) and render in-app?
Appreciate help.
Thanks.
Foundry Tools
Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
3 answers
Sort by: Oldest
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
4 deleted comments
Comments have been turned off. Learn more
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more