Chatbots NLP and AI in Chatbots 2 — Questions and Answers
Question 1: What is 'Named Entity Recognition' (NER) used for in chatbots?
- Naming bot personas
- Automatically identifying and classifying key information like people, places, and dates in text (Correct answer)
- Generating bot responses
- Monitoring server performance
Correct answer: Automatically identifying and classifying key information like people, places, and dates in text
NER allows chatbots to extract structured facts from free-form user input to use in downstream logic.
Question 2: How does a transformer-based model like BERT improve chatbot NLP?
- By using simple keyword matching
- By understanding context bidirectionally, capturing word meaning based on surrounding text (Correct answer)
- By reducing training data needs to zero
- By eliminating the need for entities
Correct answer: By understanding context bidirectionally, capturing word meaning based on surrounding text
BERT reads text in both directions simultaneously, enabling much deeper contextual understanding than earlier sequential models.
Question 3: What is 'slot filling' in task-oriented chatbots?
- Populating a database table
- Collecting all required pieces of information (slots) from the user to complete a specific task (Correct answer)
- Writing code for API integrations
- Designing the chat UI
Correct answer: Collecting all required pieces of information (slots) from the user to complete a specific task
Slot filling guides the conversation to gather every required parameter before executing an action, like booking a flight.
Question 4: What is 'dialogue state tracking' in a conversational AI system?
- Recording chat logs to a file
- Maintaining a representation of what has been established in the conversation so far (Correct answer)
- Tracking user location
- Monitoring API uptime
Correct answer: Maintaining a representation of what has been established in the conversation so far
Dialogue state tracking keeps a running record of confirmed intents, entities, and context to enable coherent multi-turn conversations.
Question 5: What distinguishes a 'generative' chatbot from a 'retrieval-based' chatbot?
- Generative bots use databases; retrieval bots use APIs
- Generative bots produce new text responses using language models; retrieval bots select from predefined answers (Correct answer)
- Generative bots are always more accurate
- Retrieval bots cannot handle multiple languages
Correct answer: Generative bots produce new text responses using language models; retrieval bots select from predefined answers
Generative models create responses dynamically, offering flexibility, while retrieval-based models pick the best pre-written response from a fixed set.
Question 6: What is 'zero-shot learning' in the context of chatbot NLP?
- Training a model with no data
- The model's ability to handle new intents it was never explicitly trained on by generalizing from context (Correct answer)
- Running the bot without internet
- Skipping the testing phase
Correct answer: The model's ability to handle new intents it was never explicitly trained on by generalizing from context
Zero-shot learning leverages large pre-trained models to recognize new categories without requiring labeled examples for every intent.
What is 'Named Entity Recognition' (NER) used for in chatbots?