Skip to main content

Mixedbread AI Haystack Integration

PyPI version Python versions

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:

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)

Source distribution for mixedbread-ai-haystack 2.1.3
File Size Uploaded
mixedbread_ai_haystack-2.1.3.tar.gz 23.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mixedbread-ai-haystack 2.1.3
File Interpreter ABI Platform
mixedbread_ai_haystack-2.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2.1.3 This release

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page