liveBook · Manning

Q&a engine

As explained in AI Agents and Applications

A Q&A engine is a software system that answers user questions using information retrieved from a knowledge base.

A Q&A engine answers a client system’s question using information from a knowledge base. Unlike a chatbot, it returns one answer rather than keeping a conversation open for follow-up questions. That makes a missing detail especially costly: the client cannot simply ask the engine to clarify its reply. section 1.1.1 section 6.1.1

A retrieval-augmented Q&A engine has two phases:

  • Ingest: pull in source text, split it into chunks, convert the chunks into embeddings, and store both chunks and embeddings in a vector store. section 1.1.1
  • Query: embed the question with the same model, retrieve relevant chunks through semantic search, and send those chunks with the question to an LLM to produce an answer. section 1.1.1
Figure 1.2 A Q&A engine implemented with RAG design. An LLM query engine stores domain-specific document information in a vector store. When an external system sends a query, it converts the natural language question into its embeddings (or vector) representation, retrieves the related documents from the vector store, and then gives the LLM the information it needs to craft a natural language response.
figure

The diagram shows how a question travels from an external system through retrieval to an LLM-generated response. section 1.1.1

The cost of an incomplete answer

Asked about the temples at Paestum, a chatbot identified the temples and their architectural style but omitted who built them. A follow-up question recovered that detail. A one-answer Q&A engine would have returned the incomplete response to its client, with no conversational repair step. section 6.1.1

How AI Agents and Applications covers it

How deep it goes
Explains ingestion and query steps, while deferring detailed treatment of embedding models and vector stores.
Examples
Uses a Paestum temples question to show how an omitted detail can leave a one-answer engine’s client uninformed.
What it assumes
Introduces embeddings and vector stores without assuming familiarity, but defers their detailed explanation.
What you can do after
Evaluate/understand a retrieval-based Q&A workflow and why answer completeness matters when follow-up is unavailable.
How it connects
Connects retrieval-augmented generation, embeddings, semantic search, vector stores, and LLM prompting.

Related concepts

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