Using advanced techniques for RAG applications
In the Developing a question-answering application with generative AI recipe, we introduced the concept of RAG and demonstrated it through a simple application, built using Langchain, with Elasticsearch as the primary retriever. In this recipe, we’re taking things a step further by transforming our previous QA application into a fully-fledged chatbot. Along the way, we will introduce some very important concepts crucial for developing a production-ready RAG application.
Getting ready
Make sure that you have completed the following recipes:
- Using hybrid search to build advanced search applications
- Developing a question-answering application with generative AI
This recipe requires the installation of the Natural Language Toolkit (NLTK) library; run the following command:
pip install nltk
The snippets of this recipe can be found at https://github.com/PacktPublishing/Elastic-Stack-8.x-Cookbook/blob/main...