Skip to content

[Bug]: Adapt to MistralAI version migration #7633

Description

@Gwenn-LR

What happened?

Hi!

I have opened a pull request 3 months ago, but there had been no activity on it, so I open this issue.

MistralAI has deployed the version 2.0.0 of its python package on March 10th, introducing a change in its structure. One of the main changes is the switch from mistralai import Mistral to from mistralai.client import Mistral.

However, in chromadb/utils/embedding_functions/mistral_embedding_function.py, you make a check on MistralAI Python package by doing from mistralai import Mistral. This import/check does not work with Mistral python package v2.

My PR contains a suggestion on how to handle it. However, it might not be the cleanest implementation.

Versions

Chroma v1.5.9, Python 3.11.13

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions