I’m using the assistant’s API to build a Slack integration and I’m really struggling with handling files. As you can see in the example below, we send a file and ask something about it. However, when we send a second file, the assistant ignores it and responds to all questions using only the first one. You can also see in the photos that the message, inside the thread, includes the second file, teste.md , indicating it was sent to the model. It’s only when I specifically mention its name that the assistant finally reads it and responds accordingly.
The image shows a conversation in which a user requests a summary of a document named “Deep Dive IA ANBIMA.pdf.” Initially, the assistant (ChatGPT-1.0) mentions that no file has been uploaded and asks the user to upload the document. After the user confirms the file is indeed uploaded, the assistant recognizes the document and provides a summary of the main insights in five points.
The assistant concludes by offering to provide more details if needed.
The image shows a conversation in which the user shares a file named “testexml.md” and indicates that it contains the code they discussed. The user then asks the assistant (ChatGPT-1.0) to summarize the code.
The assistant explains that in the document “Deep Dive IA ANBIMA.pdf,” there is no specific code, but it covers several applications of artificial intelligence (AI) in the financial and capital markets.
The assistant concludes by offering further details if needed on any specific section. The user then asks if there is any file they previously sent after the PDF.
The image shows a conversation where the user mentions having sent a
.md
file containing the code they previously discussed, following the PDF. The assistant initially struggles to locate the .md
file, instead referencing the “Deep Dive IA ANBIMA.pdf” file.
After clarification, the assistant finally recognizes the file named “testexml.md” and provides a summary of its contents. The .md
file includes a product table with columns for ID, name, price, category, and stock.
Does anyone have the same problem, should I append tho the text on the massage that have the file attached something like “ATENTION: new file attached!” ? It seams to be only a prompt problem since wen I ask using the file name the model ‘finds’ it, but a lot of people will be using so I dont want them to have to use a perfect prompt, any ideias?