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

1 Like

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

3 Likes

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

1 Like

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

1 Like