How to extract source from assistant retrieval tool?

I’m using assistant retrieval tool and could not find a way to extract referenced sources. The assistant responses with 【6†source】【7†source】, indicating that it cited from some uploaded documents, but there is no further information indicating what those source files are. I checked the log the found nothing useful.

Does anyone know how to extract the sources? or is that feature not available yet?

Thanks

Hi! This is supported and you can learn how to do this based on the documentation here: https://platform.openai.com/docs/assistants/how-it-works/message-annotations

Thanks for responding, I re-ran the code and found my annotations are always empty, despite the model citing content from the uploaded files.

This is, sadly, a known issue in the community. Some of us are trying any combination to improve the results.

Hope this helps: Assistant Citations/Annotations array is always empty - #22 by jorgeintegrait

This link seems to be broken