Haystack 是开源 Python framework,帮助快速构建 search 与 question-answering agent。你连接数据源、选择语言模型,并设置 pipeline 以找到用户查询的最佳答案。Haystack 处理 indexing document、retrieving passage、运行 model 与 ranking result 等任务。它支持 Elasticsearch、OpenSearch、FAISS、Pinecone 等多种 backend,可从 laptop 扩展到 cluster。通过在 pipeline 中加入额外 node,可添加 summarization、translation 与 document chat。framework 还提供 REST API、web UI 与清晰 tutorial,便于在生产环境测试与部署 agent。