My goal is to let User type in "show me top suppliers for 'gopro'" in the search field, he will be presented with 5 top list.
At the end of day, I want the above query to execute the following sql.
SELECT "customername" AS "CustomerName", "last1yearspend" AS "Last1YearSpend"
FROM "xx"."spend" AS "SupplierModel"
WHERE "SupplierModel"."supplierid" = 333
ORDER BY "SupplierModel"."rank" ASC
LIMIT 5;
I'm not just talking about 'text' search here.
Not sure even Kendra can do this. Kendra could undertand NLP so 'show me ~' can be handled correctly maybe. But, please note that I'm not looking for 'top suppliers' string here. Rather,it needs to understand how to get 'top suppliers' . To do that, it need to run sql query like above. Not just searching 'literal' value from the indexed data.
Not Comprehend as it just can extract entity and sentiment.
Not ES as it's just simply string match without/with NLP.
Can this even be feasible? Any other technology?