https://discord.gg/botpress logo
#🌎general
Title
# 🌎general
o

orange-journalist-73095

07/18/2023, 4:26 AM
Do anyone know if can obtain results from specific Kb only ? For example let’s say I asked user if they want for rent or for buying and if they press buy in choice then it should only search from KB of buy but instead it’s searching and displaying for rent also . Do you guys anyone know here on how to navigate this ?
a

acceptable-gold-88171

07/18/2023, 1:35 PM
for the moment you just have to use descriptions. You can't set hard rules.
o

orange-journalist-73095

07/18/2023, 8:24 PM
But still it displays all data . Even if user say he want renting information it displays all the properties including renting and selling in chat
So it doesn’t matter if user say renting or buying it still displays all data together in chat @acceptable-gold-88171 but what I want to Is that it should only display rental properties in from KB if user request rental and only display sale properties if user say select sale .
a

acceptable-gold-88171

07/19/2023, 1:58 PM
ahh yikes, when I have problems like this I usually re-process the answer through an AI card to remove the extraneous info. You have to make sure to answer manually. then you feed {{turn.KnowledgeAgent.answer}} to an ai task asking it to only answer the question and nothing else. Then I display the output of that AI task
b

billions-queen-32038

07/23/2023, 9:14 PM
@acceptable-gold-88171 please check your dm when you have a chance !