n4nAI

Topic

Haystack RAG Pipelines

14 posts on haystack rag pipelines — part of framework tutorials on the n4n AI blog.

Framework tutorialsTutorial

Using Llama 3.1 70B in a Haystack RAG pipeline via n4n.ai

Build a production-ready RAG pipeline with Haystack and Llama 3.1 70B using n4n.ai's OpenAI-compatible endpoint. Includes indexing, retrieval, and generation code with expected outputs.

3 min read
Framework tutorialsHow-to

Streaming responses in Haystack RAG pipelines with n4n.ai

Build a Haystack RAG pipeline that streams tokens from n4n.ai with runnable code, error handling, and verification steps.

4 min read
Framework tutorialsTutorial

Haystack RAG pipeline tutorial: query routing

Build a Haystack RAG pipeline that classifies queries and routes them to specialized retrievers for better accuracy and lower latency.

4 min read
Framework tutorialsTutorial

Haystack RAG pipeline tutorial: enterprise document search

Build a production-ready Haystack RAG pipeline for enterprise document search with hybrid retrieval, reranking, and observability.

3 min read
Framework tutorialsGuide

Chunking strategies for Haystack RAG pipelines

Practical guide to chunking strategies for Haystack RAG pipelines with code examples, tradeoffs, and evaluation methods.

4 min read
Framework tutorialsTutorial

Haystack RAG with Claude 3.5 Sonnet through n4n.ai

Build a production-ready Haystack RAG pipeline using Claude 3.5 Sonnet via n4n.ai with document indexing, retrieval, and generation steps.

3 min read
Framework tutorialsTutorial

Haystack RAG pipeline tutorial with hybrid retrieval

Build a production-ready Haystack RAG pipeline with hybrid retrieval combining BM25 and dense embeddings for better search relevance.

3 min read
Framework tutorialsTutorial

Haystack RAG pipeline tutorial: from PDF to answer

Build a production-ready Haystack RAG pipeline that extracts text from PDFs, indexes it, and answers questions with citations — complete with runnable code and expected outputs.

3 min read
Framework tutorialsTutorial

Haystack PromptBuilder tutorial for RAG pipelines

Build a production-ready RAG pipeline with Haystack's PromptBuilder — from basic templates to advanced conditional logic, with runnable code at every step.

3 min read
Framework tutorialsHow-to

Swapping OpenAI for n4n.ai in a Haystack RAG pipeline

A practical how-to for engineers to swap OpenAI for n4n.ai in a Haystack RAG pipeline using OpenAI-compatible endpoints, with runnable code and verification steps.

4 min read
Framework tutorialsHow-to

How to connect Haystack to n4n.ai's OpenAI-compatible API

A practical guide to connect Haystack to n4n.ai's OpenAI-compatible API, configure generators, and ship a RAG pipeline with built-in fallback.

4 min read
Framework tutorialsHow-to

Building a multi-hop RAG pipeline in Haystack 2.0

Step-by-step guide to building a multi-hop RAG pipeline in Haystack 2.0 that retrieves, rewrites queries, and synthesizes answers across two passes.

3 min read
Framework tutorialsHow-to

Building a citation-aware RAG pipeline in Haystack

Step-by-step guide to building a citation-aware RAG pipeline in Haystack that returns sourced answers with document references and confidence.

2 min read
Framework tutorialsTutorial

Build a RAG pipeline with Haystack 2.0 and n4n.ai

Hands-on tutorial to build rag pipeline haystack 2.0 n4n.ai using Haystack 2.0 and an OpenAI-compatible endpoint, with runnable code and expected output.

3 min read