5
Building a Chatbot Like ChatGPT
LLM-powered chatbots have demonstrated impressive fluency in conversational tasks such as required for customer service. However, their lack of world knowledge and their occasional errors limits their effectiveness in domain-specific question answering. In this chapter, we explore how to overcome these and other limitations through Retrieval-Augmented Generation (RAG). RAG enhances chatbots by grounding their responses in external evidence sources, leading to more accurate and informative answers. We will also provide foundations for representing documents as vectors, indexing methods for efficient similarity lookups, and vector databases for managing embeddings. Building on these core techniques, we will discuss ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access