๐ŸŽ„ Let's code and celebrate this holiday season with Advent of Haystack

๐Ÿง‘โ€๐Ÿณ Cookbook

You can use these examples as guidelines on how to make use of different model providers, vector databases, retrieval techniques and more with Haystack. Most of them showcase a specific, small demo.

Contribute

53 recipes

๐Ÿงช Experimental
New
Async

Running Haystack Pipelines in Asynchronous Environments

๐Ÿงช Experimental
New
Function Calling
Chat
Agents

Create a Swarm of Agents

New
Multimodal
Agents

Multimodal Agent with fastRAG and Haystack

๐Ÿงช Experimental
New
Function Calling
Chat
Agents

Newsletter Sending Agent with Experimental Haystack Tools

๐Ÿงช Experimental
New
Function Calling
Chat
Agents

Define & Run Tools

Agents

Web-Enhanced Self-Reflecting Agent

๐Ÿงช Experimental
Evaluation

Evaluating AI with Haystack

Advanced Retrieval
RAG
Metadata

Advanced RAG: Automated Structured Metadata Enrichment

RAG
Agents
Web-QA

Agentic RAG with Llama 3.2 3B

Advanced Retrieval
RAG
Agents

Advanced RAG: Query Decomposition and Reasoning

๐Ÿงช Experimental
Advanced Retrieval
RAG

Improving Retrieval with Auto-Merging and Hierarchical Document Retrieval

Prompting
Data Scraping

Analyze Your Instagram Commentsโ€™ Vibe with Apify and Haystack

๐Ÿงช Experimental
Evaluation

Evaluating RAG Pipelines with EvaluationHarness

๐Ÿงช Experimental
Chat
RAG
Agents

Conversational RAG using Memory

Advanced Retrieval
RAG

Advanced RAG: Query Expansion

RAG
Web-QA

RAG: Extract and use website content for question answering with Apify-Haystack integration

๐Ÿงช Experimental
Function Calling

Invoking APIs with OpenAPITool

Advanced Retrieval

Hybrid Retrieval with BM42

Model Serving
Chat

๐Ÿงฉ Quizzes and Adventures ๐Ÿฐ with Character Codex and llamafile

Evaluation

RAG Evaluation with Prometheus 2

Customization
Prompting

Prompt Optimization with DSPy

RAG
Model Serving

Haystack RAG Pipeline with Self-Deployed AI models using NVIDIA NIMs

Advanced Retrieval
Metadata

Extract Metadata Filters from a Query

๐Ÿงช Experimental
Customization

Run Tasks Concurrently Within a Custom Component

RAG
Advanced Retrieval

Sparse Embedding Retrieval with Qdrant and FastEmbed

Chat
SQL
Agents

Chat With Your SQL Database

RAG

RAG with Llama 3.1

Evaluation

RAG Pipeline Evaluation Using DeepEval

Evaluation

RAG Pipeline Evaluation Using UpTrain

Evaluation

RAG Pipeline Evaluation Using RAGAS

Audio

Speaker Diarization with AssemblyAI

Customization
Prompting

Advanced Prompt Customization for Anthropic

Function Calling

๐Ÿฆโ€โฌ› Information Extraction with Raven

RAG
Advanced Retrieval

RAG Pipeline Using FastEmbed for Embeddings Generationn

Advanced Retrieval
RAG

Using Hypothetical Document Embeddinga (HyDE) to Improve Retrieval

Model Serving
RAG

Getting a Daily Digest From Tech Websites

RAG

Build with Gemma and Haystack 2.x

Model Serving

Use the โšก vLLM inference engine in Haystack 2.x

Function Calling
Chat
Agents

Function Calling with OpenAIChatGenerator

RAG

Question Answering with Amazon Sagemaker, Chroma and Haystack

Multilingual RAG

Cohere v3 for Multilingual QA

Discovery

Streaming Model Explorer

RAG

AstraDB ๐Ÿค Haystack Integration

RAG

PDF-Based Question Answering with Amazon Bedrock and Haystack

Advanced Retrieval
Metadata

Improve Retrieval by Embedding Meaningful Metadata

Function Calling

๐Ÿฆ Information Extraction with Gorilla

Audio
Multilingual RAG

Multilingual RAG on a Podcast

Summarization
Advanced Retrieval

Legal Document Analysis with jina-embeddings-v2-base-en

Function Calling
Multimodal

Function Calling and Multimodal QA with Gemini

RAG
Vector Databases

Chroma Indexing and RAG Examples

RAG
Customization

Hacker News Summaries with Custom Components

RAG

๐Ÿช RAG pipelines with Haystack 2.0 + Zephyr 7B Beta

Web-QA

Web QA with Mixtral-8x7B-Instruct-v0.1

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..