OSS Agents JP
オープンソース AI エージェント 日本語ガイド
← 一覧へ
Haystack
OTHER

Haystack

Haystack

LLMアプリケーション構築向けのオープンソースAI orchestrationフレームワーク。モジュラーパイプラインとエージェントワークフロー設計により、RAG、マルチモーダル処理、セマンティック検索など本番環境対応のシステムを構築できます。

原文: Open-source AI orchestration framework for building context-engineered, production-ready LLM applications. Design modular pipelines and agent workflows with explicit control over retrieval, routing, memory, and generation. Built for scalable agents, RAG, multimodal applications, semantic search, and conversational systems.
#RAG#エージェント#Python#agent#agents#ai#gemini#generative-ai#gpt-4#information-retrieval#large-language-models#llm
EDITOR'S TAKE

編集部メモ

パイプラインの透視性で、LLM アプリを理屈立てる

Haystack は検索・ルーティング・メモリ・生成の各ステップを明示的に制御したい開発者向けのフレームワークです。RAG やエージェントワークフロー構築時に、各コンポーネントの挙動が見える化され、「何が起きているか」を追跡できます。モデル非依存でもあり、OpenAI から Mistral への乗り換え時も既存パイプラインを活かせるため、長期運用されるプロダクションシステムに向いています。ただし「完全な自由度」は「自分で設計判断する負担」でもあり、小規模プロトタイプなら LangChain のほうが初期段階では短期で機動しやすい可能性があります。

USE CASES

こんな場面で使う

  • 複数の社内ナレッジベース・API・LLM を連携させた マルチステップ RAG / QA システムの構築
  • 検索アルゴリズム・リランキング・フィルタリングの順序を 細かく調整し、精度を追求する情報検索パイプライン
  • エージェント内の記憶管理・ツール選択・プロンプト生成を 透視可能にしたまま、複数の LLM モデルを試行錯誤する
DIFFERENTIATOR

類似ツールとの違い

LangChain よりパイプラインの各段階が明示的で、検索ロジック・フィルタリング・ルーティングを粒度高く制御できます。LlamaIndex は RAG に特化していますが、Haystack は RAG に留まらず エージェント・QA・マルチモーダル処理へも幅広く対応し、汎用性に優れています。
CAVEAT

注意点・向かない用途

⚠️ Python 主体のため JavaScript/Node.js エコシステムとの統合は制限的です。ドキュメント量が豊富な分、初期セットアップの学習曲線が想定より急になる可能性があり、「最小限で動かす」段階での優先順位付けが必要になる場合があります。
BEST FOR

向いている読者

バックエンド / ML エンジニアLLM アプリケーション開発者大規模 / 長期運用プロジェクトRAG システム構築エージェント実装

— OSS Agents JP 編集部による独自評価(Haystack に関する観察)

REPO STATS

リポジトリ統計

⭐ Stars
25.3k
🍴 Forks
2.8k
⚠️ Open Issues
114
🌿 Language
MDX
📄 License
Apache-2.0
🕒 最終更新
2026.05.16 (1日前)
📅 公開日
2019.11.14
🌿 Branch
main
REFERENCE

公式ドキュメント(README)

本ハブの独自評価は上記「編集部メモ」が一次情報です。以下は GitHub README の参考転載(折りたたみ)。

📖 GitHub README の日本語訳を読む(AI 自動翻訳 / 参考情報)

— AI による自動翻訳 (2026.05.17 更新)。正確な情報は GitHub の原文 をご確認ください。

Haystack ロゴと「haystack by deepset – The Open Source AI Framework for Production Ready RAG & Agents」というテキストが含まれた青色のバナーで、検索、ドキュメント、エージェント、パイプライン、クラウド システムを表す抽象的なアイコンに囲まれています。
CI/CD テスト types - Mypy カバレッジバッジ Ruff
ドキュメンテーション ウェブサイト
パッケージ PyPI PyPI - ダウンロード PyPI - Python バージョン Conda バージョン GitHub ライセンス コンプライアンス
メタ Discord Twitter フォロー

Haystack は、Python で本番対応の LLM アプリケーションを構築するためのオープンソースの AI オーケストレーション フレームワークです。

取得、ルーティング、メモリ、生成を明示的に制御してモジュラー パイプラインとエージェント ワークフローを設計します。スケーラブルな RAG システム、マルチモーダル アプリケーション、セマンティック検索、質問応答、自律型エージェントを構築でき、すべて透明なアーキテクチャで、実験・深いカスタマイズ・確信を持ってデプロイすることができます。

目次

インストール

Haystack を入手する最もシンプルな方法は pip を使用することです:

pip install haystack-ai

最新機能を試すためにナイトリー プレリリースをインストールしてください:

pip install --pre haystack-ai

Haystack は Docker イメージを含む複数のインストール方法をサポートしています。包括的なガイドについては、 ドキュメンテーションを参照してください。

ドキュメント

プロジェクトが初めての場合は、まず「What is Haystack?」をご確認いただき、「Get Started Guide」に進んでください。数分で最初の LLM アプリケーションを構築できます。tutorials で学習を続け、より高度なユースケースやインスピレーションが必要な場合は、Cookbook で Haystack レシピを参照できます。

いつでも documentation にアクセスして、Haystack の詳細、できることの説明、そして背後にある技術について学ぶことができます。

機能

コンテキスト エンジニアリング向けに設計
情報の取得、ランク付け、フィルタリング、結合、構造化、ルーティングについて明示的な制御を持つ柔軟なシステムを設計できます。取得、メモリ、ツール、生成が透明で追跡可能なパイプラインとエージェント ワークフローを定義します。

モデルとベンダーに依存しない
OpenAI、Mistral、Anthropic、Cohere、Hugging Face、Azure OpenAI、AWS Bedrock、ローカル モデルなど、様々なものと統合できます。システムを書き直すことなく、モデルやインフラストラクチャ コンポーネントを交換できます。

モジュール化とカスタマイズ可能
取得、インデックス作成、ツール呼び出し、メモリ、評価用の組み込みコンポーネントを使用するか、独自に作成できます。ループ、分岐、条件付きロジックを追加して、パイプラインとエージェント ワークフローを通じてコンテキストがどのように移動するかを正確に制御します。

拡張可能なエコシステム
一貫したインターフェースを通じてカスタム コンポーネントを構築・共有できます。これにより、コミュニティとサードパーティが Haystack を簡単に拡張でき、オープン エコシステムに貢献できるようになります。

ヒント

Haystack パイプラインを REST API または MCP サーバー としてデプロイして提供したいですか?Hayhooks は、パイプラインとエージェントをカスタム ロジックでラップし、HTTP エンドポイントまたは MCP 経由で公開する簡単な方法を提供します。OpenAI 互換チャット補完エンドポイントもサポートし、open-webui などのチャット UI で動作します。

Haystack Enterprise: サポートとプラットフォーム

Haystack Enterprise Starter で、Haystack チームからのエキスパート サポート、エンタープライズグレード テンプレートを使用した迅速な開発、クラウドおよびオンプレミス環境向けのデプロイメント ガイドによる安全なスケーリングが実現できます。詳細は announcement post でご確認ください。

👉 Haystack Enterprise Starter を取得

Haystack のマネージド本番セットアップをお探しですか?Haystack Enterprise Platform は、組み込みの可視化、コラボレーション、ガバナンス、アクセス制御を備えた Haystack パイプラインの構築、テスト、デプロイ、運用をサポートします。マネージド クラウド サービスまたはセルフホスト ソリューションとして利用できます。

👉 Haystack Enterprise Platform について詳しく学ぶか、無料で試す

テレメトリ

Haystack はパイプライン コンポーネントの匿名使用統計を収集します。これらのコンポーネントが初期化されるたびにイベントが受け取られます。これにより、どのコンポーネントがコミュニティにとって最も関連性があるかを把握できます。

Haystack ドキュメントで、テレメトリの詳細とオプトアウト方法についてご確認ください。

🖖 コミュニティ

機能リクエストやバグ報告は、GitHub で issue を開いてください。定期的に確認しているため、迅速に対応できます。トピックについて議論したい場合や、プロジェクトで Haystack を機能させる方法についてのアドバイスが必要な場合は、Github Discussions または Discord channel でスレッドを開始できます。𝕏 (Twitter)Stack Overflow も確認しています。

Haystack への貢献

Haystack はコミュニティからのあらゆる貢献を大歓迎しています。タイポの簡単な修正から、まったく新しい機能まで、幅広い貢献が可能です。Haystack の専門家である必要はありません。意味のある改善を提供できます。まずは 貢献者ガイドライン をご確認ください。

Haystack に貢献するにはいくつかの方法があります:

Haystack を使用している組織

Haystack は、以下を含む業界全体で本番環境の AI システムを構築する数千のチームによって使用されています:

あなたも Haystack を使用していますか?PR を開くか、あなたのストーリーを教えてください

📖 GitHub README の原文を読む(English / 参考情報)

— GitHub から取得した原文。完全版は GitHub へ。

Blue banner with the Haystack logo and the text ‘haystack by deepset – The Open Source AI Framework for Production Ready RAG & Agents’ surrounded by abstract icons representing search, documents, agents, pipelines, and cloud systems.
CI/CD Tests types - Mypy Coverage badge Ruff
Docs Website
Package PyPI PyPI - Downloads PyPI - Python Version Conda Version GitHub License Compliance
Meta Discord Twitter Follow

Haystack is an open-source AI orchestration framework for building production-ready LLM applications in Python.

Design modular pipelines and agent workflows with explicit control over retrieval, routing, memory, and generation. Build scalable RAG systems, multimodal applications, semantic search, question answering, and autonomous agents, all in a transparent architecture that lets you experiment, customize deeply, and deploy with confidence.

Table of Contents

Installation

The simplest way to get Haystack is via pip:

pip install haystack-ai

Install nightly pre-releases to try the newest features:

pip install --pre haystack-ai

Haystack supports multiple installation methods, including Docker images. For a comprehensive guide, please refer to the documentation.

Documentation

If you're new to the project, check out "What is Haystack?" then go through the "Get Started Guide" and build your first LLM application in a matter of minutes. Keep learning with the tutorials. For more advanced use cases, or just to get some inspiration, you can browse our Haystack recipes in the Cookbook.

At any given point, hit the documentation to learn more about Haystack, what it can do for you, and the technology behind.

Features

Built for context engineering
Design flexible systems with explicit control over how information is retrieved, ranked, filtered, combined, structured, and routed before it reaches the model. Define pipelines and agent workflows where retrieval, memory, tools, and generation are transparent and traceable.

Model- and vendor-agnostic
Integrate with OpenAI, Mistral, Anthropic, Cohere, Hugging Face, Azure OpenAI, AWS Bedrock, local models, and many others. Swap models or infrastructure components without rewriting your system.

Modular and customizable
Use built-in components for retrieval, indexing, tool calling, memory, and evaluation, or create your own. Add loops, branches, and conditional logic to precisely control how context moves through your pipelines and agent workflows.

Extensible ecosystem
Build and share custom components through a consistent interface that makes it easy for the community and third parties to extend Haystack and contribute to an open ecosystem.

Tip

Would you like to deploy and serve Haystack pipelines as REST APIs or MCP servers? Hayhooks provides a simple way for you to wrap pipelines and agents with custom logic and expose them through HTTP endpoints or MCP. It also supports OpenAI-compatible chat completion endpoints and works with chat UIs like open-webui.

Haystack Enterprise: Support & Platform

Get expert support from the Haystack team, build faster with enterprise-grade templates, and scale securely with deployment guides for cloud and on-prem environments with Haystack Enterprise Starter. Read more about it in the announcement post.

👉 Get Haystack Enterprise Starter

Need a managed production setup for Haystack? The Haystack Enterprise Platform helps you build, test, deploy and operate Haystack pipelines with built-in observability, collaboration, governance, and access controls. It’s available as a managed cloud service or as a self-hosted solution.

👉 Learn more about Haystack Enterprise Platform or try it free

Telemetry

Haystack collects anonymous usage statistics of pipeline components. We receive an event every time these components are initialized. This way, we know which components are most relevant to our community.

Read more about telemetry in Haystack or how you can opt out in Haystack docs.

🖖 Community

If you have a feature request or a bug report, feel free to open an issue in GitHub. We regularly check these, so you can expect a quick response. If you'd like to discuss a topic or get more general advice on how to make Haystack work for your project, you can start a thread in Github Discussions or our Discord channel. We also check 𝕏 (Twitter) and Stack Overflow.

Contributing to Haystack

We are very open to the community's contributions - be it a quick fix of a typo, or a completely new feature! You don't need to be a Haystack expert to provide meaningful improvements. To learn how to get started, check out our Contributor Guidelines first.

There are several ways you can contribute to Haystack:

Organizations using Haystack

Haystack is used by thousands of teams building production AI systems across industries, including:

Are you also using Haystack? Open a PR or tell us your story

RELATED

同じカテゴリの他のツール