Short CourseBeginner52 mins

Getting Started with Mistral

Instructor: Sophia Yang

Mistral AI logo
  • Beginner
  • 52 mins
  • 8 Video Lessons
  • 5 Code Examples
  • Instructor: Sophia Yang

What you'll learn

  • Explore Mistral’s three open source models (Mistral 7B, Mixtral 8x7B, and the latest Mixtral 8x22B), and three commercial models (small, medium, and large), which Mistral provides access to via web interface and API calls.

  • Leverage Mistral’s JSON mode to generate LLM responses in a structured JSON format, enabling integration of LLM outputs into larger software applications.

  • Use Mistral’s API to call user-defined Python functions for tasks like web searches or retrieving text from databases, enhancing the LLM’s ability to find relevant information to answer user queries.

About this course

In this course, you’ll access Mistral AI’s collection of open source and commercial models, including the Mixtral 8x7B model, and the latest Mixtral 8x22B. You’ll learn about selecting the right model for your use case, and get hands-on with features like effective prompting techniques, function calling, JSON mode, and Retrieval Augmented Generation (RAG).

In detail:

  • Access and prompt Mistral models via API calls for tasks, and decide whether your task is either a simple task (classification), medium (email writing), or advanced (coding) level of complexity, and consider speed requirements to choose an appropriate model.
  • Learn to use Mistral’s native function calling, in which you give an LLM tools it can call as needed to perform tasks that are better performed by traditional code, such as querying a database for numerical data.
  • Build a basic RAG system from scratch with similarity search, properly chunk data, create embeddings, and implement this tool as a function in your chat system.
  • Build a chat interface to interact with the Mistral models and ask questions about a document that you upload.

By the end of this course, you’ll be equipped to leverage Mistral AI’s leading open source and commercial models.

Who should join?

Course Outline

8 Lessons・5 Code Examples
  • Introduction

    Video3 mins
  • Overview

    Video6 mins
  • Prompting

    Video with Code Example9 mins
  • Model Selection

    Video with Code Example6 mins
  • Function Calling

    Video with Code Example10 mins
  • RAG from Scratch

    Video with Code Example9 mins
  • Chatbot

    Video with Code Example5 mins
  • Conclusion

    Video1 min

Instructor

Sophia Yang

Sophia Yang

Course access is free for a limited time during the DeepLearning.AI learning platform beta!

Want to learn more about Generative AI?

Keep learning with updates on curated AI news, courses, and events, as well as Andrew’s thoughts from DeepLearning.AI!