Open
Conversation
Add a new cookbook notebook demonstrating how to use MiniMax M2.7 and M2.7-highspeed models with Haystack via the OpenAI-compatible API. The notebook covers: - Basic chat with MiniMax using OpenAIChatGenerator - Full RAG pipeline with InMemoryDocumentStore and embedding retrieval - Model comparison between M2.7 and M2.7-highspeed variants Also includes 34 tests (31 unit + 3 integration) validating notebook structure, MiniMax configuration, and API connectivity.
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a new cookbook notebook demonstrating how to use MiniMax large language models with Haystack via the OpenAI-compatible API.
What's included
notebooks/rag_with_minimax.ipynb— Cookbook notebook covering:OpenAIChatGeneratorInMemoryDocumentStore, sentence-transformer embeddings, and MiniMax as the generatorMiniMax-M2.7(204K context) andMiniMax-M2.7-highspeed(speed-optimized)index.toml— Added entry for the new notebooktests/test_rag_with_minimax.py— 34 tests (31 unit + 3 integration)Why MiniMax?
MiniMax provides models with a 204K context window accessible via an OpenAI-compatible API (
https://api.minimax.io/v1). This means no extra integration packages are needed — Haystack's built-inOpenAIChatGeneratorworks out of the box by settingapi_base_url.Key configuration
Test plan
scripts/verify_index.pypasses