Why might the Chat say this when X is indeed mentioned multiple times in the data source?
Hi @philthrive,
My guess so far is that the retrieved chunks either don’t mention X, or it’s not indicated that the data is coming from X.
Could you share a debugger log link from a run where you saw this output? To do that, open the Debugger, select the run, click Share, and reply with the URL:
Please make sure there’s no sensitive data in the log, since the link will be public.
Hi @philthrive,
Thanks for sharing the remix link!
From what I can see, the model didn’t retrieve the chunks related to Artemisia in that run.
Since Query Data Source is based on RAG, it won’t always return the exact chunks you expect. It behaves more like a semantic search than Google, so results can vary.
It’s best to split content by topic into separate Data Sources, then trigger the relevant ones based on the user’s question. However, as a starting point, you could also refine the query into multiple variants and send each through its own Query Data Source block. That increases the chances that the model gets all the most relevant context to work with.
Here’s a sample Agent I put together that uses Dynamic Tools to query a Data Source:
https://app.mindstudio.ai/agents/dynamic-tools-querying-data-sources-in-chat-8c64c01a/remix
When a user asks a question, the Agent runs a separate workflow that refines the query and generates three options, which are then passed into Query Data Source blocks. This helps capture more of the relevant details the model may need to generate a complete answer.
Hope this helps!
Thanks for the effort, but that didn’t work any better at all. It also took a long time to execute. Surprisingly, it didn’t cost more, which was nice.
