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 interact with software using natural language. An enterprise chatbot can answer customer questions, summarize data, or invoke APIs to take action. Large language models (LLMs) can interpret user intent and generate context-aware responses; enterprise data can make those responses more relevant to the organization. section 8.1

A chat application can use retrieval-augmented generation (RAG) to answer questions using organizational data. Rather than loading and embedding every document on every turn, it can prepare embeddings once, store them in a vector database, and search them when a question arrives. The retrieved information then helps ground the LLM’s response. section 8.1.2 section 10.2

A practical chat-with-data workflow has four stages:

  • Read and ingest the source information. section 8.1.2
  • Create embeddings and save them in Redis. section 8.1.2
  • Search the saved information for relevant material to answer a question. section 8.1.2
  • Pass the retrieved context to the LLM for generation. section 8.1.2

Chat with blog posts

A chat application can use a collection of blog posts as its data source. Preparing and storing embeddings avoids reloading and embedding the posts for every question, reducing repeated work and token costs as conversations grow. section 8.1.2

Conversational interfaces can also augment work inside existing tools. In an IDE, GitHub Copilot Chat can explain selected code and its parameters or help a developer understand legacy code. The user remains responsible for reviewing and testing any generated code; it is not guaranteed to be correct or secure. section 5.2.1 section 5.1.1

For enterprise deployment, consider the whole application stack: models generate responses, orchestration coordinates components, grounding connects relevant data, and response filtering helps moderate output. Data quality, privacy, security, scalability, and ethical concerns still need attention; filtering and grounding do not replace application governance. section 10.2 section 10.7 section 8.1

How Generative AI in Action covers it

How deep it goes
Explains a staged chat-with-data workflow and application layers without deep model internals.
Examples
Uses a blog-post question-answering application and Copilot Chat explanations of selected and legacy code.
What you can do after
Apply it using Redis and an LLM to design a chat application over stored data.
How it connects
Connects conversational AI with large language models, retrieval-augmented generation, embeddings, vector databases, and orchestration.

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.