Intent based on content
# 🌎general
l
Hi All.. I have 2 messages.. "Tell me about ABC Company" and "Tell me about Supply Chain" ... 1st one intents is company detail (have list of about 1000 companies in DB) and 2nd one is general textual query. How can NLU differentiate between 2 intent. All I can think is if ABC company is listed in DB of 1000 companies then its company details else its textual query.
is approach correct and how to implement this ?
a
This is an interesting question! Last year, I would have said that this is an example of an intent with slots. The intent would be "Tell me about something" and the slot would be the thing itself- 'ABC' or 'Supply Chain.' Now with LLMs, you should be able to get pretty decent results by putting everything into a knowledge base. The easiest way to do that in Botpress would be to export that DB as a CSV, then copy/paste the whole CSV into a text knowledge base.
l
thanks Gordy for response... I am using Botpress on premise v12 version..So I believe intent and slot is the way as Knowledge base (i believe was open book) is cloud only.
a
Ah yes that changes things. For BP12, you should go with an intent with slots.