Haystack
Production-ready NLP pipeline framework for building search, RAG, and question-answering systems with any LLM.
Haystack
Haystack by deepset is a production-grade framework for building end-to-end NLP pipelines. It excels at RAG (retrieval-augmented generation), document search, and question answering, with first-class support for pipelines-as-code and a rich component ecosystem.
Key Features
- Pipeline architecture — DAG-based pipelines connecting components: retrievers, readers, generators, routers
- RAG out of the box — combine document stores, embedding retrievers, and generative models in minutes
- 40+ document stores — Elasticsearch, OpenSearch, Qdrant, Weaviate, Chroma, FAISS, and more
- Multi-modal — text, tables, and images
- Evaluation — built-in pipeline evaluation with RAGAS and custom metrics
- REST API —
hayhooksturns any pipeline into a deployable HTTP service
Quick Start
pip install haystack-ai
from haystack import Pipeline
from haystack.components.generators import OpenAIGenerator
from haystack.components.builders import PromptBuilder
template = "Answer: {{question}}"
pipe = Pipeline()
pipe.add_component("prompt", PromptBuilder(template=template))
pipe.add_component("llm", OpenAIGenerator(model="gpt-4o-mini"))
pipe.connect("prompt", "llm")
result = pipe.run({"prompt": {"question": "Who invented the telephone?"}})
print(result["llm"]["replies"][0])
Install via ai-supply
npx ai-supply add haystack-nlp-pipeline
Curated mirror of the open-source Haystack project (Apache-2.0). Install upstream from the repository.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/haystack-nlp-pipeline/check). Click a policy:
Consume Haystack programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/haystack-nlp-pipeline
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/haystack-nlp-pipeline/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add haystack-nlp-pipeline
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/haystack-nlp-pipeline/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "haystack-nlp-pipeline" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.