liveBook · Manning

Conversational ai

As explained in Generative AI in Action

A chatbot is software that conducts conversational interactions with users through text or speech.

Conversational AI lets people ask questions and receive responses through an ongoing exchange. In an enterprise, a context-aware chatbot might answer customer questions, explain internal data, or invoke an API when a request requires an action. Responses grounded in enterprise-specific data can be more relevant than answers based on a general-purpose model alone. section 8.1

A chat-with-data application connects a large language model (LLM) to information it can retrieve. One practical design reads the source data, creates embeddings, and stores them in a vector database. When a user asks a question, the application searches those stored details, adds relevant results to the question, and sends that context to the LLM to generate an answer. This is retrieval-augmented generation (RAG). section 8.1.2 section 10.7

Chat with a collection of posts

Suppose an organization wants users to question a large archive of posts. Reloading every post and recreating embeddings for every question would add time, token costs, and scaling problems. Instead, prepare and save the searchable details once, then search them for each question before generating a response. The same pattern supports a conversational interface over enterprise data. section 8.1.2

Not every conversational assistant is a customer-service chatbot. GitHub Copilot Chat lets a developer ask about selected code, errors, or legacy code inside an IDE. It extends code completion into a dialogue, but remains an assistant: the developer stays responsible for reviewing and testing generated code. section 5.1.3 section 5.1.1

For production use, plan beyond the chat interface. Data quality, ethical concerns, scalability, and token costs affect usefulness. An enterprise application stack also needs coordination among models, grounding, and response filtering; filtering and moderation help check whether outputs are suitable. Treat generated answers and actions as parts of a governed application, not as inherently reliable simply because they sound conversational. section 8.1 section 10.7

How Generative AI in Action covers it

How deep it goes
Works through a staged retrieval-and-generation design and application layers, without detailing speech handling or model internals.
Examples
Uses a post archive for chat with data and Copilot Chat for explaining selected or legacy code.
What it assumes
Builds on an existing retrieval-augmented generation implementation and introduces the chat application's storage and search stages.
What you can do after
Build it from scratch as a chat-with-data application using stored embeddings, search, and LLM generation.
How it connects
Connects large language models, retrieval-augmented generation, embeddings, vector databases, API invocation, and response filtering.

Also explained in

Compare how 20 books explain conversational ai →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Generative AI in Action. The section links point to the parts of the book it draws on.