This repository contains the Jupyter notebooks used in the Getting Started with Mistral short course, created by DeepLearning.AI in collaboration with Mistral AI.
The notebooks here follow the modules in the course:
- Introduction & Overview – Explore Mistral model families
- Prompting – Learn prompting strategies for text, reasoning, and coding tasks
- Model Selection – Choose between Small, Medium, Large, and Mixtral models
- Function Calling – Connect models with external tools/APIs
- JSON Mode – Generate structured responses for downstream use
- RAG from Scratch – Build a retrieval pipeline with embeddings + vector search
- Chatbot – Create an interactive chatbot around Mistral models
Each notebook is self-contained and corresponds to a lesson in the course.
git clone https://github.com/sdivyanshu90/Getting-Started-with-Mistral.git
cd Getting-Started-with-MistralWe recommend Python 3.9+ and a virtual environment.
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activateYou’ll need a Mistral API key for running most notebooks. Set it as an environment variable:
export MISTRAL_API_KEY="your_api_key_here"(Windows PowerShell)
$env:MISTRAL_API_KEY="your_api_key_here"jupyter notebookOpen the notebook of your choice and start exploring 🚀
- Python 3.9 or above
- Jupyter Notebook or JupyterLab
This repo shares example notebooks for educational purposes, adapted from the official DeepLearning.AI x Mistral course. Please check the course terms of use before redistributing.
Happy learning, and enjoy building with Mistral models! 🚀