Assistant API always return empty annotations

Response: 【11†source】
Response Annotations: Text(annotations=

There are sources but they are not available.


I am experiencing the same thing as of this morning. Yesterday, this definitely was not the case as I was specifically implementing a system to inline those references as inline footnotes and Tooltips.

Update: this is now working again.

As of this moment, not working for me:

Response: 【13†source】


I’m also encountering the same issue. Hopefully, it’s fixed soon because otherwise the Assistants API retrieval seems better than most I’ve tried.

1 Like

Experiencing the same, sometimes the array contains the annotations, sometimes the array is empty. Although it always has annotations in the text.

I am also facing the same issue. Every time the annotations are empty.

I’m having the same issue. I was delighted with the new retrieval feature. It was working yesterday.

The annotation object is consistently empty for me as well. Only started working with it today so I don’t know if / when this behavior began.

Still no official answer to this topic? I am also interested in the topic

openai just imploded, I don´t expect this to be fixed anytime soon. Look to langchain and other solutions.

I’ve found an alternative solution to this issue. We can incorporate this into the prompt, enabling the assistant to respond with a source.

Reply in this format { “answer”: answer, “source”: source}


In my case, it seems that assistant object with ONLY ONE uploaded file returns the annotation array correctly, while those with multiple files returns empty annotation array.

I am still experiencing this problem today. I have uploaded only one file.

I am experiencing this as well. But in my case I have a function_call making a search, which contains the source with url and everything. The annotations are still empty.

Are you using the assistant API to make the function call? Would be super nice to see a code sample. When using langchain I can make a function call that will give me the annotations. Can you make this work with a function call to the assistant?