Integration Guides
TLDR:
This section provides resources for integrating the mixedbread API with frameworks like Haystack and LangChain. You'll find overviews, step-by-step guides, and code snippets to streamline the integration process.
What's inside
- Integration Overviews: Get a high-level understanding of how the mixedbread API integrates with various frameworks and services.
- Step-by-Step Guides: Follow along with detailed instructions for each integration process, ensuring a smooth implementation.
- Code Examples: Jump right in with practical code snippets in multiple programming languages. 💻
Haystack Integration
Haystack is the open-source Python framework by deepset for building custom apps with large language models (LLMs). It enables quick experimentation with the latest NLP models while providing flexibility and ease of use. Our inspiring community of users and builders has shaped Haystack into a complete framework for building production-ready NLP apps.
Integrating mixedbread with Haystack is a piece of cake! 🍰 Here's how to get started:
Getting Started
- Haystack Setup: Ensure you have Haystack installed and configured. Refer to Haystack's quickstart guide for setup instructions.
- Install the mixedbread Extension: Run
pip install mixedbread-ai-haystack
to install our Haystack extension. - Set Up Your mixedbread API Key: If you haven't already, sign up to obtain your mixedbread API key and store it securely.
- Configure Environment Variables: Set your
MIXEDBREAD_API_KEY
environment variable to your API key, or pass it directly to the constructor of the class you're using.
Code Examples 💻
Indexing Pipeline
Query Pipeline
Documentation 📚
LangChain Integration
Heads up! 🚨 We're in the process of changing our LangChain package name from "embaas" to "mixedbreadai". This will be a breaking change, so keep an eye out when integrating with LangChain.
LangChain is a powerful framework for building applications with language models.
Steps for Integration 🛠️
- LangChain Setup: Ensure you have LangChain installed and configured. Refer to LangChain's Quickstart Guide for setup instructions.
- Set Up Your mixedbread API Key: If you haven't already, sign up for your mixedbread API key and store it securely.
- Configure Environment Variables: For now, set your
EMBAAS_API_KEY
environment variable to your API key or pass it directly to the constructor. Stay tuned for the upcoming change toMIXEDBREADAI_API_KEY
.
Code Examples 💻
Text Embedding
Documentation 📚
Need a Hand? 🙋
If you encounter any issues or have questions about integrating the mixedbread API with these platforms, contact us or join our Discord community. We're here to help!