Topic
Haystack Document Stores & Retrievers
12 posts on haystack document stores & retrievers — part of framework tutorials on the n4n AI blog.
Using Qdrant as a Haystack document store
A step-by-step guide to wiring Qdrant as a Haystack document store, from Docker setup through hybrid retrieval with metadata filtering.
Using Elasticsearch as a Haystack document store
A complete elasticsearch haystack document store tutorial with step-by-step setup, indexing, retrieval, and production hardening for engineers building RAG pipelines.
Haystack retriever tutorial: filtering by metadata
A hands-on Haystack retriever metadata filtering tutorial showing how to filter documents by custom metadata fields with runnable code examples and expected outputs.
Haystack document store tutorial: OpenSearch integration
Step-by-step tutorial for integrating OpenSearch as a Haystack document store with runnable code and expected outputs at each checkpoint.
Haystack document store tutorial: in-memory store basics
Learn Haystack's InMemoryDocumentStore basics with runnable code — write documents, retrieve with BM25 and embeddings, filter by metadata, and understand when to graduate to persistent stores.
Chroma as a Haystack document store: setup tutorial
Step-by-step tutorial for integrating Chroma as a Haystack document store with runnable code and expected outputs.
Haystack retriever tutorial: BM25 vs embedding retrieval
Compare BM25 and embedding retrievers in Haystack across latency, cost, accuracy, and operational complexity with code examples and a verdict by use case.
Haystack PGVector document store tutorial
Build a production-ready Haystack PGVector document store with Postgres, including hybrid search, metadata filtering, and index tuning.
Haystack document store tutorial: Weaviate setup guide
Complete hands-on tutorial for setting up Haystack with Weaviate as a document store, from prerequisites through indexing and retrieval with runnable code.
Connecting Haystack to Pinecone for vector retrieval
Step-by-step haystack pinecone document store tutorial: install deps, configure Pinecone, embed docs, build a retriever, and verify vector search in Haystack 2.x.
Comparing Haystack document stores for production RAG
A head-to-head comparison of Haystack document stores for production RAG: Elasticsearch, OpenSearch, Pinecone, Weaviate, Qdrant, Milvus, and Chroma.
Building a hybrid retriever in Haystack 2.0
Hands-on hybrid retriever Haystack 2.0 tutorial: wire BM25 and embedding retrievers into one pipeline with rank fusion, then verify results locally.
More topics in framework tutorials
- Building Chatbots with Vercel AI SDK & Next.js15
- LangChain RAG with Vector Databases15
- LangGraph Multi-Agent Workflows15
- LlamaIndex Query Engines for RAG15
- AutoGen Multi-Agent Conversations & Group Chat14
- Choosing an AI Framework by Use Case14
- CrewAI Agent Roles & Task Design14
- CrewAI Real-World Crew Examples14
- Haystack RAG Pipelines14
- LangChain Agents & Tool Calling14
- LangChain Multi-Model Fallback & Routing14
- LangChain.js for Node & TypeScript14