InMemoryDocumentStore
SentenceTransformersDocumentEmbedder
SentenceTransformersTextEmbedder
InMemoryEmbeddingRetriever
ChatPromptBuilder
ChatGenerator
OpenAIChatGenerator
MistralChatGenerator
TransformersChatGenerator
This tutorial shows you how to create a generative question-answering pipeline using the retrieval-augmentation ( RAG) approach with Haystack. The process involves four main components: SentenceTransformersTextEmbedder for creating an embedding for the user query, InMemoryEmbeddingRetriever for fetching relevant documents, ChatPromptBuilder for creating a template prompt, and a ChatGenerator for generating the final answer.