Northwind Electronics ENTERPRISE
#496

AI Chatbot

An assistant that answers questions from the knowledge base and from live data (stock, sales, orders).

Technique: Intent rules + TF-IDF cosine similarity over knowledge-base articles
Read the code: src/main/java/com/study/advlab/chatbot/ChatbotService.javasrc/main/java/com/study/advlab/chatbot/TfIdfIndex.javasrc/main/java/com/study/advlab/core/Text.java
Northwind assistant answers from live data and the help centre - never guesses
2525
Sorry, I don't know that yet. I only answer from this company's data and help centre, so I won't guess. You can contact help@northwind.example.
intent: fallback · confidence 0.00
511515
Sorry, I don't know that yet. I only answer from this company's data and help centre, so I won't guess. You can contact help@northwind.example.
intent: fallback · confidence 0.00

Quick reply buttons are hidden for you: the flag chatbot-quick-replies is rolled out to 50 % of users.

How the answer is chosen
  1. Intent rules - "how many products", "low stock", "price of ...", "sales" run a SQL query on this company's data.
  2. Knowledge base - the question is compared with every help article using TF-IDF cosine similarity. Score ≥ 0.30 = answer.
  3. Unsure - 0.12 to 0.30: "Did you mean ...?". Below: says it doesn't know instead of inventing an answer.
Intents so far (this company)
  • fallback 2 × · avg 0.00
Help centre 14 articles