Skills2026年4月2日·1 分钟阅读
Haystack — Production RAG & Agent Framework
Build composable AI pipelines for RAG, agents, and search. Model-agnostic, production-ready, by deepset. 18K+ stars.
TO
TokRepo精选 · Community
快速使用
先拿来用,再决定要不要深挖
这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。
```bash
pip install haystack-ai
```
```python
from haystack import Pipeline
from haystack.components.generators import OpenAIGenerator
from haystack.components.builders import PromptBuilder
prompt = PromptBuilder(template="Answer: {{question}}")
llm = OpenAIGenerator(model="gpt-4o")
pipe = Pipeline()
pipe.add_component("prompt", prompt)
pipe.add_component("llm", llm)
pipe.connect("prompt", "llm")
result = pipe.run({"prompt": {"question": "What is RAG?"}})
print(result["llm"]["replies"][0])
```
🙏
来源与感谢
- GitHub: [deepset-ai/haystack](https://github.com/deepset-ai/haystack)
- License: Apache 2.0
- Stars: 18,000+
- Maintainer: deepset GmbH
Thanks to the deepset team for building the most production-oriented RAG framework, proving that AI pipelines can be both composable and reliable enough for enterprise deployment.
讨论
登录后参与讨论。
还没有评论,来写第一条吧。
相关资产
LaVague — Natural Language Web Automation
Give a text objective, LaVague drives the browser to accomplish it. Large Action Model framework for web agents. 6.3K+ stars.
TokRepo精选
Trae Agent — AI Coding Agent by ByteDance
Open-source autonomous coding agent for software engineering tasks. Multi-provider LLM support. By ByteDance. 11K+ stars.
TokRepo精选
bolt.diy — AI Full-Stack App Builder, Any LLM
Community fork of Bolt.new. Prompt, edit, and deploy full-stack web apps with any LLM provider. 19K+ GitHub stars.
TokRepo精选