JetBrains

Build a Local AI Assistant with LLMs

Obtenez l'une de nos meilleures offres avec Coursera Plus pour 199 $ (habituellement 399 $). Économisez maintenant.

Ce cours n'est pas disponible en Français (France)

Nous sommes actuellement en train de le traduire dans plus de langues.
JetBrains

Build a Local AI Assistant with LLMs

JetBrains Academy team

Instructeur : JetBrains Academy team

Inclus avec Coursera Plus

Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Intermédiaire

Expérience recommandée

2 semaines à compléter
à 10 heures par semaine
Planning flexible
Apprenez à votre propre rythme
Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Intermédiaire

Expérience recommandée

2 semaines à compléter
à 10 heures par semaine
Planning flexible
Apprenez à votre propre rythme

Ce que vous apprendrez

  • Build a local AI assistant using LLMs, vector search, and a browser UI.

  • Process PDFs into searchable chunks and generate embeddings for semantic retrieval.

  • Create FastAPI endpoints for indexing, querying, and OpenAI-compatible chat.

  • Generate grounded answers from your own documents with clear source attribution.

Compétences que vous acquerrez

  • Catégorie : Embeddings
  • Catégorie : Machine Learning Methods
  • Catégorie : API Design
  • Catégorie : Artificial Intelligence and Machine Learning (AI/ML)
  • Catégorie : Machine Learning Algorithms
  • Catégorie : Generative AI Agents
  • Catégorie : Data Science
  • Catégorie : Artificial Intelligence
  • Catégorie : Retrieval-Augmented Generation
  • Catégorie : Large Language Modeling
  • Catégorie : LLM Application
  • Catégorie : AI Integrations
  • Catégorie : Agentic systems

Outils que vous découvrirez

  • Catégorie : Vector Databases
  • Catégorie : Integrated Development Environments
  • Catégorie : Python Programming
  • Catégorie : Agentic Workflows
  • Catégorie : Generative AI
  • Catégorie : OpenAI API
  • Catégorie : Docker (Software)

Détails à connaître

Certificat partageable

Ajouter à votre profil LinkedIn

Récemment mis à jour !

juin 2026

Évaluations

1 devoir

Enseigné en Anglais

Découvrez comment les employés des entreprises prestigieuses maîtrisent des compétences recherchées

 logos de Petrobras, TATA, Danone, Capgemini, P&G et L'Oreal

Il y a 6 modules dans ce cours

In this module, you’ll set up your local environment and make your first call to a large language model. You’ll learn what LLMs are, why local inference is crucial for privacy and experimentation, and how Docker helps you run the system reliably across different machines. You’ll explore the core architecture of the course project, understand the API layer and the role of HTTP and JSON, and write your first Python function that talks to the model. By the end of this module, you’ll have a working local LLM request flowing through your own API.

Inclus

6 vidéos3 lectures1 devoir de programmation

In this module, you’ll build and configure the API layer that powers the project. You’ll learn how FastAPI structures endpoints, request models, and validation, how the server communicates with Ollama, and why the OpenAI chat format has become the industry standard. You’ll also work with async requests, system prompts, multi-turn conversations, and automated testing using pytest and FastAPI’s TestClient. By the end of this module, you’ll understand how the chat API works from request to response and how to verify it with tests.

Inclus

3 vidéos1 lecture1 devoir de programmation

In this module, you’ll move from model calls to document processing. You’ll extract text from PDFs, see why PDF parsing is harder than it looks, and learn how to split long documents into retrieval-friendly chunks. You’ll compare chunk sizes, master overlap strategies, and build a document pipeline that attaches critical metadata like source file names and chunk positions. By the end of this module, you’ll be able to turn any PDF into structured chunks that are ready for indexing.

Inclus

3 vidéos1 lecture1 devoir de programmation

In this module, you’ll make text searchable by meaning. You’ll learn what embeddings are, how cosine similarity measures semantic closeness, and why vector databases differ from traditional databases. Then, you’ll connect these ideas in code by generating vectors with an embedding model, storing them in Qdrant, and implementing the indexing endpoint that ties document chunks to vector storage. By the end of this module, your documents will be embedded, stored, and ready for retrieval.

Inclus

2 vidéos1 lecture1 devoir de programmation

In this module, you’ll close the RAG loop. You’ll explore the two core phases of RAG – retrieval and generation – and see how a user’s question becomes a vector, how relevant chunks are selected, and how prompt structure guides the model to answer strictly from context. Then, you’ll implement the query endpoint, tune parameters like Top-K and score thresholds, and return answers with clear sources. By the end of this module, your system will answer questions accurately, grounded entirely in your indexed documents.

Inclus

2 vidéos1 lecture1 devoir de programmation

In this module, you’ll give your project a browser interface and make it demo-ready. You’ll learn how to add a lightweight web UI with HTMX and FastAPI, render templates and HTML fragments, and connect the form-based interface to the same RAG logic you built earlier. You’ll also see how to test the full user flow in the browser and turn your backend project into something easy to share with others. By the end of this module, you’ll have a complete local AI assistant with a usable web interface.

Inclus

1 vidéo2 lectures1 devoir1 devoir de programmation

Instructeur

JetBrains Academy team
JetBrains
6 Cours127 728 apprenants

Offert par

JetBrains

En savoir plus sur Machine Learning

Pour quelles raisons les étudiants sur Coursera nous choisissent-ils pour leur carrière ?

Felipe M.

Étudiant(e) depuis 2018
’Pouvoir suivre des cours à mon rythme à été une expérience extraordinaire. Je peux apprendre chaque fois que mon emploi du temps me le permet et en fonction de mon humeur.’

Jennifer J.

Étudiant(e) depuis 2020
’J'ai directement appliqué les concepts et les compétences que j'ai appris de mes cours à un nouveau projet passionnant au travail.’

Larry W.

Étudiant(e) depuis 2021
’Lorsque j'ai besoin de cours sur des sujets que mon université ne propose pas, Coursera est l'un des meilleurs endroits où se rendre.’

Chaitanya A.

’Apprendre, ce n'est pas seulement s'améliorer dans son travail : c'est bien plus que cela. Coursera me permet d'apprendre sans limites.’

Foire Aux Questions