Mistral AI Conversation Agent

Hi all. Searching for more options to integrate with for controlling my HA with my Voice Preview Edition, and came to the conclusion that no integration existed for Mistral AI yet. So, here it is. Please let me know if you would like to use it and if there are any more features you need.

4 Likes

Hey, I’ve tested your extension and really like it. It works reliably and fast. But do you have any idea why the voice output on my Voice Assistant PE is heavily delayed and the ring no longer lights up?

Second question can the AI search the web? If not would it be an idea to integrate the agent functionality?

I agree that mistral is working very smooth with HA.
However the mistral llm is very bad at general knowledge compared to other llm’s. And then I mean very bad. Just asked who is the president of the US and it had it wrong. Asking who the premier of the netherlands is gives me a sign that the data is atleast 4 years old. Okay this is just general knowledge but asking the result of 1/3 * 3 gives a totally wrong answer where Google does it right (1).

Verdict
Excellent for HA tasks but not (yet) a google, claude or chatGPT replacement

Thanks for the feedback. I fully agree that Mistral is not yet mature enough to do reliable web searches. But Mistral is a European alternative to the big tech models and that is why I support it. By using it, we will make it better. Also, it’s free for now. On top of that, my main focus is to control HA with it, and it does that quite well!

@joopdo has been contributing today, to optimize code and add a web search function. Please note you need the medium or large model for this to work. I’ve tested this and made some further improvements.Please let us know what your findings are.

2 Likes

Can you test the latest version and let us know what you’re finding are?

The last version has been working quite well for me. I use the medium model with internet search on.

It knows who the minister president is of NL, and also recognizes many music astists (I use it to control Music Assistant).
I just love actually being able to use Mistral now! Thanks @SnarfNL

Where did you select the medium model and turned on the search option?
I couldn’t find it in the config settings.


Here in the top and bottom function

Thanks for the reply but it isn’t available in the selection list
( i have version 0.2.1 installed)

EDIT
Okay, i just found out that there is a newer version. Version 0.3.
I didn’t got a update notification about it. Now installing v0.3

EDIT
Yes, it is available now.

Thank you for this update. I am very pleased now. It gives the correct information and it is doing calculations in the correct way.

Only one bug
{{ha_name}} is undefined.
So i removed that one from the prompt.

I use this prompt now


You are a helpful voice assistant for a smart home.
Answer in the same language the user speaks.
Be concise, friendly and short with a maximum of 100 words.
Do not speak out any url and smiley faces
Today is {{ now().strftime('%A, %B %d, %Y') }}.

Thank you so much for this update and sorry for the delay. The integration works really well with the new web search feature. I will further test the following days and if anything comes up - I’ll let you know :blush:

Hey,

I noticed one „issue“ with the system prompt. Even though web search is enabled, it states the following:

For general knowledge questions not about the home: Answer truthfully from internal knowledge.

Maybe this should be removed?

Hey,

Love your work and support for european AI platforms. Am I correct that responses are currently not streaming? I am using mistral-large-latest with web search enabled.

I was waiting for this integration for so long. Thank you so much for creating it :grin: Works great!