Haystack frames pipelines as composed component graphs and agents as model-directed tool use. Choosing between them requires an engineering reason, not a preference for autonomy.
Evidence check: 25 October 2026. Product details reflect the referenced documentation observed at this cutoff; exact plans, prices, regional eligibility and unverified release dates are not claimed. This is an editorial guide, not a hands-on test.
Why a pipeline is often enough
A reproducible document-question-answer system can fetch records, retrieve passages, rerank and draft an answer in an explicit sequence. Haystack’s documentation explains this pipeline model alongside agent components. When each step is known in advance, an ordinary pipeline provides a more traceable starting point. An agent may improve flexibility when the question calls for an unpredictable combination of sources or tools, but it also adds branching and failure modes.
Hybrid designs
An agent can be a component within a larger pipeline, while a pipeline can be exposed as a tool for an agent to invoke. This lets a deterministic service enforce indexing, tenant filters, retrieval limits and output validation while an agent decides among tightly scoped subtools. For example, an internal research assistant could choose between an approved policy retriever and a public technical-document retriever, while the retrievers themselves enforce fixed constraints.
The permission question
A pipeline tool is not authorized merely because it is callable from an agent. Tool implementation must check the requester, source access rules and resource identity. Never let a retrieved passage name a privileged index or another tenant’s collection and thereby change the agent’s allowed search scope. Apply access controls before documents enter model context, and validate every external write independently.
Compare designs with a held-out test
Prepare questions requiring one source, several sources, a forbidden source and no available evidence. Score retrieval recall, factual accuracy, refusal and unauthorized data exposure. Then compare a fixed retrieval pipeline against an agent-router version on the same dataset and model. Include p95 response time and total calls because an agent may use more steps to reach a similar answer. A lower token count is not meaningful if the design routinely misses essential documents.
Deployment choices
Choose Haystack if composable retrieval and pipeline behavior match the team’s Python stack. Choose code-oriented orchestration when long-running approvals and state management matter more. Read the exact Haystack version’s documentation when integrating custom tools; the availability of a component in current docs does not establish that it existed in a historical release. The framework is not an independent assertion about managed hosting prices or global regions.
Operational checklist
A search result should preserve document owner, revision, effective date, source URL and access label. Store these labels in the retrieval layer, not in an untrusted prompt. When a question produces several plausible passages, expose the uncertainty and offer a source-navigation result rather than a definitive answer with invented citations. Re-indexing and document deletion need measurable completion checks. For an agent extension, set the number of calls, context size and escalation criteria before deployment; monitor deviations from the fixed-pipeline baseline.
Sources and Further Reading
- deepset — Haystack: Choosing between pipelines and agents (accessed 2026-10-25)
- deepset — Haystack PipelineTool (accessed 2026-10-25)
- deepset — Introduction to Haystack (accessed 2026-10-25)