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). This option is available in the Chat Playground, but it seems to disappear when the app is deployed as a web app. Is there something that I am missing? I could swear that this used to be available for deployed web apps, but maybe I am wrong.
1 Reply
Sort By
- balasubramanimIron 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.