mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
1 line
2.5 KiB
JSON
1 line
2.5 KiB
JSON
{"text":["Integrations","Haystack","🌾","Frameworks","Use Hanzo AI with Haystack","Build NLP pipelines and RAG systems with Haystack. Point OpenAIChatGenerator at api.hanzo.ai/v1, name a Hanzo model, and the pipeline runs unchanged.","Base URL:","https://api.hanzo.ai/v1","Get yours at","Fully OpenAI-compatible","400+ models","available","API Key:","platform.hanzo.ai/api-keys","Created by","deepset.ai","License:","Apache-2.0","View source on GitHub →","Hanzo AI is OpenAI-compatible, so existing Haystack code works with zero refactoring. We deeply appreciate the deepset.ai team for building and maintaining this open-source project.","Haystack + Hanzo","python","pip install haystack-ai","from","haystack","components","generators","chat","import","OpenAIChatGenerator","dataclasses","ChatMessage","utils","Secret","generator = OpenAIChatGenerator","model=","zen4-pro","api_key=Secret","from_token","your-hanzo-api-key","),","api_base_url=","messages =","from_user","What is RAG?",")]","result = generator","run","messages=messages","RAG pipeline","Pipeline","builders","PromptBuilder","prompt_template =","\"\"\"","Context: {% for doc in documents %}{{ doc.content }}{% endfor %}","Question: {{ question }}","Answer:","pipeline = Pipeline","()","pipeline","add_component","prompt","template=prompt_template","))","llm","Embeddings","embedders","OpenAITextEmbedder","embedder = OpenAITextEmbedder","openai/text-embedding-3-large","Install","bash","pip","install","haystack-ai","export","HANZO_API_KEY=","Ready to get started?","Create a free account and get your API key. The Free plan includes free model requests and Kai decisions, no card.","Get API key — Free","Browse Models","More integrations","OpenAI Python SDK","Anthropic SDK","LangChain","LlamaIndex","Vercel AI SDK","Hugging Face","AutoGen","CrewAI","DSPy","Cursor","Continue.dev","GitHub Copilot","Docker","Kubernetes","Python","TypeScript","Go","Rust"],"links":["/integrations","https://platform.hanzo.ai/api-keys","https://haystack.deepset.ai","https://github.com/deepset-ai/haystack","/models","/integrations/openai-sdk","/integrations/anthropic-sdk","/integrations/langchain","/integrations/llamaindex","/integrations/vercel-ai-sdk","/integrations/huggingface","/integrations/autogen","/integrations/crewai","/integrations/dspy","/integrations/cursor","/integrations/continue-dev","/integrations/github-copilot","/integrations/docker","/integrations/kubernetes","/integrations/python","/integrations/typescript","/integrations/go","/integrations/rust"]} |