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!