Replies: 1 comment 1 reply
-
Hi @be-swarm - RAG solutions by default answer questions using the content of the files. Answers are generated looking for content that is similar to the question. The question here is: "tell me if the address is the same in all documents". If the files contain text that is similar, that content will be used to generate an answer. However, the question is asking to analyze all files, so I would suggest a different approach using COT:
The above is not in scope of RAG, but you can reproduce that with Agents and Tools/Planners. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I import several documents like this:
await memory.ImportDocumentAsync("D:\Temp\testia\devis-bad.pdf", tags: new() { { "document", "devis" } });
await memory.ImportDocumentAsync("D:\Temp\testia\audit.pdf", tags: new() { { "document", "audit" } });
await memory.ImportDocumentAsync("D:\Temp\testia\mar.pdf", tags: new() { { "document", "mar" } });
await memory.ImportDocumentAsync("D:\Temp\testia\mandat.pdf", tags: new() { { "document", "mandat" } });
docid=await memory.ImportDocumentAsync("D:\Temp\testia\cni.jpg", tags: new() { { "document", "cni" } });
all documents have same address except one (devis-bad)
i want to tell to MK if all documents havea the same address.
i use this prompt:
var answer = await memory.AskAsync("tell me if the address is the same in all documents");
I obtain a wrong response . MK said yes and Sources are:
Question: Why response said yes and why only 2 documents have been taken in analyse?
what am I doing wrong?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions