Skip to content

Commit 4dda697

Browse files
committed
docs: Update docS
1 parent e9f1186 commit 4dda697

File tree

3 files changed

+79
-24
lines changed

3 files changed

+79
-24
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,21 @@ jobs:
3030
- name: 🐍 Set up Python
3131
uses: actions/setup-python@v5
3232
with:
33-
python-version-file: "apps/second-brain-offline/.python-version"
33+
python-version-file: ".python-version"
3434

3535
- name: 🦾 Install the project
3636
run: |
3737
uv sync --all-extras --dev
3838
uv pip install -e .
3939
4040
- name: 💅 Format Check
41-
run: make format-check
41+
run: |
42+
uv run ruff format --check .
43+
uv run ruff check -e
44+
uv run ruff check --select I -e
4245

4346
- name: 🔎 Lint Check
44-
run: make lint-check
47+
run: uv run ruff check .
4548

4649
lint-format-online:
4750
runs-on: ubuntu-latest
@@ -59,15 +62,18 @@ jobs:
5962
- name: 🐍 Set up Python
6063
uses: actions/setup-python@v5
6164
with:
62-
python-version-file: "apps/second-brain-online/.python-version"
65+
python-version-file: ".python-version"
6366

6467
- name: 🦾 Install the project
6568
run: |
6669
uv sync --all-extras --dev
6770
uv pip install -e .
6871
6972
- name: 💅 Format Check
70-
run: make format-check
73+
run: |
74+
uv run ruff format --check .
75+
uv run ruff check -e
76+
uv run ruff check --select I -e
7177

7278
- name: 🔎 Lint Check
73-
run: make lint-check
79+
run: uv run ruff check .

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ Our recommendation for getting the most out of this course:
101101
3. Setup the code and run it to replicate our results.
102102
4. Go deeper into the code to understand the details of the implementation.
103103

104-
> [!NOTE]
105-
> Check the [INSTALL_AND_USAGE](./INSTALL_AND_USAGE.md) doc for a step-by-step installation and usage guide.
106-
107104
| Module | Materials | Description | Running the code |
108105
|--------|-------|-------------|----------------|
109106
| 1 | [Build your Second Brain AI assistant](...) | Architect an AI assistant for your Second Brain. | **No code** |

apps/second-brain-offline/README.md

Lines changed: 67 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,46 @@
1-
# Installation
1+
# 🚀 Installation and Usage Guide for the Second Brain Offline Module
2+
3+
This guide will help you set up and run the Second Brain Offline Module which contains the code for modules 1-5.
4+
5+
# 📑 Table of Contents
6+
7+
- [📋 Prerequisites](#-prerequisites)
8+
- [🎯 Getting Started](#-getting-started)
9+
- [📁 Project Structure](#-project-structure)
10+
- [🏗️ Set Up Your Local Infrastructure](#-set-up-your-local-infrastructure)
11+
- [⚡️ Running the Code for Each Lesson](#️-running-the-code-for-each-lesson)
12+
- [🔧 Utlity Commands](#-utility-commands)
13+
14+
# 📋 Prerequisites
15+
16+
## Local Tools
17+
You'll need the following tools installed locally:
18+
19+
| Tool | Version | Purpose | Installation Link |
20+
|------|---------|---------|------------------|
21+
| Python | 3.11 | Programming language runtime | [Download](https://www.python.org/downloads/) |
22+
| uv | ≥ 0.4.30 | Python package installer and virtual environment manager | [Download](https://github.com/astral-sh/uv) |
23+
| GNU Make | ≥ 3.81 | Build automation tool | [Download](https://www.gnu.org/software/make/) |
24+
| Git | ≥2.44.0 | Version control | [Download](https://git-scm.com/downloads)
25+
26+
## Cloud Services
27+
The project requires access to these cloud services:
28+
29+
| Service | Purpose | Cost | Required Credentials | Setup Guide |
30+
|---------|---------|------|---------------------|-------------|
31+
| [OpenAI API](https://openai.com/index/openai-api/) | LLM API for recommender system | Pay-per-use | `OPENAI_API_KEY` | [Quick Start Guide](https://platform.openai.com/docs/quickstart) |
32+
33+
# 🎯 Getting Started
34+
35+
## 1. Clone the Repository
36+
37+
Start by cloning the repository and navigating to the project directory:
38+
```
39+
git clone https://github.com/decodingml/YOUR_REPO.git
40+
cd YOUR_REPO
41+
```
42+
43+
## 2. Installation
244

345
To set it up first deactivate any active virtual environment and move to the second-brain-online directory:
446
```bash
@@ -40,7 +82,16 @@ After running the doctor command, you should see something like this:
4082
```
4183
[More on installing Crawl4AI](https://docs.crawl4ai.com/core/installation/)
4284

43-
# 🏗️ Project Structure
85+
## 3. Environment Configuration
86+
87+
Before running any components:
88+
1. Create your environment file:
89+
```bash
90+
cp .env.example .env
91+
```
92+
2. Open `.env` and configure the required credentials following the inline comments and the recommendations from the [Cloud Services](#-prerequisites) section.
93+
94+
# 📁 Project Structure
4495

4596
At Decoding ML we teach how to build production ML systems, thus the course follows the structure of a real-world Python project:
4697

@@ -63,7 +114,7 @@ At Decoding ML we teach how to build production ML systems, thus the course foll
63114
└── pyproject.toml # Project dependencies
64115
```
65116

66-
# Infrastructure
117+
# 🏗️ Set Up Your Local Infrastructure
67118

68119
To start the local infrastructure (ZenML, MongoDB):
69120
```bash
@@ -75,15 +126,15 @@ To stop the local infrastructure (ZenML, MongoDB):
75126
make local-infrastructure-down
76127
```
77128

78-
# Running the Code / Lessons
129+
# ⚡️ Running the Code for Each Module
79130

80-
## Lesson 1: Build your Second Brain AI assistant
131+
## Module 1: Build your Second Brain AI assistant
81132

82133
Lesson: [Build your Second Brain AI assistant]()
83134

84135
No code to run for this lesson. Read the lesson to understand the problem and overall architecture of the Second Brain AI assistant.
85136

86-
## Lesson 2: ETL pipeline
137+
## Module 2: ETL pipeline
87138

88139
### Prepare Notion data
89140

@@ -105,7 +156,7 @@ Run the ETL pipeline to crawl, score and ingest the Notion data into MongoDB:
105156
make etl-pipeline
106157
# Validate using test: make test-etl-pipeline
107158
```
108-
Running costs: ~$0.5
159+
Running costs: ~$0.5 </br>
109160
Running time: ~30 minutes
110161

111162
If you want to avoid any costs or waiting times, you can use our pre-computed dataset to populate MongoDB. Also, as crawling can often fail, you can use this dataset to skip the crawling step:
@@ -115,12 +166,12 @@ make download-crawled-dataset
115166
make etl-precomputed-pipeline
116167
```
117168

118-
## Lesson 3: Generate Fine-tuning Dataset
169+
## Module 3: Generate Fine-tuning Dataset
119170

120171
```bash
121172
make generate-dataset-pipeline
122173
```
123-
Running costs: ~$1.5
174+
Running costs: ~$1.5 </br>
124175
Running time: ~60 minutes
125176

126177
In case you want to avoid any costs or waiting times, you can use our pre-computed dataset available on Hugging Face, which is already set as default in future steps: [pauliusztin/second_brain_course_summarization_task](https://huggingface.co/datasets/pauliusztin/second_brain_course_summarization_task).
@@ -148,30 +199,31 @@ The Agentic App sits in the online environment, which is implemented as a differ
148199

149200
Go to the [apps/second-brain-online](../second-brain-online/) folder and follow the instructions there to set it up and run it.
150201

151-
## Utility commands
202+
# 🔧 Utlity Commands
152203

153-
### Formatting
204+
## Formatting
154205

155206
```
156207
make format-check
157208
make format-fix
158209
```
159-
### Linting
210+
211+
## Linting
160212

161213
```bash
162214
make lint-check
163215
make lint-fix
164216
```
165217

166-
### Tests
218+
## Tests
167219

168220
```bash
169221
make test
170222
```
171223

172-
## Others
224+
# 🧊 Notion (optional)
173225

174-
### Notion
226+
In case you want to use your own Notion data, you can follow these steps to set up an integration and read from your Notion database:
175227

176228
1. Go to [https://www.notion.so/profile].
177229
2. Create an integration following [this tutorial](https://developers.notion.com/docs/authorization).

0 commit comments

Comments
 (0)