ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s

This commit is contained in:
2026-08-20 13:12:50 +00:00
commit b119135836
10275 changed files with 3284984 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 40 780 340" width="780" height="340" style="background:#ffffff">
<defs><marker id="ah" markerWidth="12" markerHeight="8" refX="12" refY="4" orient="auto"><polygon points="0 0, 12 4, 0 8" fill="#333333" /></marker><marker id="ah-light" markerWidth="12" markerHeight="8" refX="12" refY="4" orient="auto"><polygon points="0 0, 12 4, 0 8" fill="#999999" /></marker></defs>
<rect x="40" y="65" width="300" height="130" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="190" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14.62" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold"><tspan x="190" dy="77.91">Giai đoạn 1: Định dạng hóa</tspan><tspan x="190" dy="15.79">rắn SFT</tspan></text>
<text x="190" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.23" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="190" dy="107.12">Mục tiêu: đầu ra có thể phân tích cú</tspan><tspan x="190" dy="11.05">pháp (JSON/gọi tool)</tspan></text>
<text x="190" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.23" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="190" dy="129.22">Dữ liệu: Hàng ngàn cuộc biểu tình chất</tspan><tspan x="190" dy="11.05">lượng cao</tspan></text>
<text x="190" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.23" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="190" dy="151.31">Điều kiện dừng: Định dạng ổn định và</tspan><tspan x="190" dy="11.05">khả năng bắt đầu hình thành.</tspan></text>
<text x="190" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.23" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="190" dy="173.41">⚠ Overtraining → Mô hình sụp đổ để</tspan><tspan x="190" dy="11.05">phân phối đào tạo</tspan></text>
<line x1="342" y1="130" x2="398" y2="130" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<text x="370" y="115" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">Định dạng</text>
<text x="370" y="135" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">Ổn định</text>
<rect x="400" y="65" width="340" height="130" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2" />
<text x="570" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14.62" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold"><tspan x="570" dy="77.91">Giai đoạn 2: Chiến lược định</tspan><tspan x="570" dy="15.79">hình RL</tspan></text>
<text x="570" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.23" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="570" dy="107.12">Mục tiêu: Tối đa hóa phần thưởng nhiệm vụ</tspan><tspan x="570" dy="11.05">(tỷ lệ chính xác/tỷ lệ thành công)</tspan></text>
<text x="570" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.23" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="570" dy="129.22">Điều kiện tiên quyết: Định dạng đầu ra ổn</tspan><tspan x="570" dy="11.05">định → có thể tính toán phần thưởng</tspan></text>
<text x="570" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.23" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="570" dy="151.31">Đột phá: Khám phá các chiến lược mới ngoài</tspan><tspan x="570" dy="11.05">phần trình diễn SFT</tspan></text>
<text x="570" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.23" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="570" dy="173.41">✓ Định dạng ổn định + khái quát hóa chính</tspan><tspan x="570" dy="11.05">sách = sẵn sàng triển khai</tspan></text>
<rect x="40" y="220" width="700" height="70" rx="4" fill="#f5f5f5" stroke="#333333" stroke-width="2" />
<text x="390" y="239.88" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">Tại sao chúng ta không thể bỏ qua SFT và truy cập trực tiếp vào RL?</text>
<text x="390" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="390" dy="256.08">Đầu ra mô hình cơ bản không có cấu trúc → không thể phân tích cú pháp JSON → hàm phần thưởng</tspan><tspan x="390" dy="15.12">trả về NaN → độ dốc hoàn toàn bằng 0 → quá trình đào tạo thất bại hoàn toàn</tspan></text>
<text x="390" y="310" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="20" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">Phân phối bộ nhớ SFT → Chiến lược tổng quát hóa RL</text>
<text x="390" y="338" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="390" dy="-9.44">SFT: max Σ log P(y|x) (phân phối đào tạo được trang bị) RL: max E[R(τ)] (mục tiêu nhiệm vụ</tspan><tspan x="390" dy="18.88">tối ưu hóa)</tspan></text>
<text x="390" y="362" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="390" dy="-9.44">Khi "dù có trình diễn bao nhiêu đi nữa thì cảnh mới vẫn không hay" → chuyển sang điểm mấu</tspan><tspan x="390" dy="18.88">chốt của RL</tspan></text>
</svg>

After

Width:  |  Height:  |  Size: 6.8 KiB