n4nAI

Topic

Haystack Document Stores & Retrievers

12 posts on haystack document stores & retrievers — part of framework tutorials on the n4n AI blog.

Framework tutorialsHow-to

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.

3 min read
Framework tutorialsHow-to

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.

4 min read
Framework tutorialsTutorial

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.

3 min read
Framework tutorialsTutorial

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.

2 min read
Framework tutorialsTutorial

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.

3 min read
Framework tutorialsTutorial

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.

3 min read
Framework tutorialsComparison

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.

5 min read
Framework tutorialsTutorial

Haystack PGVector document store tutorial

Build a production-ready Haystack PGVector document store with Postgres, including hybrid search, metadata filtering, and index tuning.

3 min read
Framework tutorialsTutorial

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.

3 min read
Framework tutorialsHow-to

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.

3 min read
Framework tutorialsComparison

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.

5 min read
Framework tutorialsHow-to

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.

3 min read