Forum Discussion
AdamCodes716
Oct 17, 2024Copper Contributor
File Upload in OpenAI Out-of-the-Box Assistant
I am trying to allow end users to have a file upload option in their chat so that they can upload and interact with a file in the chat (I am not trying to ground the app on a specific dataset). Thi...
balasubramanim
Oct 21, 2024Iron Contributor
The file upload feature you see in the Chat Playground isn’t automatically available in deployed web apps. To add it in your web app, try the below mentioned steps.
1. Add a file upload option in your web app's frontend (e.g., using an <input type="file"> element).
2. Process the file in your backend (e.g., extract text from a PDF or CSV).
3. Send the file content as text to the OpenAI API.
You’ll need to build this feature manually, as it’s not included out-of-the-box in the deployed app.