๐Ÿ†• Haystack 2.11 is out with shorter import time and extended async support. Go to release notes for all highlights ๐ŸŒŸ

Tutorials & Walkthroughs

Whether you’re a beginner or an experienced user, these tutorials will walk you through Haystack features and functionalities making it easy for you to understand and implement them.

Contribute

15 tutorials & walkthroughs for all levels

Full Walkthrough

Evaluation

A guided walkthrough to learn everything about evaluation

beginner
10 min

Creating Your First QA Pipeline with Retrieval-Augmentation

Build your first generative QA pipeline with OpenAI GPT models

intermediate
15 min

Generating Structured Output with Loop-Based Auto-Correction

Learn how to extract structured data using an LLM, and to validate the generated output against a predefined schema.

intermediate
10 min

Building Fallbacks to Websearch with Conditional Routing

Learn how to direct the query to a web-based RAG route when necessary

advanced
20 min

Building a Chat Agent with Function Calling

Learn how to build chat applications that have agent-like behavior with OpenAI function calling

beginner
10 min

Retrieving a Context Window Around a Sentence

Learn how to use the SentenceWindowRetriever to retrieve a context window

beginner
5 min

Filtering Documents with Metadata

Learn how to filter down to specific documents at retrieval time using metadata

beginner
15 min

Preprocessing Different File Types

Learn how to build an indexing pipeline that will preprocess files based on their file type

beginner
10 min

Embedding Metadata for Improved Retrieval

Learn how to embed metadata while indexing, to improve the quality of retrieval results

beginner
10 min

Serializing LLM Pipelines

Learn how to serialize and deserialize your pipelines between YAML and Python

beginner
10 min

Build an Extractive QA Pipeline

Learn how to build a Haystack pipeline that uses an extractive model to display where the answer to your query is.

intermediate
15 min

Creating a Hybrid Retrieval Pipeline

Learn how to combine keyword-based retrieval and dense retrieval to enhance retrieval

intermediate
15 min

Classifying Documents & Queries by Language

Learn how to classify documents and route queries by language, for both indexing and RAG pipelines

intermediate
15 min

Evaluating RAG Pipelines

Learn how to evaluate your RAG pipelines using statistical and model-based evaluation metrics

intermediate
25 min

Query Classification with TransformersTextRouter and TransformersZeroShotTextRouter

Learn how to route user questions and other text inputs with classification models

Looking for a tutorial?

Type a keyword then click the "Search" button and we'll search through all tutorials.

No results found

You may want to try different keywords or check for any possible typos.

There has been an error.

Please try again later.

Searching..