deepset-ai/haystack

GitHub: deepset-ai/haystack

Haystack 是一个用于构建生产级 LLM 应用(如 RAG 和 Agent)的开源 AI 编排框架,让开发者能够以模块化、透明的方式精确控制检索、路由、记忆与生成流程。

Stars: 25899 | Forks: 2922

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 | [![测试](https://static.pigsec.cn/wp-content/uploads/repos/cas/09/097271ca091990be630ef6043309cc48240faa054413384202036fa2efedb2d2.svg)](https://github.com/deepset-ai/haystack/actions/workflows/tests.yml) [![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)](https://github.com/python/mypy) [![覆盖率徽章](https://raw.githubusercontent.com/deepset-ai/haystack/python-coverage-comment-action-data/badge.svg)](https://htmlpreview.github.io/?https://github.com/deepset-ai/haystack/blob/python-coverage-comment-action-data/htmlcov/index.html) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) | | 文档 | [![网站](https://img.shields.io/website?label=documentation&up_message=online&url=https%3A%2F%2Fdocs.haystack.deepset.ai)](https://docs.haystack.deepset.ai) | | 包 | [![PyPI](https://img.shields.io/pypi/v/haystack-ai)](https://pypi.org/project/haystack-ai/) ![PyPI - 下载量](https://img.shields.io/pypi/dm/haystack-ai?color=blue&logo=pypi&logoColor=gold) ![PyPI - Python 版本](https://img.shields.io/pypi/pyversions/haystack-ai?logo=python&logoColor=gold) [![Conda 版本](https://img.shields.io/conda/vn/conda-forge/haystack-ai.svg)](https://anaconda.org/conda-forge/haystack-ai) [![GitHub](https://img.shields.io/github/license/deepset-ai/haystack?color=blue)](LICENSE) [![许可证合规性](https://static.pigsec.cn/wp-content/uploads/repos/cas/45/458ba356965ba54c62f3d6604e77167effa9a36b643a4560cb7b17b791083a64.svg)](https://github.com/deepset-ai/haystack/actions/workflows/license_compliance.yml) [![HVTrust](https://hvtracker.net/badge/haystack.svg)](https://hvtracker.net/agents/haystack/) [![证据等级](https://hvtracker.net/badge/haystack-grade.svg)](https://hvtracker.net/agents/haystack/) [![OpenSSF 最佳实践](https://www.bestpractices.dev/projects/13067/badge)](https://www.bestpractices.dev/projects/13067)| | 元信息 | [![Discord](https://img.shields.io/discord/993534733298450452?logo=discord)](https://discord.com/invite/qZxjM4bAHU) [![Twitter 关注](https://img.shields.io/twitter/follow/haystack_ai)](https://twitter.com/haystack_ai) |
[Haystack](https://haystack.deepset.ai/) 是一个开源的 AI 编排框架,用于使用 Python 构建生产级 LLM 应用程序。 设计模块化 pipeline 和 agent 工作流,显式控制检索、路由、记忆和生成。在一个透明的架构中构建可扩展的 RAG 系统、多模态应用程序、语义搜索、问答和自主 agent,让您能够进行实验、深度自定义并充满信心地部署。 ## 目录 - [安装](#installation) - [文档](#documentation) - [功能](#features) - [Haystack 企业版:支持与平台](#haystack-enterprise-support--platform) - [遥测](#telemetry) - [🖖 社区](#-community) - [为 Haystack 贡献代码](#contributing-to-haystack) - [使用 Haystack 的组织](#organizations-using-haystack) ## 安装 获取 Haystack 最简单的方法是通过 pip: ``` pip install haystack-ai ``` 安装每日预发布版以体验最新功能: ``` pip install --pre haystack-ai ``` Haystack 支持多种安装方式,包括 Docker 镜像。有关全面的指南,请参阅 [文档](https://docs.haystack.deepset.ai/docs/installation)。 ## 文档 如果您刚接触本项目,请查看[“什么是 Haystack?”](https://haystack.deepset.ai/overview/intro),然后 阅读[“入门指南”](https://haystack.deepset.ai/overview/quick-start),几分钟内即可构建您的首个 LLM 应用程序。 通过[教程](https://haystack.deepset.ai/tutorials)继续学习。如需更高级的用例,或者仅仅是为了寻找一些灵感,您可以浏览我们在 [Cookbook](https://haystack.deepset.ai/cookbook) 中的 Haystack 实用方案。 随时查阅[文档](https://docs.haystack.deepset.ai/docs/intro)以了解更多关于 Haystack 的信息、它能为您做什么以及其背后的技术。 ## 功能 **为上下文工程而生** 设计灵活的系统,显式控制信息在到达模型之前如何被检索、排序、过滤、组合、结构化和路由。定义 pipeline 和 agent 工作流,让检索、记忆、工具和生成过程透明且可追溯。 **与模型和供应商无关** 与 OpenAI、Mistral、Anthropic、Cohere、Hugging Face、Azure OpenAI、AWS Bedrock、本地模型及更多其他模型集成。无需重写系统即可更换模型或基础设施组件。 **模块化且可自定义** 使用内置的检索、索引、工具调用、记忆和评估组件,或者创建您自己的组件。添加循环、分支和条件逻辑,精确控制在您的 pipeline 和 agent 工作流中上下文是如何流转的。 **可扩展的生态系统** 通过一致的接口构建和分享自定义组件,使社区和第三方能够轻松扩展 Haystack 并为一个开放的生态系统做出贡献。 ## 遥测 在 [Haystack 文档](https://docs.haystack.deepset.ai/docs/telemetry)中阅读有关 Haystack 中遥测的更多信息或如何选择退出。 ## 使用 Haystack 的组织 Haystack 被数千个跨行业构建生产级 AI 系统的团队使用,包括: - **科技与 AI 基础设施**:[Apple](https://www.apple.com/)、[Meta](https://www.meta.com/about)、[Databricks](https://www.databricks.com/)、[NVIDIA](https://developer.nvidia.com/blog/reducing-development-time-for-intelligent-virtual-assistants-in-contact-centers/)、[Intel](https://github.com/intel/open-domain-question-and-answer#readme) - **公共部门 AI 计划**:[European Commission](https://commission.europa.eu/index_en)、[German Federal Ministry of Research, Technology, and Space (BMFTR)](https://www.deepset.ai/case-studies/german-federal-ministry-research-technology-space-bmftr)、[PD, Baden-Württemberg State](https://www.pd-g.de/) - **企业与工业 AI 应用**:[Airbus](https://www.deepset.ai/case-studies/airbus)、[Lufthansa Industry Solutions](https://haystack.deepset.ai/blog/lufthansa-user-story)、[Infineon](https://www.infineon.com/)、[LEGO](https://github.com/larsbaunwall/bricky#readme)、[Comcast](https://arxiv.org/html/2405.00801v2)、[Accenture](https://www.accenture.com/)、[TELUS Agriculture & Consumer Goods](https://www.telus.com/agcg/en) - **知识与内容平台**:[Netflix](https://netflix.com)、[ZEIT Online](https://www.deepset.ai/case-studies/zeit-online)、[Rakuten](https://www.rakuten.com/)、[Oxford University Press](https://corp.oup.com/)、[Manz](https://www.deepset.ai/case-studies/manz)、[YPulse](https://www.deepset.ai/case-studies/ypulse) 您也在使用 Haystack 吗?提交 PR 或[告诉我们您的故事](https://forms.gle/Mm3G1aEST3GAH2rn8)
标签:请求拦截, 逆向工具