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
+42
View File
@@ -0,0 +1,42 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 40 880 490" width="880" height="490" 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="20" y="55" width="840" height="200" rx="6" fill="#ffffff" stroke="#333333" stroke-width="2" />
<text x="440" y="78" 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">Giai đoạn 1: Khai thác và cấu trúc tri thức</text>
<rect x="40" y="95" width="180" height="65" rx="4" fill="#f5f5f5" stroke="#999999" stroke-width="2" />
<text x="130" y="113" 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">hồ sơ vụ án gốc</text>
<text x="50" y="138" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central">Bộ dữ liệu CAIL2018</text>
<line x1="220" y1="127" x2="258" y2="127" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="260" y="95" width="180" height="65" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2" />
<text x="350" y="113" 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">Khám phá yếu tố LLM</text>
<text x="350" y="138" 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">Từ dưới lên Schema</text>
<line x1="440" y1="127" x2="478" y2="127" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="480" y="95" width="200" height="65" rx="4" fill="#f5f5f5" stroke="#999999" stroke-width="2" />
<text x="580" y="127.5" 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">Cấu trúc JSON</text>
<text x="490" y="0" font-family="'Courier New', Courier, monospace" font-size="10.19" fill="#333333" text-anchor="start" dominant-baseline="central"><tspan x="490" dy="105.49">{đầu hàng: true, bồi</tspan><tspan x="490" dy="11.01">thường: 50 triệu,</tspan></text>
<text x="490" y="0" font-family="'Courier New', Courier, monospace" font-size="10.19" fill="#333333" text-anchor="start" dominant-baseline="central"><tspan x="490" dy="127.5">Mức độ sát thương: vết</tspan><tspan x="490" dy="11.01">thương nghiêm trọng cấp</tspan><tspan x="490" dy="11.01">2}</tspan></text>
<rect x="40" y="170" width="400" height="70" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="240" y="181" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11.11" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">Lược đồ dữ liệu mô-đun</text>
<text x="240" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11.11" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="240" dy="193">Chế độ cốt lõi (đầu hàng/bồi thường/kết án) +</tspan><tspan x="240" dy="12">chế độ mở rộng tội phạm</tspan></text>
<text x="240" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11.11" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="240" dy="217">(Trộm cắp→số tiền liên quan, thương tích→mức</tspan><tspan x="240" dy="12">độ thương tích)</tspan></text>
<rect x="20" y="270" width="840" height="215" rx="6" fill="#ffffff" stroke="#333333" stroke-width="2" />
<text x="440" y="293" 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">Giai đoạn 2: Phân tích nhân tố và mô hình hóa kiến thức</text>
<rect x="40" y="310" width="200" height="80" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="140" y="322.01" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.96" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">Vector hóa tính năng</text>
<text x="140" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.96" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="140" dy="336">Mã hóa một nóng + mã</tspan><tspan x="140" dy="14">hóa đa nóng</tspan></text>
<text x="140" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.96" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="140" dy="364">+ phép biến đổi</tspan><tspan x="140" dy="14">logarit + chuẩn hóa</tspan></text>
<line x1="240" y1="350" x2="278" y2="350" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="280" y="310" width="200" height="80" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2" />
<text x="380" y="322.01" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.96" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">Phân cụm KMeans</text>
<text x="380" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.96" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="380" dy="336">Khám phá "Nguyên mẫu</tspan><tspan x="380" dy="14">của vụ án"</tspan></text>
<text x="380" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.96" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="380" dy="364">Ví dụ: "ẩu đả tay không,</tspan><tspan x="380" dy="14">thương tích nhẹ"</tspan></text>
<line x1="480" y1="350" x2="518" y2="350" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="520" y="310" width="200" height="80" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="620" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.8" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold"><tspan x="620" dy="320.84">mô hình tầm quan trọng</tspan><tspan x="620" dy="11.66">của yếu tố</tspan></text>
<text x="620" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.8" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="620" dy="344.17">Lượng hóa trọng số</tspan><tspan x="620" dy="11.66">của từng yếu tố</tspan></text>
<text x="620" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.8" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="620" dy="367.5">Xây dựng logic ra</tspan><tspan x="620" dy="11.66">quyết định tuyên án</tspan></text>
<line x1="620" y1="390" x2="620" y2="415" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="40" y="418" width="720" height="60" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="400" y="432.61" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17.81" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">Ứng dụng: Tư vấn pháp luật đàm thoại Agent</text>
<text x="400" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14.25" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="400" dy="449.92">Hướng dẫn câu hỏi theo tầm quan trọng của yếu tố → Truy xuất các nguyên mẫu trường</tspan><tspan x="400" dy="15.39">hợp tương tự → Phân tích kết án dựa trên dữ liệu</tspan></text>
</svg>

After

Width:  |  Height:  |  Size: 8.7 KiB