กลับไปหน้า Tools

GetNotes Tools

deepset-ai/haystack

Tool นี้คืออะไร

Haystack เป็นเฟรมเวิร์ก AI orchestration แบบโอเพนซอร์สสำหรับสร้างแอปพลิเคชัน LLM ที่พร้อมใช้งานจริงใน Python ช่วยให้นักพัฒนาสามารถออกแบบไปป์ไลน์และเวิร์กโฟลว์ของเอเจนต์แบบโมดูลาร์ พร้อมการควบคุมที่ชัดเจนในการดึงข้อมูล การจัดเส้นทาง หน่วยความจำ และการสร้าง เพื่อสร้างระบบ RAG, การค้นหาเชิงความหมาย และเอเจนต์อัตโนมัติที่ปรับขนาดได้และปรับแต่งได้ง่าย

ข้อมูลโปรเจกต์

ดาว

26K

Forks

3K

License

Apache-2.0

อัปเดต GitHub ล่าสุด

25 ก.ค. 2569

เพิ่มใน GetNotes

14 ก.ค. 2569

Repository

deepset-ai/haystack

รูปแบบ

Library / SDK

เหมาะกับงาน

AI และ AgentsAutomation

เหมาะกับอาชีพ

Ecosystem

Python

แปลและเรียบเรียงโดย AI

เนื้อหาฉบับภาษาไทย

ใช้อ่านเพื่อทำความเข้าใจเบื้องต้น โปรดตรวจสอบรายละเอียดสำคัญกับเอกสารต้นฉบับด้านล่าง

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/CDTests types - Mypy Coverage badge Ruff
เอกสารWebsite
แพ็กเกจPyPI PyPI - Downloads PyPI - Python Version Conda Version GitHub License Compliance HVTrust Evidence Grade OpenSSF Best Practices
เมตาDiscord Twitter Follow

Haystack เป็นเฟรมเวิร์ก AI orchestration แบบโอเพนซอร์สสำหรับสร้างแอปพลิเคชัน LLM ที่พร้อมใช้งานจริงใน Python

ออกแบบไปป์ไลน์แบบโมดูลาร์และเวิร์กโฟลว์ของเอเจนต์ด้วยการควบคุมที่ชัดเจนในการดึงข้อมูล การจัดเส้นทาง หน่วยความจำ และการสร้าง สร้างระบบ RAG ที่ปรับขนาดได้ แอปพลิเคชันมัลติโมดัล การค้นหาเชิงความหมาย การตอบคำถาม และเอเจนต์อัตโนมัติ ทั้งหมดนี้อยู่ในสถาปัตยกรรมที่โปร่งใสที่ช่วยให้คุณสามารถทดลอง ปรับแต่งอย่างลึกซึ้ง และปรับใช้ได้อย่างมั่นใจ

สารบัญ

การติดตั้ง

วิธีที่ง่ายที่สุดในการติดตั้ง Haystack คือผ่าน pip:

sh
pip install haystack-ai

ติดตั้งรุ่นพรีรีลีสรายวันเพื่อลองใช้คุณสมบัติใหม่ล่าสุด:

sh
pip install --pre haystack-ai

Haystack รองรับวิธีการติดตั้งที่หลากหลาย รวมถึง Docker images สำหรับคู่มือฉบับสมบูรณ์ โปรดดูที่ เอกสารประกอบ

เอกสารประกอบ

หากคุณยังใหม่กับโปรเจกต์นี้ โปรดดูที่ "What is Haystack?" จากนั้นทำตาม "Get Started Guide" และสร้างแอปพลิเคชัน LLM ตัวแรกของคุณได้ในเวลาไม่กี่นาที เรียนรู้เพิ่มเติมด้วย บทเรียน สำหรับกรณีการใช้งานขั้นสูง หรือเพียงแค่หาแรงบันดาลใจ คุณสามารถเรียกดูสูตร Haystack ของเราได้ใน Cookbook

เมื่อใดก็ตามที่คุณต้องการเรียนรู้เพิ่มเติมเกี่ยวกับ Haystack สิ่งที่สามารถทำได้ และเทคโนโลยีเบื้องหลัง โปรดดูที่ เอกสารประกอบ

คุณสมบัติ

สร้างขึ้นเพื่อวิศวกรรมบริบท ออกแบบระบบที่ยืดหยุ่นด้วยการควบคุมที่ชัดเจนว่าข้อมูลถูกดึง จัดอันดับ กรอง รวม จัดโครงสร้าง และจัดเส้นทางอย่างไรก่อนที่จะถึงโมเดล กำหนดไปป์ไลน์และเวิร์กโฟลว์ของเอเจนต์ที่การดึงข้อมูล หน่วยความจำ เครื่องมือ และการสร้างมีความโปร่งใสและตรวจสอบย้อนกลับได้

ไม่ขึ้นกับโมเดลและผู้จำหน่าย ผสานรวมกับ OpenAI, Mistral, Anthropic, Cohere, Hugging Face, Azure OpenAI, AWS Bedrock, โมเดลในเครื่อง และอื่นๆ อีกมากมาย สลับโมเดลหรือส่วนประกอบโครงสร้างพื้นฐานได้โดยไม่ต้องเขียนระบบใหม่

เป็นโมดูลาร์และปรับแต่งได้ ใช้ส่วนประกอบในตัวสำหรับการดึงข้อมูล การจัดทำดัชนี การเรียกใช้เครื่องมือ หน่วยความจำ และการประเมิน หรือสร้างของคุณเอง เพิ่มลูป สาขา และตรรกะตามเงื่อนไขเพื่อควบคุมอย่างแม่นยำว่าบริบทเคลื่อนที่ผ่านไปป์ไลน์และเวิร์กโฟลว์ของเอเจนต์ของคุณอย่างไร

ระบบนิเวศที่ขยายได้ สร้างและแบ่งปันส่วนประกอบที่กำหนดเองผ่านอินเทอร์เฟซที่สอดคล้องกัน ซึ่งทำให้ชุมชนและบุคคลที่สามสามารถขยาย Haystack และมีส่วนร่วมในระบบนิเวศแบบเปิดได้อย่างง่ายดาย

เคล็ดลับ

คุณต้องการปรับใช้และให้บริการไปป์ไลน์ Haystack เป็น REST APIs หรือ MCP servers หรือไม่? Hayhooks มอบวิธีง่ายๆ ให้คุณห่อหุ้มไปป์ไลน์และเอเจนต์ด้วยตรรกะที่กำหนดเอง และเปิดเผยผ่าน HTTP endpoints หรือ MCP นอกจากนี้ยังรองรับ OpenAI-compatible chat completion endpoints และทำงานร่วมกับ chat UIs เช่น open-webui

Haystack Enterprise: การสนับสนุนและแพลตฟอร์ม

รับการสนับสนุนจากผู้เชี่ยวชาญจากทีม Haystack สร้างได้เร็วขึ้นด้วยเทมเพลตระดับองค์กร และปรับขนาดได้อย่างปลอดภัยด้วยคู่มือการปรับใช้สำหรับสภาพแวดล้อมคลาวด์และ on-prem ด้วย Haystack Enterprise Starter อ่านเพิ่มเติมเกี่ยวกับเรื่องนี้ได้ใน ประกาศ

👉 รับ Haystack Enterprise Starter

ต้องการการตั้งค่าการผลิตแบบจัดการสำหรับ Haystack หรือไม่? Haystack Enterprise Platform ช่วยให้คุณสร้าง ทดสอบ ปรับใช้ และดำเนินการไปป์ไลน์ Haystack ด้วยการสังเกตการณ์ในตัว การทำงานร่วมกัน การกำกับดูแล และการควบคุมการเข้าถึง มีให้บริการในรูปแบบบริการคลาวด์แบบจัดการ หรือโซลูชันแบบติดตั้งเอง

👉 เรียนรู้เพิ่มเติมเกี่ยวกับ Haystack Enterprise Platform หรือ ทดลองใช้ฟรี

Telemetry

Haystack รวบรวมสถิติการใช้งาน แบบไม่ระบุตัวตน ของ pipeline components เราได้รับเหตุการณ์ทุกครั้งที่ components เหล่านี้ถูกเริ่มต้นใช้งาน ด้วยวิธีนี้ เราจึงทราบว่า components ใดมีความเกี่ยวข้องกับชุมชนของเรามากที่สุด

อ่านเพิ่มเติมเกี่ยวกับ telemetry ใน Haystack หรือวิธีที่คุณสามารถเลือกไม่เข้าร่วมได้ใน เอกสาร Haystack

🖖 ชุมชน

หากคุณมีคำขอคุณสมบัติใหม่หรือรายงานข้อผิดพลาด โปรดเปิด issue ใน GitHub เราตรวจสอบสิ่งเหล่านี้เป็นประจำ ดังนั้นคุณจึงสามารถคาดหวังการตอบกลับที่รวดเร็ว หากคุณต้องการพูดคุยในหัวข้อใดหัวข้อหนึ่งหรือขอคำแนะนำทั่วไปเกี่ยวกับวิธีทำให้ Haystack ทำงานสำหรับโปรเจกต์ของคุณ คุณสามารถเริ่มกระทู้ใน Github Discussions หรือ ช่อง Discord ของเราได้ เรายังตรวจสอบ 𝕏 (Twitter) และ Stack Overflow

การมีส่วนร่วมกับ Haystack

เราเปิดกว้างอย่างมากต่อการมีส่วนร่วมของชุมชน ไม่ว่าจะเป็นการแก้ไขข้อผิดพลาดเล็กน้อย หรือคุณสมบัติใหม่ทั้งหมด! คุณไม่จำเป็นต้องเป็นผู้เชี่ยวชาญ Haystack เพื่อให้การปรับปรุงที่มีความหมาย หากต้องการเรียนรู้วิธีเริ่มต้น โปรดตรวจสอบ แนวทางการมีส่วนร่วม ของเราก่อน

มีหลายวิธีที่คุณสามารถมีส่วนร่วมกับ Haystack ได้:

  • มีส่วนร่วมกับโปรเจกต์ Haystack หลัก
  • มีส่วนร่วมในการรวมระบบบน haystack-core-integrations
  • มีส่วนร่วมกับเอกสารใน haystack/docs-website

องค์กรที่ใช้ Haystack

Haystack ถูกใช้โดยทีมงานหลายพันทีมที่สร้างระบบ AI สำหรับการผลิตในอุตสาหกรรมต่างๆ รวมถึง:

คุณกำลังใช้ Haystack อยู่ด้วยหรือไม่? เปิด PR หรือ บอกเล่าเรื่องราวของคุณให้เราฟัง

เอกสารโปรเจกต์

อ่านเอกสารต้นฉบับ

README วิธีติดตั้ง วิธีใช้งาน และข้อกำหนดจาก repository ต้นฉบับ

ดูไฟล์บน 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/CDTests types - Mypy Coverage badge Ruff
DocsWebsite
PackagePyPI PyPI - Downloads PyPI - Python Version Conda Version GitHub License Compliance HVTrust Evidence Grade OpenSSF Best Practices
MetaDiscord Twitter Follow

🎉🎊✨   Haystack 3.0 is out!   ✨🎊🎉

Read the announcement here!

🥳 🎈 🎆 🪅 🎇 🍾 🥂 🎁 🌈

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:

sh
pip install haystack-ai

Install nightly pre-releases to try the newest features:

sh
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

Agents built for production
Extend agent behavior with lifecycle hooks (before_llm, before_tool, on_exit, …) for guardrails and custom logic, and track step_count, token_usage, and tool calls out of the box for monitoring and cost control. Get started fast with ready-made agents from Agent Pack (e.g., a deep research agent, or an advanced RAG agent) or give your own agents progressive skill discovery via SkillToolset, so skill descriptions only enter context when needed.

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.

Native Async Support
One Pipeline runs synchronously or asynchronously and streams token by token. Agent can run concurrent tool calls.

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.

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

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.

เคล็ดลับ

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

#agent#agents#ai#gemini#generative-ai#gpt-4#information-retrieval#large-language-models#llm#machine-learning#nlp#orchestration