CSI403 - Full Stack RAG with Local LLM
| หัวข้อ | รายละเอียด |
|---|---|
| Lab | Lab 01 |
| หัวข้อ | Python Basics for RAG |
| คะแนน | 100 คะแนน |
| รูปแบบ | Jupyter Notebook |
เมื่อทำ Lab นี้เสร็จ นักศึกษาจะ:
- ✅ เข้าใจ Data Types พื้นฐาน (string, list, dictionary)
- ✅ เข้าใจ Function และ Class เบื้องต้น
- ✅ สามารถสร้าง Document class สำหรับระบบ RAG
- ✅ สามารถทำ Text Processing พื้นฐาน
git clone <URL ของ repo>
cd lab01-python-basics-<username>pip install -r requirements.txtวิธีที่ 1: ใช้ Jupyter
jupyter notebook Lab01_Python_Basics_for_RAG.ipynbวิธีที่ 2: ใช้ VS Code
- เปิดไฟล์
.ipynbใน VS Code - ติดตั้ง extension "Jupyter"
- อ่านคำอธิบายในแต่ละ cell
- รันตัวอย่าง code (cells ที่มี
▶️ ) - ทำแบบฝึกหัด (cells ที่มี ✏️)
- หา
___และแทนที่ด้วยคำตอบ - หา
passและเขียนโค้ดแทน
- หา
- รัน cell เพื่อทดสอบผลลัพธ์
git add .
git commit -m "Complete Lab 01"
git push| Part | หัวข้อ | คะแนน |
|---|---|---|
| 1 | Python Basics (String, List, Dict) | 20 |
| 2 | Function | 20 |
| 3 | Class (Document) | 30 |
| 4 | Document Processing | 30 |
| รวม | 100 |
lab01-python-basics-<username>/
├── Lab01_Python_Basics_for_RAG.ipynb ← ไฟล์ที่ต้องทำ
├── README.md ← ไฟล์นี้
└── requirements.txt ← Dependencies
A: ดูวิดีโอสอนที่ https://www.youtube.com/watch?v=HW29067qVWk
A: รัน cell ทดสอบ ถ้าไม่มี error และแสดงผลตรงกับที่คาดหวัง แสดงว่าทำถูก
A: อ่าน error message และลองแก้ไข หรือถามอาจารย์ในห้องเรียน
Good luck! 🍀