second-brain-ai-assistant-course

decodingai-magazineMIT更新放缓

一套实战课程,教你用 LLM、Agent、RAG、微调和 LLMOps 搭建个人第二大脑 AI 助手,覆盖从数据工程到部署的完整链路。

Learn to build your Second Brain AI assistant with LLMs, agents, RAG, fine-tuning, LLMOps and AI systems techniques.

暂无版本3,135star +3 / 7 天528fork同步于 2026-11-10 17:43 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/decodingai-magazine/second-brain-ai-assistant-course
硬件要求按 README 说明

现代笔记本或 PC 即可,GPU 可选,课程提供云端替代方案;README 未给出具体显存要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用 LLM、RAG 和 Agent 从零搭建个人第二大脑 AI 助手的开源实战课程

一套实战课程,教你用 LLM、Agent、RAG、微调和 LLMOps 搭建个人第二大脑 AI 助手,覆盖从数据工程到部署的完整链路。

核心能力

  • 6 个模块覆盖数据 ETL、微调、RAG 与 LLMOps 全链路
  • 用 ZenML 编排离线管道并用 Opik 评估 RAG 效果
  • 用 Unsloth 微调 Llama 3.1 8B 并部署为实时 API
  • 实现上下文检索与父级检索等进阶 RAG 技术
  • 用 smolagents 构建 Agent 推理与观测管道

容易踩的坑

运行代码需自备 OpenAI API 等付费服务,预算约 1~5 美元;Notion 数据需从公开 S3 快照下载,无需 Notion 账号;离线与在线两个应用需分别按其文档单独配置环境。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    📖 About This Course

    This course is part of Decoding AI's open-source series, teaching you how to build production-ready GenAI systems using LLMs, RAG, agents and LLMOps.

    The Second Brain AI Assistant course contains 6 modules that will teach you how to build an advanced RAG and LLM system using LLMOps and ML systems best practices. You'll learn to build an end-to-end AI assistant that chats with your Second Brain - your personal knowledge base of notes, resources, and storage.

    By the end of this course, you'll be able to architect and implement a production-ready agentic RAG and LLM system from scratch.

    So What Is the Second Brain AI Assistant?

    The Second Brain, a concept by Tiago Forte, is your personal knowledge base of notes, ideas, and resources. Our AI Assistant leverages this knowledge to answer questions, summarize documents, and provide insights.

    Imagine asking your AI Assistant to recommend agent courses, list top PDF parsing tools, or summarize LLM optimization methods - all based on your research, without manually searching through notes.

    While we use Notion for this course, the code is adaptable to other sources like Google Drive or Calendar. We'll provide our curated AI/ML resource list from Notion, covering GenAI, LLMs, RAG, MLOps, and more. No Notion account needed - but if you want to use yours, our flexible pipeline supports any Notion database.

    What You'll Do:

    • Build an agentic RAG system powered by your Second Brain
    • Design production-ready LLM architectures
    • Apply LLMOps and software engineering best practices
    • Fine-tune and deploy LLMs
    • Use industry tools: OpenAI, Hugging Face, MongoDB, ZenML, Opik, Comet, Unsloth, and more

    After completing this course, you'll have access to your own Second Brain AI assistant, as seen in the video below:


    🎯 What You'll Learn

    While building the Second Brain AI assistant, you'll master:

    • LLM system architecture (FTI) and MLOps best practices
    • Pipeline orchestration and tracking with ZenML
    • LLMOps and RAG evaluation using Opik
    • Large-scale web crawling and content normalization
    • Quality scoring with LLMs and heuristics
    • Dataset generation through distillation
    • Llama model fine-tuning with Unsloth and Comet
    • Serverless model deployment to Hugging Face
    • Advanced RAG with contextual or parent retrieval and vector search
    • Agent building using smolagents
    • Modern Python tooling (uv, ruff)

    🥷 With these skills, you'll become a ninja in building advanced agentic RAG and LLM systems using LLMOps and ML systems best practices.

    👥 Who Should Join?

    People interested in learning how to design and build LLM/RAG applications and systems.

    This course is tailored for people who learn by building. After completing the course, you will have your own code template and enough inspiration to develop your personal GenAI applications.

    Target AudienceWhy Join?
    ML/AI EngineersBuild production-ready agentic RAG & LLM systems (beyond Notebook tutorials).
    Data/Software EngineersArchitect end-to-end agentic RAG and LLM applications.
    Data ScientistsImplement production AI systems using LLMOps and SWE best practices.

    🎓 Prerequisites

    CategoryRequirements
    Skills- Python (Intermediate) - Machine Learning, LLMs, RAG (Beginner)
    HardwareModern laptop/PC (GPU optional - cloud alternatives provided)
    LevelIntermediate (But with a little sweat and patience, anyone can do it)

    💰 Cost Structure

    The course is open-source and free! You'll only need $1-$5 for tools if you run the code:

    ServiceMaximum Cost
    OpenAI's API~$3
    Hugging Face's Dedicated Endpoints (Optional)~$2

    The best part? We offer multiple paths - you can complete the entire course for just ~$1 by choosing cost-efficient options. Reading-only? Everything's free!

    🥂 Open-source Course: Participation is Open and Free

    As an open-source course, you don't have to enroll. Everything is self-paced, free of charge and with its resources freely accessible at:

    📚 Course Outline

    This open-source course consists of 6 comprehensive modules covering theory, system design, and hands-on implementation.

    Read this for a quick walkthrough of what you will learn in each module.

    Our recommendation for getting the most out of this course:

    1. Clone the repository.
    2. Read the materials.
    3. Set up the code and run it to replicate our results.
    4. Go deeper into the code to understand the implementation details.
    ModuleMaterialsDescriptionRunning the code
    0Modules OverviewQuick walkthrough over what you will learn in each module.No code
    1Build your Second Brain AI assistantArchitect an AI assistant for your Second Brain.No code
    2Data pipelines for AI assistantsBuild a data ETL pipeline to process custom Notion data, crawl documents, compute a quality score using LLMs & heuristics, and ingest them into a document database.apps/second-brain-offline
    3From noisy docs to fine-tuning datasetsUse the Notion and crawled data to generate a high-quality summarization instruct dataset using distillation.apps/second-brain-offline
    4Playbook to fine-tune and deploy LLMsFine-tune an open-source LLM (Llama 3.1 8B) to specialize in summarizing documents. Deploy it as a real-time API endpoint.apps/second-brain-offline
    5Build RAG pipelines that actually workImplement a modular RAG feature pipeline using advanced techniques such as context and parent retrieval.apps/second-brain-offline
    6LLMOps for production agentic RAGImplement the RAG agentic inference pipeline and an observation pipeline to monitor and evaluate the performance of the AI assistant.apps/second-brain-online

    🏗️ Project Structure

    While building the Second Brain AI assistant, we will build two separate Python applications:

    .
    ├── apps / 
    |   ├── infrastructure/           # Docker infrastructure for the applications
    |   ├── second-brain-offline/     # Offline ML pipelines
    └─  └── second-brain-online/      # Online inference pipeline = our AI assistant
    

    👔 Dataset

    We will use our personal list of filtered resources (which we keep in Notion) on AI and ML, such as GenAI, LLMs, RAG, MLOps, LLMOps and information retrieval, containing ~100 pages and 500+ links which we will crawl and access from the Second Brain AI assistant.

    Notion data

    For ease of use, we stored a snapshot of our Notion data in a public S3 bucket, which you can download for free without AWS credentials.

    Download here

    Thus, you don't need to use Notion or give access to your Notion to complete this course. But if you want to, you can, as we expose in this GitHub repository, a flexible pipeline that can load any Notion database.

    🚀 Getting Started

    Find detailed setup instructions in each app's documentation:

    ApplicationDocumentation
    Offline ML Pipelines (data pipelines, RAG, fine-tuning, etc.)apps/second-brain-offline
    Online Inference Pipeline (Second Brain AI assistant)apps/second-brain-online

    Pro tip: Read the accompanying articles first for a better understanding of the system you'll build.

    💡 Questions and Troubleshooting

    Have questions or running into issues? We're here to help!

    Open a GitHub issue for:

    • Questions about the course material
    • Technical troubleshooting
    • Clarification on concepts

    🥂 Contributing

    As an open-source course, we may not be able to fix all the bugs that arise.

    If you find any bugs and know how to fix them, support future readers by contributing to this course with your bug fix.

    You can always contribute by:

    • Forking the repository
    • Fixing the bug
    • Creating a pull request

    📍 For more details, see the contributing guide.

    We will deeply appreciate your support for the AI community and future readers 🤗

    Sponsors

    Core Contributors

    License

    This project is licensed under the MIT License - see the LICENSE file for details.