0:0021:44

Building and evaluating robust conversational interfaces using LLMs

Janvi Palan 21:44 2024

A sales chatbot that asks question after question is just a form

Ask an off-the-shelf LLM what to buy a husband for his 30th birthday and it returns a long, wordy list; a sales associate would acknowledge the milestone and ask what he likes. Janvi Palan, a senior ML research engineer who led conversation generation for Samsung's virtual humans, explains why that gap matters in retail and hospitality. How do you build an agent that knows when to stop asking, and prove it works?

Get a component-by-component architecture and evaluation plan for natural, measurable LLM agents

Watch on YouTube

In short

Janvi Palan presents a framework for building LLM-powered conversational agents for retail, sales and hospitality that sound natural, understand users implicitly and stay controllable. She outlines a modular pipeline (contextual NLU, state tracking, configurable behavior, retrieval-augmented generation and a tonality component) and argues that every component and the full system must be evaluated against gold datasets and business metrics.

“So everything being more softer and implicit is actually really the key here.”
“That's extremely important because you want to be able to benchmark your entire system at every point of iteration.”

What you will learn

  • Design agent behavior as configurable actions such as acknowledge, probe, recommend or chit-chat instead of relying on raw LLM output.
  • Structure a modular pipeline of contextual NLU, state and memory, retrieval and a tonality paraphraser so each part can be iterated on.
  • Recognize convergence: the point where the agent understands the user well enough to stop asking questions.
  • Build a gold evaluation dataset and measure components and the end-to-end system, including retrieval relevance and recall.
  • Reduce toxicity and hallucination with input and output guardrails, tighter retrieved context and output checks on business-critical values.

Key takeaways from the speaker

  • Generative AI
  • Large Language Models
  • Natural Language Understanding
  • AI ML

Details

Level
Intermediate
Format
Talk
Technical depth
Practitioner
For
Mid-career, Senior individual contributor
Length
21:44
Published
May 2024

Questions this talk answers

Why are off-the-shelf LLMs not enough for sales or retail agents?

They tend to reply with long, wordy lists, while a good agent should take deterministic actions such as acknowledging and probing and understand preferences implicitly rather than filling a form.

What components does a robust conversational agent need?

A contextual NLU for intent and sentiment, state and memory tracking, configurable behavior, retrieval-augmented generation over static and dynamic data sources, a tonality or paraphraser component, and logging and observability.

How should LLM conversational systems be evaluated?

Start with a gold dataset of questions and ideal responses, evaluate each component and the whole pipeline, use AI-assisted scoring and semantic answer similarity, and tie online evaluation to business metrics like sales and engagement.

How do you know when an agent should stop asking questions?

Palan calls it convergence: recognizing when the agent has built a sufficient picture of the user's requirements, as a human would in conversation.

How should teams red team AI solutions for toxicity and hallucination?

Use guardrails on both input and output, involve people or data collection to capture each business's definition of disallowed content, and reduce hallucination by improving and shortening retrieved context and filtering outputs such as prices.

About this talk

The rapid advancements in machine learning and natural language processing have led to a surge in the development of conversational agents. In this talk, I present an innovative framework for designing, evaluating, and deploying human-like conversational agents in retail and hospitality. The framework addresses challenges such as conversation rigidity, tonality, and latency in large language models. Additionally, it incorporates customer-data pipelines for personalized interactions and robust conversational interfaces.We will demonstrate the creation of a performance baseline using off-the-shelf models, evaluate the retrieval pipeline, and how to bootstrap annotated datasets for fine-tuning task-specific models. This cutting-edge framework paves the way for next-generation conversational agents, revolutionizing customer interactions across industries.

Topics

Related talks

Browse the library