What document in vector store did retrieved chunk come from?

I am using assistants to create news stories from transcripts of public meetings. I want to be able to provide context for a subject discussed in a meeting by looking for discussions of the topic in prior meetings. I can put all the prior meeting transcripts in a vector store and search it but need to know which prior meetings (which documents) search results came from in order for the returned information to be useful. I know how to get this information from external vector stores like pinecone but would like to be able to do with vector stores available natively to assistants and threads

1 Like

If you’re using OpenAI Assistant, you can get the File Citation from the Message Object. You have to goto Message Object > Content > Text > text > annotations > File citation > file_citation.file_id.

You’ll get the information when you retrieve your message after run complete.

3 Likes

Thank you very much. Just what I needed to know.

1 Like