πŸ§‘β€πŸ³ 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

46 recipes

New
RAG
Agents
Web-QA

Agentic RAG with Llama 3.2 3B

πŸ§ͺ Experimental
New
Function Calling
Chat
Agents

Define & Run Tools

New
Advanced Retrieval
RAG
Agents

Advanced RAG: Query Decomposition and Reasoning

πŸ§ͺ Experimental
New
Advanced Retrieval
RAG

Improving Retrieval with Auto-Merging and Hierarchical Document Retrieval

New
RAG
Web-QA

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

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

πŸ§ͺ 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..