Scripts2026年4月6日·1 分钟阅读

Haystack — Open-Source RAG & Agent Framework

Production-ready Python framework for building RAG pipelines, search systems, and AI agents with composable components. By deepset. Supports 30+ integrations. 20,000+ GitHub stars.

SC
Script Depot · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

pip install haystack-ai
from haystack import Pipeline
from haystack.components.generators import OpenAIGenerator
from haystack.components.builders import PromptBuilder

pipeline = Pipeline()
pipeline.add_component("prompt", PromptBuilder(template="回答: {{query}}"))
pipeline.add_component("llm", OpenAIGenerator())
pipeline.connect("prompt", "llm")
result = pipeline.run({"prompt": {"query": "什么是 RAG?"}})

简介

Haystack 是 deepset 团队开发的生产级 Python 框架,GitHub 20,000+ stars。用于构建 RAG 管道、搜索系统和 AI Agent,采用可组合的管道架构。支持 30+ 集成,包括 OpenAI、Anthropic、Pinecone、Elasticsearch 等。适合构建需要灵活性的生产搜索和检索系统。


🙏

来源与感谢

Created by deepset. Licensed under Apache 2.0.

haystack — ⭐ 20,000+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产