This is an early release preview. You may encounter bugs.
Haystack logo
Unclaimed

Framework coding

Haystack

Open-source Python framework for building production LLM pipelines for RAG, search, and agents

A+ 92/100 GitHub score ? This grade is derived from GitHub signals, not user votes. Open for the full breakdown.
Discussion

01 / Summary

About Haystack.

Haystack is a Python framework for building LLM applications out of modular pipelines and agent workflows. You decide explicitly how retrieval, routing, memory, and generation fit together, and use the same building blocks for retrieval-augmented generation (RAG), semantic search, question answering, multimodal applications, and autonomous agents.

A Pipeline connects components such as retrievers, rankers, tool callers, memory stores, generators, and evaluators. Pipelines support loops, branches, and conditional logic, so you control how context is retrieved, ranked, filtered, combined, and routed before it reaches the model. The same Pipeline runs synchronously or asynchronously and streams output token by token. Pipelines are serializable and cloud-agnostic, and run on Kubernetes.

The Agent component adds tool calling on top of pipelines. Lifecycle hooks such as before_llm, before_tool, and on_exit let you add guardrails and custom logic, and each run tracks step count, token usage, and tool calls. Agents can run tool calls concurrently, and SkillToolset loads skill descriptions into context only when they are needed. Agent Pack supplies ready-made agents, such as a deep research agent and an advanced RAG agent.

Haystack integrates with model providers including OpenAI, Mistral, Anthropic, Cohere, Hugging Face, Google, Azure OpenAI, AWS Bedrock, and local models, and with vector stores and search engines such as Weaviate, Pinecone, and Elasticsearch. Components can be swapped without rewriting the rest of the system. The companion Hayhooks project serves pipelines and agents as REST APIs, MCP servers, or OpenAI-compatible chat completion endpoints. A commercial Haystack Enterprise Platform, managed or self-hosted, adds visual pipeline design, testing workflows, access controls, and observability.

  • Composable pipelines: connect built-in or custom components for retrieval, indexing, tool calling, memory, and evaluation
  • Control flow: loops, branches, and conditional logic decide how context moves through pipelines and agent workflows
  • Async and streaming: one Pipeline runs synchronously or asynchronously and streams token by token
  • Agent lifecycle hooks: before_llm, before_tool, and on_exit hooks add guardrails and custom logic to agents
  • Run tracking: agents record step count, token usage, and tool calls for monitoring and cost control
  • Progressive skills: SkillToolset adds a skill's description to context only when the agent needs it
  • Agent Pack: ready-made agents, including a deep research agent and an advanced RAG agent
  • Model-agnostic: integrations for OpenAI, Mistral, Anthropic, Cohere, Hugging Face, Google, Azure OpenAI, AWS Bedrock, and local models
  • Multimodal: components for image processing and audio transcription alongside text
  • Serving with Hayhooks: exposes pipelines and agents as REST APIs, MCP servers, or OpenAI-compatible endpoints
  • Extensible ecosystem: custom components share one interface, and community integrations live in a separate repository

02 / Discussion CREDIBILITY-GATED

Discussion

Reading is open to everyone. Posting and voting need a verified identity or a GitHub grade of B or higher.

  • No discussions yet.

04 / Build

Build with Haystack.

Browse the catalog for frameworks, tools, and harnesses, each scored on real GitHub credibility.

Get Haystack →

Browse the catalog