Mixedbread AI Haystack Integration
Mixedbread AI integration for Haystack. This package provides seamless access to Mixedbread's multimodal AI capabilities, enabling intelligent search that understands meaning across text, images, code, PDFs, and diverse document types. Use our state of the art embedding and reranking models as part of your haystack workflows.
Components
- MixedbreadTextEmbedder - State-of-the-art embedding models that generate vectors capturing deep contextual meaning for single texts and queries
- MixedbreadDocumentEmbedder - Embed full documents using advanced embedding models
- MixedbreadReranker - Powerful semantic reranking that significantly boosts search relevance
- MixedbreadDocumentParser - Layout-aware document parsing supporting PDF, PPTX, HTML and more formats
- MixedbreadVectorStoreRetriever - AI-native search engine that enables conversational queries across multimodal data
Installation
pip install mixedbread-ai-haystack
Quick Start
Get your API key from the Mixedbread Platform and set it as an environment variable:
export MXBAI_API_KEY="your-api-key"
Basic Usage
from mixedbread_ai_haystack import MixedbreadTextEmbedder
embedder = MixedbreadTextEmbedder(model="mixedbread-ai/mxbai-embed-large-v1")
result = embedder.run(text="What is the capital of France?")
embedding = result["embedding"]
Async Support
All components support async operations:
import asyncio
async def embed_text():
embedder = MixedbreadTextEmbedder()
result = await embedder.run_async(text="Async embedding example")
return result["embedding"]
embedding = asyncio.run(embed_text())
Examples
See the examples/ directory for complete usage examples:
- Embedders - Text and document embedding
- Reranker - Document reranking
- Document Parser - File parsing
- Vector Retriever - Vector-based search
Testing
# Install dev dependencies
pip install -e .[dev]
# Run all tests
python run_tests.py all
# Run only unit tests
python run_tests.py unit
# Run only integration tests (requires API key)
python run_tests.py integration
# Run specific test files
python run_tests.py tests/test_text_embedder.py
Documentation
Learn more at mixedbread.com/docs:
License
Apache 2.0 License
Metadata
Release files for mixedbread-ai-haystack 2.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mixedbread_ai_haystack-2.1.3.tar.gz | 23.8 kB | Without provenance | Details for mixedbread_ai_haystack-2.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mixedbread_ai_haystack-2.1.3-py3-none-any.whl | Python 3 | none | any | Details for mixedbread_ai_haystack-2.1.3-py3-none-any.whl |
Total release size: 57.9 kB
Release files / mixedbread_ai_haystack-2.1.3.tar.gz
| Download URL | mixedbread_ai_haystack-2.1.3.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
476322bf979335c54aed4e5d893077eef4989f408ead9d67a763d4fbdc5923ad
|
|
BLAKE2b-256 checksum How to use checksums |
57ad6ab246b67c32b2e6bdeec184e417451b77f1bc1f399801e627033c7da67c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / mixedbread_ai_haystack-2.1.3-py3-none-any.whl
| Download URL | mixedbread_ai_haystack-2.1.3-py3-none-any.whl |
|---|---|
| Size | 34.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f370b4a1ddbc3fe46560ae537270f9844c3f6b8e5b9dc4bed894ce8fed465935
|
|
BLAKE2b-256 checksum How to use checksums |
ccf45aa6b4075938d9fef424e0d02f51d80076da0d565b9dd17617cdf04a22da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for mixedbread-ai-haystack 2.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.