Overview
Haystack is deepset’s open-source Python framework for building production LLM applications, RAG pipelines and agents. Eden AI ships as an official Haystack integration (theedenai-haystack package), so your pipelines reach models from OpenAI, Anthropic, Google, Mistral and 500+ more behind one key, with EU-based, GDPR-aligned inference.
The integration provides three components:
EdenAIChatGeneratorfor chat completionEdenAITextEmbedderto embed a query stringEdenAIDocumentEmbedderto embed documents for indexing
provider/model naming convention, for example anthropic/claude-sonnet-4-5 or mistral/mistral-large-latest.
Installation
Quick Start
Set your key, then generate a chat response with theEdenAIChatGenerator:
EDENAI_API_KEY environment variable by default.
Switching models
Change providers by changing themodel string. Every Eden AI model is reachable the same way:
Streaming
Pass astreaming_callback to stream tokens as they are generated:
Embeddings and RAG
UseEdenAITextEmbedder to embed a query and EdenAIDocumentEmbedder to embed documents, so you can build a fully sovereign RAG stack (retrieval and generation) on EU-hosted models:
Available Models
Use theprovider/model format for any Eden AI model:
Chat
openai/gpt-4o-minianthropic/claude-sonnet-4-5mistral/mistral-large-latestgoogle/gemini-2.5-flash
openai/text-embedding-3-smallmistral/mistral-embed
Environment Variables
Next Steps
- Chat Completions - Core LLM endpoint
- List LLM Models - Browse available providers and models
- aisuite - Another unified LLM interface
- LangChain - Build LLM apps with LangChain