-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: #6499 Mistral AI Embedding Connector #7122
Merged
eavanvalkenburg
merged 24 commits into
microsoft:main
from
nmoeller:issue-6499-Mistral-Ai-Connector-embeddings
Aug 5, 2024
Merged
Python: #6499 Mistral AI Embedding Connector #7122
eavanvalkenburg
merged 24 commits into
microsoft:main
from
nmoeller:issue-6499-Mistral-Ai-Connector-embeddings
Aug 5, 2024
Conversation
This file contains 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
markwallace-microsoft
added
the
python
Pull requests for the Python Semantic Kernel
label
Jul 6, 2024
github-actions
bot
changed the title
#6499 Mistral AI Embedding Connector
Python: #6499 Mistral AI Embedding Connector
Jul 6, 2024
nmoeller
commented
Jul 6, 2024
…github.com/nmoeller/semantic-kernel into issue-6499-Mistral-Ai-Connector-embeddings
…-Connector-embeddings
moonbox3
approved these changes
Jul 15, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for doing this
python/semantic_kernel/connectors/ai/mistral_ai/services/mistral_ai_text_embedding.py
Outdated
Show resolved
Hide resolved
python/semantic_kernel/connectors/ai/mistral_ai/services/mistral_ai_text_embedding.py
Outdated
Show resolved
Hide resolved
…-Connector-embeddings
…github.com/nmoeller/semantic-kernel into issue-6499-Mistral-Ai-Connector-embeddings
…-Connector-embeddings
python/semantic_kernel/connectors/ai/mistral_ai/services/mistral_ai_text_embedding.py
Outdated
Show resolved
Hide resolved
python/semantic_kernel/connectors/ai/mistral_ai/services/mistral_ai_text_embedding.py
Outdated
Show resolved
Hide resolved
…github.com/nmoeller/semantic-kernel into issue-6499-Mistral-Ai-Connector-embeddings
python/semantic_kernel/connectors/ai/mistral_ai/services/mistral_ai_text_embedding.py
Outdated
Show resolved
Hide resolved
python/semantic_kernel/connectors/ai/mistral_ai/services/mistral_ai_text_embedding.py
Outdated
Show resolved
Hide resolved
…al_ai_text_embedding.py Co-authored-by: Eduard van Valkenburg <[email protected]>
eavanvalkenburg
approved these changes
Aug 5, 2024
Python Test Coverage Report
Python Unit Test Overview
|
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Aug 5, 2024
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Aug 5, 2024
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Aug 5, 2024
LudoCorporateShark
pushed a commit
to LudoCorporateShark/semantic-kernel
that referenced
this pull request
Aug 25, 2024
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> 1. Why is this changed required ? To enable Mistral Models with Semantic Kernel, there was the issue microsoft#6499 in the Backlog to add a MistralAI Connector 2. What problem does it solve ? It solves the problem, that semantic kernel is not yet integrated with MistralAI 3. What scenario does it contribute to? The scenario is to use different connector than HF,OpenAI or AzureOpenAI. When User's want to use Mistral they can easliy integrate it now 4. If it fixes an open issue, please link to the issue here. microsoft#6499 ### Description The changes made are designed by the open_ai connector, i tried to stay as close as possible to the structure. For the integration i installed the mistral python package in the repository. I added the following Classes : - MistralAITextEmbedding --> Responsible to generate the Embeddings **To test the changes with the tests please add MISTRALAI_API_KEY and MISTRALAI_EMBEDDING_ID as Enviorment Variable** What is integrated yet : - [X] Integrate Mistral AI Embedding - [x] Extended Testing including Unit Testing & More Integration Tests ### Some Notes - Integration Tests are skipped when the environment variables are not to not break the current Integration Tests - an Additional Settings Class was not necessary because there are no settings in [Mistral Embeddings](https://github.com/mistralai/client-python/blob/c2bfb767f2222f4efc798f3cb9c19c9ab20b9029/src/mistralai/async_client.py#L290) ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [X] The code builds clean without any errors or warnings - [X] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [X] All unit tests pass, and I have added new tests where possible - [X] I didn't break anyone 😄 --------- Co-authored-by: Nico Möller <[email protected]> Co-authored-by: Eduard van Valkenburg <[email protected]>
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.
Motivation and Context
To enable Mistral Models with Semantic Kernel, there was the issue Python: Add Mistral AI Connector #6499 in the Backlog to add a MistralAI Connector
It solves the problem, that semantic kernel is not yet integrated with MistralAI
The scenario is to use different connector than HF,OpenAI or AzureOpenAI. When User's want to use Mistral they can easliy integrate it now
Python: Add Mistral AI Connector #6499
Description
The changes made are designed by the open_ai connector, i tried to stay as close as possible to the structure.
For the integration i installed the mistral python package in the repository.
I added the following Classes :
To test the changes with the tests please add MISTRALAI_API_KEY and MISTRALAI_EMBEDDING_ID as Enviorment Variable
What is integrated yet :
Some Notes
Contribution Checklist