https://discord.gg/botpress logo
Hotel Chatbot
# 🤝help
p
e
I would need to test it to find real answers. As example, look at how did you write your Query Knowledge Base card. But from what I see, I have some hints or suggestions to improve it (from my perspective only): When I read your DOCX file, I see a well-structured document. Is there a reason why you didn't try to store the data in a table? This kind of information, structured like that, is perfect for a table. Then, you could create a knowledge base with it. Maybe it could fix your problem. Your document, the frames form one, look like an unstructured document. This may be one reason why some information are not correct. Well, I would definitively try Table in your case, but as I said, maybe its just a Query problem.
p
Thankk you for the help. I'll try the table method and see if it works
d
Looks like it miss some info, but this time you got the right Hotel, right? If yes, we have one problem fixed, now we have to find solution for the next one hehe!
p
Yepp. I always been getting the right Hotel according to the budget but then I don't get the correct infomation about the hotel
d
I'm really curious on why that does not work Can you export the bot and share it, I'd like to take a look at it. We'll find a solution.
p
Alright
b
hi team! thanks for stopping by today's office hours. a few suggestions: 1. when the bot is providing information about an unrelated hotel, can you look at what your logs say? i.e., can you test this in the emulator? your bot will explain to you what information it's elected to present, so you might get some clues there 2. can you try deleting the PDF knowledge bases and leave only the table? it's likely that'll cause the LLM to return information it finds about hotels
p
b
yeah that's what I suspected - so even though you're giving it the structured data, it's starting with the PDF. you can either delete the PDF KB or remove it from the scope of your Query KB card
b
what would you like to happen, at this stage?
p
b
if the answer is 'Yes', then can you pull the information from the specific record, instead of using a knowledge base query?
since you know which cell you need to return
p
Apologies, Mr. Robert, but I’m not entirely sure I understand what you’re saying 😅
b
haha that's totally fair - give me a second (about to eat lunch!) and I'll see if I can whip something up
p
Alright sure Mr. Robert
b
alright first, what I mean is - since you know you want to give the information in the 'Description' portion of the Ritz Carlton hotel, you can identify it like so:

https://www.youtube.com/watch?v=V1D34HPhCd8

using the same method presented here, and without having to use a knowledge base query
p
Does that mean if the user input their budget, then it will display the hotels according to it Mr. Robert?
e
Ok, I think I fixed it. Here is what I did: 1- The Table Knowledge base looks more accurate based on what I've read, so I isolated the Hotel Database into one knowledge base. I named it "TheHotel," and that is the source I used in the two Knowledge Base Queries. 2- I've updated the two Knowledge Base Queries to more precisely ask the AI for our needs. 3- I've created a new node between the first query result and the user's choice because there can be more than one hotel that fits the user's budget. Then, the user must specify which hotel they want more information about. Most of the changes are that. I'll share the updated Bot with you.
p
Thank you very much Sir. Its working now. Really appreciate the help 😄
e
No problem. I'm happy to hear that it works as you expected. Have a good day!
b
great work everyone 🙂
4 Views