Getting sources in responses (RAG Agent)

Hi Mindstudio Community!

I would like to show sources in responses to my RAG agent (similarly to what NotebookLM does). The Mindstudio website mentions the following:

The block returns several output fields: a joined text string of all matching chunks separated by newlines, an array of individual chunk strings, the resolved query that was searched, source citations for the matched chunks, and the query execution time in milliseconds.
Source: Query Data Source — Workflow Capability | MindStudio

Unfortunately, I don’t see the source citations anywhere in the variable that stores the RAG query results. Do you have any ideas where to finds it and/or how to use it?

Your support would be greatly appreciated.

Thanks!

Martin

Hi @MartinCaronStudios,

Thanks for flagging this, and apologies for the confusion.

The Query Data Source block doesn’t currently output a separate source citations field with the file name. The debugger logs show the Data Source name as a whole for the returned chunks.

We’re updating that page to remove the mention of source citations.

Let me know if you have any questions in the meantime.

Hi @Alex_MindStudio!

Thanks for your response. Does this mean that there is no way to show sources/citations in the answers similarly to NotebookLM using the Query Data Source block or other native solution? Just confirming your answer.

Thanks!

Hi @MartinCaronStudios,

That’s correct, there’s no native way to surface source citations like that right now.

I’ve filed a feature request for our engineers to consider this for a future update. Thanks for the idea!

Thanks @Alex_MindStudio for the clarification! Please let me know should this feature be added into Mindstudio.