{"slug": "creating-your-first-qa-pipeline-with-retrieval-augmentation", "title": "Creating Your First QA Pipeline with Retrieval-Augmentation", "summary": "Haystack released a tutorial on building a generative question-answering pipeline using retrieval-augmentation (RAG). The pipeline integrates SentenceTransformersTextEmbedder, InMemoryEmbeddingRetriever, ChatPromptBuilder, and a ChatGenerator to retrieve relevant documents and generate answers. This enables developers to create more accurate and context-aware QA systems.", "body_md": "`InMemoryDocumentStore`\n\n`SentenceTransformersDocumentEmbedder`\n\n`SentenceTransformersTextEmbedder`\n\n`InMemoryEmbeddingRetriever`\n\n`ChatPromptBuilder`\n\n`ChatGenerator`\n\n`OpenAIChatGenerator`\n\n`MistralChatGenerator`\n\n`TransformersChatGenerator`\n\nThis tutorial shows you how to create a generative question-answering pipeline using the retrieval-augmentation (\n[RAG](https://www.deepset.ai/blog/llms-retrieval-augmentation)) approach with Haystack. The process involves four main components:\n[SentenceTransformersTextEmbedder](https://docs.haystack.deepset.ai/docs/sentencetransformerstextembedder) for creating an embedding for the user query,\n[InMemoryEmbeddingRetriever](https://docs.haystack.deepset.ai/docs/inmemoryembeddingretriever) for fetching relevant documents,\n[ChatPromptBuilder](https://docs.haystack.deepset.ai/docs/chatpromptbuilder) for creating a template prompt, and a\n[ChatGenerator](https://docs.haystack.deepset.ai/docs/generators) for generating the final answer.", "url": "https://wpnews.pro/news/creating-your-first-qa-pipeline-with-retrieval-augmentation", "canonical_source": "https://haystack.deepset.ai/tutorials/27_first_rag_pipeline/", "published_at": "2026-06-17 00:00:00+00:00", "updated_at": "2026-06-24 12:18:40.823683+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "generative-ai", "ai-tools", "natural-language-processing"], "entities": ["Haystack", "SentenceTransformersTextEmbedder", "InMemoryEmbeddingRetriever", "ChatPromptBuilder", "ChatGenerator", "OpenAIChatGenerator", "MistralChatGenerator", "TransformersChatGenerator"], "alternates": {"html": "https://wpnews.pro/news/creating-your-first-qa-pipeline-with-retrieval-augmentation", "markdown": "https://wpnews.pro/news/creating-your-first-qa-pipeline-with-retrieval-augmentation.md", "text": "https://wpnews.pro/news/creating-your-first-qa-pipeline-with-retrieval-augmentation.txt", "jsonld": "https://wpnews.pro/news/creating-your-first-qa-pipeline-with-retrieval-augmentation.jsonld"}}