Mastra RAG with sources advice needed:
I have a bunch of Q&A questions which i want to do a simple RAG agent on them,
I am using Postgresql + PGVector + Mastra.
Bottom line i want to get the sources as well, meaning i want to show in my UI (assistant-ui) the citations or the original Q&A question.
It is super important and with mastra i dont see how it is possible right now, is it true?
In a lot of RAG use cases we need to attach the sources as well (in future i want to RAG a website as well ), will want like a source of which paragraph in which website page the source answer is based on.
Any advice will help here thanks!
5 Replies
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Yeah but I will need to return it via stream function somehow to user? Will have to do custom code for all of it?
Like in streamText it returns response.sources
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/7816
GitHub
[DISCORD:1416471642237960363] Mastra RAG with sources advice needed...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1416471642237960363 I have a bunch of Q&A questions which i want to do a simple RAG agent on them, I a...
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
thanks man