Skip to content

Watch the video I made of my first short look HERE

Mistral has updated their LLM chat interface called Le Chat, which I understand is French for The Cat.

Anyway, it is a chat interface to their generative artificial intelligence model, much like OpenAI's ChatGPT, and Anthropic's Claude. You can read more about the new capabilities of Le Chat HERE.

All you need is a free account (for now). I do a quick first test of Le Chat to look at how it produces simple Python code. Le Chat does not allow for the upload of a spreadsheet file, so instead, I tried to use it to solve a simple system of two linear equations in two unknown.

I do stress test the chat interface a bit by using LaTeX in my prompts and I also get it to use the symbolic Python package, sympy. A package that I absolutely love, but is not that commonly used in the broader context of Python use-cases.

I copy and paste the code into Visual Studio Code (after having set up a virtual Python environment in which I installed numpy, matplotlib, and sympy beforehand).

Le Chat did a good job in this small first test. It generated the two lines in the plane using matplotlib to show the unique solution (at the intersection of the lines). It generated the augmented matrix as I instructed, but then solved the system of linear equations using the solve method in sympy. After instructing Le Chat to rather calculate the reduced row-echelon form of the matrix using the sympy rref method, it did indeed that.

Check out the new Le Chat for yourself HERE or watch the short video I made of my first test below.

Image for this blog post.

The Python computer language is great at so many things. Many indices rank Python as the most popular computer language. It is great for data science, machine learning, and so many things.

Python is also great at mathematics. Not only the mathematics of numerical computation, but also the kind of symbolic mathematics that you find in your algebra and calculus textbooks.

Packages extend the Python language. The symbolic Python package sympy does just this. It extends Python with the capability to do symbolic mathematics.

While you can install Python on your local computer, you can also use it in your Google Drive without installing anything. Just as we have Google Docs and Google Sheets in our Google Drive, we also have Google Colaboratory. With a Google Colab document, we can write and typeset normal titles, paragraphs, and images, just like Google Docs. We also write Python code in these documents.

I have made a video about how to set up your Google Drive to use Python. More specifically, how to set up your Google Drive to use Python for mathematics.

The course material on An Introduction to Algebra for Health Data Science that I host on this blog uses Python for Mathematics. The course teaches algebra, but also adds Python code that gives you a deeper understanding of the material by allowing you to experiment with your algebra knowledge without having to do the tedious calculations.

You can watch the video HERE or just click below.