https://discord.gg/botpress logo
Hi team, I need support on a very specific use cas...
# 🤝help
t
I'm building a bot for an architectural site using a structured .txt file containing 2,105 house plans, each with fields like: --- Plan ID: G1087-A Title: … Price: … Official URL: https://archivaldesigns.com/products/… --- Each block is cleanly separated by ---, and we've enforced formatting via prompt so that the bot only returns: Plan ID, Title, Price, and the exact Official URL from the dataset. Problem: Despite this, the bot: - Fails to retrieve known Plan IDs (e.g. “F1768-A”) that do exist in the file - Sometimes returns the wrong URL from another plan (hallucination), even when the correct one is in the block - Prioritizes semantic similarity over exact field matches — not ideal for product lookup My question: - Is there a way to force exact-match behavior on Plan ID: field lookups? - Can I prevent URL hallucination entirely, and ensure the bot only responds with what's in the dataset? - Would a custom Tool or workflow be more reliable for this kind of structured retrieval? -Happy to share screenshots, prompt config, or even join a call if needed. Thanks in advance!
g
use a table and get an autonomous node to generate a filter based on table schema, then use an execute code card to get the correct rows out. then feed this array of objects to an autonomous node to present and talk.
I wouldnt use kb query on highly structured data with alot of rows.
2 Views