chore: 初始化仓库,导入项目基线代码

Academy v0.8.3 完整代码基线:Go 后端(internal/cmd/cli/mcp-server/docreader)、
Vue 前端(frontend)、数据库迁移(migrations)、部署编排(docker/helm/deploy)与文档。
今日开发的培训推送管理改动随后单独提交。
This commit is contained in:
runny committed 2026-11-16 18:12:23 +08:00
commit 7ec21f35b0
5767 files changed
+1436788

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
# Brand asset sources
Logos identify supported integrations; their names and marks belong to their respective owners.
Paths below written as `public/brand/…`, `public/brands/…` and `public/product/…` live under `public/docs/_home/`, so the site serves them from `/docs/_home/` next to the rest of the documentation.
- Academy logo: `docs/images/logo.png` from the Academy repository (the README logo), copied unchanged to `public/brand/academy-original.png`. The site preserves all lettering, graphics and proportions. CSS hides only the empty outer canvas and blends the white background into the page; dark mode uses an inverted presentation with hue rotation. The source image remains unchanged.
- Academy browser icon: copied unchanged from the existing product's `frontend/public/favicon.ico` into the documentation (`/docs/favicon.ico`), which the homepage also uses. The replacement square sail SVG is no longer shipped.
- Feishu, GitLab, Tencent IMA, Notion, Yuque, RSS, WeCom, Slack, Telegram: copied unchanged from the Academy frontend asset library.
- Seafile: copied unchanged from `frontend/src/assets/img/datasource-seafile.png` to `public/brands/seafile.png`.
- OpenAI, DeepSeek, Qwen, Hunyuan, Gemini, Ollama, MCP: static SVGs from [Lobe Icons](https://github.com/lobehub/lobe-icons), `@lobehub/icons-static-svg@1.95.0`. Upstream MIT license included with assets.
- Confluence, DingTalk: copied unchanged from the Academy frontend asset library (`frontend/src/assets/img/datasource-confluence.svg`, `frontend/src/assets/img/im/dingtalk.svg`).
- Claude (Anthropic), Zhipu, Kimi (Moonshot), Volcengine, MiniMax: copied unchanged from `internal/models/providers/assets/`, which carries the same Lobe Icons static SVGs; covered by the included Lobe Icons MIT license.
- BrowserSkill: `frontend/src/assets/browserskill/logo.png` from the Academy frontend (the extension's own icon, [Tencent/BrowserSkill](https://github.com/Tencent/BrowserSkill)), copied unchanged to `public/brands/browserskill.png` with its MIT license as `public/brands/BROWSERSKILL-LICENSE`.
- Chrome: [official Chrome website asset](https://www.google.com/chrome/static/images/chrome-logo-m100.svg).
- File formats, REST API, CLI: generic interface icons, not brand logos.
- LiteLLM: [official documentation favicon](https://docs.litellm.ai/img/favicon.ico).
- WeChat Dialog Open Platform: [official platform icon](https://res.wx.qq.com/mmspraiweb_node/dist/static/logo/logo180.png), referenced by the platform login page and saved unchanged as `public/brands/wechat-dialog.png`.
- Tencent Cloud: [official website icon](https://cloudcache.tencent-cloud.com/qcloud/favicon.ico), referenced by the Lighthouse product page and saved unchanged as `public/brands/tencent-cloud.ico`. Both platform icons retain their original colors in light and dark mode.
## Product screenshots
- Update reused screenshots in `../public/screenshots/`. The homepage prebuild/predev hook refreshes existing product copies, including the `sandbox-terminal.png` alias. Do not edit those copies separately.
- Release highlights also reuse `chat-source-location.png`, copied unchanged from `../public/screenshots/` to `public/docs/_home/product/`. Four features use compact sidebar navigation beside the screenshot, with all descriptions expanded. Attachment reading is a secondary link; its screenshot remains in the documentation. The standalone browser section presents task execution and extension connection as two expanded items on the left, switching the corresponding screenshot on the right.
- v0.8.3 gallery: `kb-image-gallery.png`, `kb-image-gallery-detail.png`, and `kb-image-vector-settings.png` are real product screenshots copied unchanged from `../public/screenshots/` to `public/docs/_home/product/`. The vector settings image shows the image-vector toggle. The gallery screenshots retain some image-load failure states from the captured interface. Screenshot contents and usage are documented in `../README.md`.
- Skill catalog and sandbox terminal: copied unchanged from `../public/screenshots/skill-catalog.png` and `sandbox-panel-terminal.png` to `public/product/skill-catalog.png` and `sandbox-terminal.png`, for the skills & sandbox gallery.
- Sandbox desktop (`public/product/sandbox-desktop.png`): the chat's sandbox panel on the 桌面 tab, showing the XFCE desktop of a desktop template. It shares the 终端与图形桌面 card with the terminal screenshot, switched inside the card.
- The permanent local-browser section reuses `local-browser-task.png` and `browser-connection.png` with the BrowserSkill icon and GitHub link from the v0.8.2 showcase. MCP Server is described within integrations; conversation controls stay in the Agent overview. `mcp-server-endpoint.png` and `chat-steer-queue.png` remain reference assets, without separate homepage showcases.
- Browser task (`public/product/local-browser-task.png`): a smart-reasoning chat driving the connected Chrome through BrowserSkill (GitHub release lookup, then filling the httpbin.org sample order form without submitting), with the in-chat task preview and pause / end controls.
- Wiki browser: copied unchanged from `../public/screenshots/wiki-browser.png` to `public/product/wiki-browser.png`. Shows the actual Wiki directory, linked page and source references using sample company policies.
- Wiki graph: `wiki-graph-groups.png` is a real product screenshot showing the full graph with grouped regions, theme labels and a node-type legend. It is copied unchanged from `../public/screenshots/` to `public/docs/_home/product/`.
- Historical Wiki graph and revision history: copied unchanged from `../public/screenshots/wiki-graph.png` and `wiki-revision-history.png` to matching files in `public/product/`, the revision-history image remains in the Wiki gallery, while the old graph image is retained for reference.
+12
View File
@@ -0,0 +1,12 @@
# Academy homepage source
The Next.js homepage is one part of the unified site. Run `npm run setup`, `npm run build`, and `npm run preview` from the parent directory to include both the homepage and the complete `/docs/` site. Deployment instructions are in the parent README.
- `app/page.tsx`: product content and same-origin documentation links.
- `app/home.module.css`: homepage layout.
- `app/interactive.tsx`: responsive navigation, theme switch, and on-demand README video.
- `app/theme.ts`: VitePress-compatible theme persistence and pre-paint initialization.
- `../shared/brand.css`: shared light/dark design tokens.
- `public/docs/_home/`: homepage images. The site serves only `/` and `/docs/`, so build output and public assets both live under `/docs/_home/` (`homeAssets` in `../shared/header.ts`).
`npm run dev` can still preview the homepage alone during development. `/docs/` requires the combined preview from the parent directory.
+7
View File
@@ -0,0 +1,7 @@
import Image from "next/image";
import { homeAssets } from "../../shared/header";
/** Show the complete original artwork; the viewport only trims blank canvas. */
export function BrandLogo({ priority = false }: { priority?: boolean }) {
return <span className="wk-logo"><Image src={`${homeAssets}/brand/academy-original.png`} alt="Academy" width={945} height={650} priority={priority} /></span>;
}
+56
View File
@@ -0,0 +1,56 @@
import Image from "next/image";
import { Icon } from "./ui";
import { homeAssets } from "../../shared/header";
type Integration = { name: string; logo: string } | { name: string; icon: string };
export const dataSources: Integration[] = [
{ name: "PDF / Office", icon: "file" },
{ name: "飞书", logo: "feishu.ico" },
{ name: "Confluence", logo: "confluence.svg" },
{ name: "钉钉文档", logo: "dingtalk.svg" },
{ name: "GitLab", logo: "gitlab.png" },
{ name: "腾讯 IMA", logo: "ima.png" },
{ name: "Notion", logo: "notion.ico" },
{ name: "语雀", logo: "yuque.ico" },
{ name: "RSS", logo: "rss.svg" },
{ name: "Seafile", logo: "seafile.png" },
];
export const clients: Integration[] = [
{ name: "企业微信", logo: "wecom.svg" },
{ name: "飞书", logo: "feishu.ico" },
{ name: "钉钉", logo: "dingtalk.svg" },
{ name: "Slack", logo: "slack.svg" },
{ name: "Telegram", logo: "telegram.svg" },
{ name: "Chrome", logo: "chrome.svg" },
{ name: "BrowserSkill", logo: "browserskill.png" },
{ name: "MCP Server", logo: "mcp.svg" },
{ name: "API", icon: "code" },
{ name: "CLI", icon: "terminal" },
{ name: "DeepSeek Harness", logo: "deepseek-color.svg" },
];
export const modelProviders: Integration[] = [
{ name: "OpenAI", logo: "openai.svg" },
{ name: "Claude", logo: "anthropic.svg" },
{ name: "Gemini", logo: "gemini-color.svg" },
{ name: "DeepSeek", logo: "deepseek-color.svg" },
{ name: "Qwen", logo: "qwen-color.svg" },
{ name: "混元", logo: "hunyuan-color.svg" },
{ name: "智谱", logo: "zhipu.svg" },
{ name: "Kimi", logo: "moonshot.svg" },
{ name: "火山引擎", logo: "volcengine.svg" },
{ name: "MiniMax", logo: "minimax.svg" },
{ name: "Ollama", logo: "ollama.svg" },
{ name: "LiteLLM", logo: "litellm.ico" },
];
export function IntegrationMark({ item }: { item: Integration }) {
return <>
{"logo" in item
? <Image src={`${homeAssets}/brands/${item.logo}`} alt="" aria-hidden="true" width={22} height={22} />
: <Icon name={item.icon} />}
{item.name}
</>;
}
@@ -0,0 +1,5 @@
import "../../model-leaderboard.css";
export default function ModelsLayout({ children }: { children: React.ReactNode }) {
return children;
}
@@ -0,0 +1,11 @@
import type { Metadata } from "next";
import { ModelLeaderboard } from "../../model-leaderboard";
export const metadata: Metadata = {
title: "Academy 模型评测 · Chat / Embed / Rerank",
description: "在相同数据以及配置参数下,横向对比 Chat、Embed 与 Rerank 的模型表现,并提供模型效果排行榜。",
};
export default function Page() {
return <ModelLeaderboard />;
}
+13
View File
@@ -0,0 +1,13 @@
@import "tailwindcss";
@import "../../shared/brand.css";
@import "../../shared/header.css";
:root { background: var(--wk-paper); color: var(--wk-ink); }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--wk-font-sans); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a { text-decoration: none; }
::selection { background: var(--wk-accent-border); color: var(--wk-ink); }
:focus-visible { outline: 2px solid #b8863b; outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
+311
View File
@@ -0,0 +1,311 @@
.site {
--ink: var(--wk-ink);
--soft: var(--wk-ink-soft);
--mute: var(--wk-ink-mute);
--gold: var(--wk-gold);
--paper: var(--wk-paper);
--paper2: var(--wk-paper-2);
--rule: var(--wk-rule);
--serif: var(--wk-font-serif);
color: var(--ink);
background: var(--paper);
font-size: 16px;
line-height: 1.75;
}
.site svg { flex-shrink: 0; }
.site section[id], .videoFigure { scroll-margin-top: 105px; }
.shell { width: calc(100% - 112px); max-width: 1600px; margin-inline: auto; }
.skipLink { position: fixed; left: 20px; top: -100px; z-index: 30; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.skipLink:focus { top: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.hero { padding-top: 24px; }
.releaseLink { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 13px; color: var(--soft); font-size: 14px; }
.releaseLink > span { border: 1px solid var(--wk-accent-border); padding: 3px 10px; color: var(--wk-accent-text); font-family: ui-monospace, monospace; font-size: 12px; }
.releaseLink svg { width: 17px; height: 17px; transition: transform .2s; }
.releaseLink:hover svg { transform: translateX(4px); }
.heroGrid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 6vw; margin: 28px 0 50px; }
.hero h1 { font-family: var(--serif); font-size: clamp(42px, 4.5vw, 80px); font-weight: 500; line-height: 1.17; letter-spacing: -.045em; margin: 0; }
.hero h1 em { font-style: normal; color: var(--gold); }
.heroAside { padding-bottom: 6px; }
.eyebrow { font-family: ui-monospace, "SF Mono", monospace; color: var(--gold); font-size: 12px; letter-spacing: .14em; font-weight: 500; margin: 0 0 20px; }
.heroDescription { font-size: clamp(16px, 1.32vw, 21px); line-height: 1.85; color: var(--soft); margin: 0; max-width: 550px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 28px; font-size: 15px; font-weight: 550; min-height: 49px; padding: 12px 23px; border: 1px solid var(--ink); border-radius: 3px; transition: background .2s, color .2s, transform .2s; }
.primary { color: var(--paper); background: var(--ink); }
.primary:hover { background: var(--wk-button-hover); transform: translateY(-2px); }
.secondary { color: var(--ink); background: transparent; border-color: var(--rule); gap: 11px; }
.secondary:hover { border-color: var(--gold); background: var(--paper2); }
.primary svg, .secondary svg { width: 18px; height: 18px; }
.heroNote { color: var(--mute); font-size: 13px; margin: 19px 0 0; letter-spacing: .02em; }
.videoFigure { margin: 0; border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; box-shadow: 0 22px 55px -35px rgba(16, 31, 56, .28); background: var(--wk-surface); }
.videoTop { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 22px; color: var(--soft); background: var(--paper2); font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .1em; }
.videoTop > span { display: inline-flex; align-items: center; gap: 10px; }
.videoDot { margin-inline: 5px; color: var(--gold); }
.videoStage { position: relative; aspect-ratio: 16 / 8.5; background: #14191e; }
.videoStage video { width: 100%; height: 100%; display: block; object-fit: contain; }
.videoCover { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; background: linear-gradient(180deg, rgba(18,22,26,.24), rgba(18,22,26,.6)); transition: background .2s; }
.playCircle { width: 82px; height: 82px; display: flex; align-items: center; justify-content: center; background: #fdfcfa; color: #101f38; border-radius: 50%; box-shadow: 0 4px 24px #0002; transition: transform .2s; }
.playCircle svg { width: 29px; height: 29px; transform: translateX(-2px); fill: #101f38; stroke-width: 0; }
.videoCover:hover .playCircle { transform: scale(1.08); }
.videoCoverTitle { font-size: clamp(18px, 2vw, 30px); font-weight: 500; letter-spacing: .07em; margin-top: 24px; }
.videoCoverHint { font-size: 14px; margin-top: 8px; color: #eee8dc; }
.videoError { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--paper2); color: var(--ink); gap: 18px; }
.videoError a { display: inline-flex; gap: 8px; align-items: center; text-decoration: underline; }
.videoError svg { width: 18px; height: 18px; }
.videoCaption { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 22px; font-size: 13px; color: var(--soft); }
.videoCaption a { color: var(--mute); display: inline-flex; align-items: center; gap: 9px; }
.videoCaption svg { height: 14px; width: 14px; }
.trustBar { display: flex; justify-content: center; align-items: center; gap: 7vw; padding: 30px 0; font-size: 13px; color: var(--soft); border-bottom: 1px solid var(--rule); }
.trustBar span { display: flex; align-items: center; gap: 10px; }
.trustBar svg { width: 18px; height: 18px; color: var(--mute); }
.section { padding-block: 104px; }
.sectionHeading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 45px; }
.sectionHeading h2, .closing h2 { font-family: var(--serif); font-size: clamp(32px, 3.1vw, 50px); font-weight: 500; line-height: 1.35; letter-spacing: -.03em; margin: 0; }
.sectionHeading > p { font-size: 16px; color: var(--soft); line-height: 1.9; margin: 0 0 3px; }
.modeGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.mode { padding: 35px 35px 32px; display: flex; flex-direction: column; }
.mode:first-child { padding-left: 0; }
.mode:last-child { padding-right: 0; }
.mode + .mode { border-left: 1px solid var(--rule); }
.modeTop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 31px; }
.modeTop > svg { width: 33px; height: 33px; stroke-width: 1.1; }
.modeTop > span { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .11em; color: var(--gold); }
.mode h3 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 550; line-height: 1.5; margin: 0 0 15px; }
.mode > p { font-size: 16px; line-height: 1.85; color: var(--soft); margin: 0 0 23px; }
.tags { display: flex; gap: 9px; flex-wrap: wrap; padding: 0; list-style: none; margin: auto 0 31px; }
.tags li { color: var(--soft); background: var(--paper2); padding: 3px 9px; font-size: 12px; border-radius: 2px; }
.textLink { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-size: 14px; min-height: 32px; width: fit-content; }
.textLink svg { width: 17px; height: 17px; transition: transform .2s; }
.textLink:hover { color: var(--wk-accent-text); }
.textLink:hover svg { transform: translateX(3px); }
.shotPlaceholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 3840 / 2112; padding: 24px; text-align: center; color: var(--mute); background: repeating-linear-gradient(135deg, var(--paper2) 0 12px, var(--paper) 12px 24px); }
.shotPlaceholder > span { font-size: 15px; color: var(--soft); }
.shotPlaceholder > code { font-size: 12px; word-break: break-all; }
.mcpEntry { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--rule); }
.mcpEntry h4 { font-size: 16px; font-weight: 550; margin: 0 0 10px; }
.mcpEntry p { font-size: 14px; line-height: 1.85; color: var(--soft); margin: 0 0 12px; }
.release { padding-block: 93px 44px; background: var(--paper2); border-block: 1px solid var(--rule); }
.sandboxTopic { background: var(--paper2); padding-bottom: 93px; }
.artifactFigure { margin: 0; min-width: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 5px; box-shadow: 0 18px 45px -35px #101f3844; overflow: hidden; }
.artifactHeading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; font-size: 13px; border-bottom: 1px solid var(--rule); }
.artifactHeading > span { display: inline-flex; align-items: center; gap: 8px; }
.artifactHeading > span:last-child { font-family: ui-monospace, monospace; letter-spacing: .07em; font-size: 12px; color: var(--mute); }
.artifactHeading svg { width: 17px; height: 17px; color: var(--gold); }
.artifactImage img { display: block; width: 100%; height: auto; }
.artifactFigure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 20px; font-size: 12px; color: var(--soft); border-top: 1px solid var(--rule); }
.artifactFigure figcaption > span:last-child { color: var(--mute); }
.releaseExtras { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 29px; margin-top: 48px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--soft); }
.releaseExtras > span { color: var(--mute); }
.site .wiki { border-bottom: 1px solid var(--rule); padding-block: 48px; scroll-margin-top: 64px; }
.site section.wiki[id] { scroll-margin-top: 64px; }
.wiki .sectionHeading { margin-bottom: 24px; }
.wiki .eyebrow { margin-bottom: 12px; }
.cardActions { display: flex; align-items: center; gap: 12px; }
.showcase { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
.showcaseList { border-top: 1px solid var(--rule); }
.showcaseItem { position: relative; padding-left: 20px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.showcaseItem::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 22px; width: 2px; background: transparent; transition: background .25s; }
.showcaseItem[data-active="true"] { cursor: default; }
.showcaseItem[data-active="true"]::before { background: var(--gold); }
.showcaseItem h3 { margin: 0; font: inherit; }
.showcaseItem h3 button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 20px 0 8px; border: 0; background: transparent; text-align: left; cursor: inherit; }
.showcaseName { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: 12px; letter-spacing: .06em; }
.showcaseName svg { width: 17px; height: 17px; }
.showcaseTitle { color: var(--soft); font-size: 19px; font-weight: 550; line-height: 1.5; transition: color .2s; }
.showcaseItem[data-active="true"] .showcaseName { color: var(--wk-accent-text); }
.showcaseItem[data-active="true"] .showcaseTitle { color: var(--ink); }
.showcaseItem:not([data-active="true"]):hover .showcaseTitle { color: var(--wk-accent-text); }
.showcaseDetail { padding: 0 0 22px; }
.showcaseDetail p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.85; transition: color .25s; }
.showcaseItem[data-active="true"] .showcaseDetail p { color: var(--soft); }
.showcaseFigure { box-shadow: none; }
.showcaseFigure .artifactHeading { padding-block: 10px; }
.showcaseFigure .artifactHeading .textLink { font-size: 12px; min-height: 24px; color: var(--soft); }
@media (max-width: 1100px) {
.showcase { grid-template-columns: 1fr; gap: 24px; }
.showcaseTitle { font-size: 18px; }
.showcaseItem h3 button { padding: 16px 0 6px; }
.showcaseItem::before { top: 16px; bottom: 18px; }
.showcaseDetail { padding-bottom: 18px; }
}
.viewChips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.viewChips button { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; overflow: hidden; border: 1px solid var(--rule); border-radius: 999px; color: var(--soft); background: var(--paper); font-size: 13px; cursor: pointer; transition: color .2s, border-color .2s; }
.viewChips button svg { width: 15px; height: 15px; color: var(--mute); }
.viewChips button[aria-pressed="true"] { color: var(--ink); border-color: var(--gold); }
.viewChips button[aria-pressed="true"] svg { color: var(--gold); }
.viewChips button:hover { color: var(--wk-accent-text); border-color: var(--gold); }
.viewLabel { margin-left: 2px; color: var(--mute); font-style: normal; }
.tabProgress { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold); transform-origin: left; animation: tabProgress var(--step-ms, 4s) linear forwards; animation-play-state: paused; }
.tabProgress[data-running="true"] { animation-play-state: running; }
@keyframes tabProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .tabProgress { animation: none; } }
.shotStack { display: grid; overflow: hidden; }
.shotLayer { grid-area: 1 / 1; opacity: 0; transform: scale(1.015); pointer-events: none; transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.shotLayer[data-active="true"] { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .shotLayer { transition: none; } }
.pendingLabel { color: var(--mute); font-size: 12px; }
.slideLinks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 10px; }
.externalLink img { display: block; width: 20px; height: 20px; border-radius: 5px; }
.externalLink svg { color: var(--mute); }
.cardActions { min-height: 24px; }
.ecosystem { display: grid; grid-template-columns: 1fr .85fr 1fr; gap: 48px; padding: 38px 0 46px; border-block: 1px solid var(--rule); }
.ecosystemColumn > svg { width: 29px; height: 29px; color: var(--gold); }
.ecosystemColumn h3 { font-size: 23px; font-weight: 550; margin: 18px 0 7px; }
.ecosystemColumn > p { color: var(--soft); font-size: 15px; margin: 0 0 20px; }
.integrations { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.integrations span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--rule); font-size: 13px; background: var(--wk-surface); border-radius: 3px; }
.integrations img, .integrations svg { display: block; width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }
.ecosystemCore { position: relative; display: flex; justify-content: center; align-items: center; flex-direction: column; border-inline: 1px solid var(--rule); gap: 5px; text-align: center; }
.ecosystemCore > strong { font-size: 28px; margin-top: 10px; font-weight: 550; letter-spacing: -.03em; }
.ecosystemCore > span:not(:global(.wk-logo)) { font-size: 14px; color: var(--soft); }
.ecosystemCore > div { font-size: 12px; color: var(--gold); margin-top: 18px; }
.models { display: flex; align-items: center; justify-content: flex-start; gap: 16px 28px; flex-wrap: wrap; padding-top: 28px; }
.models > span { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-basis: 100%; color: var(--mute); font-size: 13px; }
.models > span .textLink { font-size: 13px; }
.models > p { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; color: var(--soft); font-weight: 550; margin: 0; }
.models img { display: block; width: 24px; height: 24px; flex-shrink: 0; object-fit: contain; }
.enterprise { background: var(--paper2); border-block: 1px solid var(--rule); padding-block: 87px; }
.enterpriseGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; border-top: 1px solid var(--rule); padding-top: 37px; }
.enterpriseGrid article > svg { color: var(--gold); width: 29px; height: 29px; }
.enterpriseGrid h3 { margin: 22px 0 12px; font-size: 22px; font-weight: 550; }
.enterpriseGrid p { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.9; }
.closing { padding-block: 80px; scroll-margin-top: 88px; }
.closing h2 { font-size: clamp(30px, 2.8vw, 43px); }
.startGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.startCard { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--rule); border-radius: 5px; background: var(--paper); }
.startLabel { display: flex; align-items: center; gap: 14px; min-height: 34px; color: var(--soft); font-size: 13px; }
.startBrand { display: block; width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.startLabel :global(.wk-logo) { width: 128px; }
.startCard h3 { margin: 24px 0 12px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; }
.startCard p { margin: 0 0 28px; color: var(--soft); font-size: 15px; line-height: 1.9; }
.startCard > a { margin-top: auto; }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: 28px; border-top: 1px solid var(--rule); }
.footer > p { color: var(--mute); font-size: 12px; margin: 0; }
.footer nav { margin-left: auto; display: flex; gap: 28px; }
.footer nav a { display: flex; align-items: center; gap: 4px; min-height: 44px; color: var(--soft); font-size: 13px; }
@media (min-width: 1800px) { .heroGrid { margin-bottom: 62px; } .hero { padding-top: 28px; } }
@media (max-width: 1100px) {
.shell { width: calc(100% - 64px); }
.heroGrid { gap: 32px; grid-template-columns: 1.1fr 1fr; }
.hero h1 { font-size: clamp(36px, 4.2vw, 48px); }
.heroDescription { font-size: 16px; }
.section { padding-block: 78px; }
.sectionHeading { gap: 30px; }
.sectionHeading > p { max-width: 370px; font-size: 15px; }
.mode { padding-inline: 23px; }
.mode h3 { font-size: 20px; }
.ecosystem { gap: 28px; grid-template-columns: 1fr .7fr 1fr; }
}
@media (max-width: 800px) {
.navigationOpen { display: flex; position: absolute; left: 0; top: 72px; right: 0; padding: 20px 32px 26px; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 4px; box-shadow: 0 15px 20px #101f380a; }
.navigationOpen a { font-size: 16px; }
.hero { padding-top: 20px; }
.heroGrid { align-items: start; grid-template-columns: 1fr; gap: 28px; margin-top: 26px; margin-bottom: 35px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); }
.heroAside > .eyebrow { display: none; }
.heroDescription { max-width: 100%; }
.heroNote { margin-top: 17px; }
.videoTop { padding: 11px 15px; font-size: 12px; }
.videoCaption { align-items: start; flex-direction: column; padding: 13px 15px; gap: 3px; }
.videoCaption a { font-size: 12px; }
.trustBar { gap: 16px 24px; flex-wrap: wrap; justify-content: flex-start; padding: 24px 0; }
.sectionHeading { flex-direction: column; align-items: start; gap: 20px; margin-bottom: 34px; }
.sectionHeading > p { max-width: none; }
.modeGrid { grid-template-columns: 1fr; }
.mode, .mode:first-child, .mode:last-child { padding: 29px 0; }
.mode + .mode { border-left: 0; border-top: 1px solid var(--rule); }
.modeTop { margin-bottom: 18px; }
.mode h3 { font-size: 24px; }
.mode > p { margin-bottom: 18px; }
.tags { margin-bottom: 17px; }
.release { padding-block: 65px 35px; }
.sandboxTopic { padding-bottom: 65px; }
.releaseExtras { justify-content: flex-start; margin-top: 28px; padding-top: 23px; }
.releaseExtras > span { flex-basis: 100%; }
.ecosystem { grid-template-columns: 1fr 1fr; gap: 32px; }
.ecosystemCore { grid-row: 1; grid-column: 1 / -1; border-inline: 0; border-bottom: 1px solid var(--rule); padding-bottom: 30px; }
.ecosystemColumn h3 { font-size: 22px; }
.enterprise { padding-block: 65px; }
.enterpriseGrid { grid-template-columns: 1fr; gap: 32px; }
.enterpriseGrid h3 { margin-top: 14px; }
.closing { padding-block: 68px; }
.startGrid { grid-template-columns: 1fr; gap: 16px; }
.startCard { padding: 24px; }
.footer { gap: 14px 25px; }
.footer nav { margin-left: 0; width: 100%; gap: 26px; }
}
@media (max-width: 480px) {
.site .wiki { padding-block: 28px; }
.wiki .sectionHeading { gap: 12px; margin-bottom: 18px; }
.wiki .sectionHeading h2 { font-size: 28px; }
.shell { width: calc(100% - 40px); }
.hero h1 { font-size: clamp(28px, 7.9vw, 38px); }
.releaseLink { font-size: 12px; gap: 8px; }
.heroDescription br { display: none; }
.videoTop { letter-spacing: 0; padding-inline: 10px; }
.videoTop > span { gap: 6px; }
.videoTop > span:last-child { display: none; }
.videoDot { margin: 0; }
.playCircle { height: 52px; width: 52px; }
.playCircle svg { width: 22px; height: 22px; }
.videoCoverTitle { font-size: 17px; margin-top: 13px; }
.videoCoverHint { font-size: 12px; margin-top: 4px; }
.trustBar { font-size: 12px; gap: 13px; }
.trustBar span { gap: 7px; }
.section { padding-block: 60px; }
.sectionHeading h2 { font-size: 32px; }
.eyebrow { font-size: 12px; letter-spacing: .09em; margin-bottom: 15px; }
.ecosystem { grid-template-columns: 1fr; padding-top: 28px; }
.ecosystemCore { grid-column: 1; }
.ecosystemColumn + .ecosystemColumn { border-top: 1px solid var(--rule); padding-top: 26px; }
.models { justify-content: flex-start; gap: 15px 22px; }
.models > span { flex-basis: 100%; }
.models > p { font-size: 15px; }
.artifactHeading { padding-inline: 12px; }
.artifactHeading > span:last-child { font-size: 12px; }
.artifactFigure figcaption { padding-inline: 12px; }
.closing h2 { font-size: 30px; }
.footer > p { font-size: 12px; }
}
:global(.dark) .integrations img, :global(.dark) .models img { background: var(--wk-logo-ground); padding: 2px; border-radius: 3px; }
.ecosystemCore > :global(.wk-logo) { margin-bottom: 18px; }
/* Keep feature descriptions and state controls beside their screenshots. */
.releaseTopic { padding-top: 48px; }
.releaseTopic .sectionHeading, .browserTopic .sectionHeading { margin-bottom: 24px; }
.releaseTopic .eyebrow, .browserTopic .eyebrow { margin-bottom: 12px; }
.showcaseCompact { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 32px; }
.showcaseCompact .showcaseItem h3 button { padding: 10px 0; gap: 2px; }
.showcaseCompact .showcaseItem::before { top: 12px; bottom: 12px; }
.showcaseCompact .showcaseTitle { font-size: 16px; }
.showcaseCompact .showcaseDetail { padding-bottom: 14px; }
.showcaseCompact .showcaseDetail p { font-size: 14px; line-height: 1.7; }
.showcaseCompact .showcaseFigure { position: sticky; top: 100px; }
.showcaseCompact .shotLayer img { max-height: calc(100svh - 240px); object-fit: contain; }
.site .browserTopic { padding-block: 44px; }
@media (max-width: 1100px) {
.showcaseCompact { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 700px) {
.showcaseCompact { grid-template-columns: minmax(0, 1fr); }
.showcaseCompact .showcaseFigure { position: static; }
.showcaseCompact .shotLayer img { max-height: none; }
}
/* One page-wide rhythm: tinted bands own their boundaries; content shares one shell. */
.site .chapter { padding-block: 48px; background: var(--paper); border: 0; }
.site .chapterTint { background: var(--paper2); border-block: 1px solid var(--rule); }
.chapter .sectionHeading { margin-bottom: 28px; }
.chapter .eyebrow { margin-bottom: 12px; }
.site .footer { border-top: 0; }
@media (max-width: 700px) {
.site .chapter { padding-block: 32px; }
.chapter .sectionHeading { margin-bottom: 24px; }
}
.showcaseDetail p a { color: var(--wk-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.inlineRepoLink { display: inline-flex; align-items: center; gap: 4px; vertical-align: baseline; }
.inlineRepoLink svg { width: 14px; height: 14px; align-self: center; }
+69
View File
@@ -0,0 +1,69 @@
"use client";
import { BrandLogo } from "./brand-logo";
import { useRef, useState, useSyncExternalStore } from "react";
import { Icon } from "./ui";
import { getThemeSnapshot, subscribeToTheme, toggleTheme } from "./theme";
import { siteNavigation, repositoryUrl, headerIcons, homeAssets } from "../../shared/header";
import s from "./home.module.css";
const videoUrl = "https://github.com/user-attachments/assets/2819598d-3140-4623-814a-8162a22b653c";
function HeaderIcon({ name }: { name: string }) {
return <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d={headerIcons[name]} /></svg>;
}
function ThemeToggle() {
const dark = useSyncExternalStore(subscribeToTheme, getThemeSnapshot, () => false);
const label = dark ? "切换到浅色" : "切换到深色";
return <button className="wk-theme-toggle" type="button" role="switch" aria-checked={dark} aria-label={label} title={label} onClick={toggleTheme}><HeaderIcon name={dark ? "moon" : "sun"} /></button>;
}
export function Header() {
const [open, setOpen] = useState(false);
const menu = useRef<HTMLButtonElement>(null);
return <header className="wk-header" onKeyDown={event => { if (event.key === "Escape" && open) { setOpen(false); menu.current?.focus(); } }}>
<div className="wk-header-inner">
<a className="wk-brand" href="/" target="_self" aria-label="Academy 首页"><BrandLogo priority /></a>
<nav id="main-navigation" className={`wk-navigation ${open ? "is-open" : ""}`} aria-label="主导航" onClick={() => setOpen(false)}>
{siteNavigation.map(item => {
if (item.children?.length) {
return (
<div key={item.href} className="wk-nav-menu">
<a href={item.href}>{item.label}{item.badge && <span className="wk-new-label">{item.badge}</span>}</a>
<button type="button" className="wk-nav-caret" aria-label={`${item.label}栏目`}><HeaderIcon name="chevron" /></button>
<div className="wk-nav-dropdown">
{item.children.map(child => <a key={child.href} href={child.href}>{child.label}</a>)}
</div>
</div>
);
}
return <a key={item.href} href={item.href}>{item.label}{item.badge && <span className="wk-new-label">{item.badge}</span>}</a>;
})}
<a className="wk-mobile-github" href={repositoryUrl} target="_blank" rel="noreferrer">GitHub <HeaderIcon name="external" /></a>
</nav>
<ThemeToggle />
<a className="wk-header-github" href={repositoryUrl} target="_blank" rel="noreferrer"><HeaderIcon name="github" /><span>GitHub</span></a>
<button ref={menu} type="button" className="wk-menu-toggle" aria-label={open ? "关闭导航" : "打开导航"} aria-expanded={open} aria-controls="main-navigation" onClick={() => setOpen(!open)}><HeaderIcon name={open ? "close" : "menu"} /></button>
</div>
</header>;
}
export function ProductVideo() {
const player = useRef<HTMLVideoElement>(null);
const [started, setStarted] = useState(false);
const [failed, setFailed] = useState(false);
function play() {
setStarted(true);
const video = player.current;
if (video) {
video.src = videoUrl;
video.play().catch(() => { /* Keep native controls available when another playback gesture is required. */ });
video.focus();
}
}
return <figure id="demo" className={s.videoFigure}>
<div className={s.videoTop}><span>产品演示 <span className={s.videoDot}>/</span> PRODUCT FILM</span><span>02:25 <span className={s.videoDot}>/</span> 1080P</span></div>
<div className={s.videoStage}>
<video ref={player} controls={started} playsInline preload="none" poster={`${homeAssets}/product/agent-chat.png`} aria-label="Academy 产品介绍,英文旁白,中英字幕" aria-describedby="video-caption" tabIndex={started ? 0 : -1} onError={() => setFailed(true)} />
{!started && <button className={s.videoCover} onClick={play} aria-label="播放 Academy 产品介绍视频,2 分 25 秒"><span className={s.playCircle}><Icon name="play" /></span><span className={s.videoCoverTitle}>Academy 产品演示</span><span className={s.videoCoverHint}>播放产品介绍 · 2 分 25 秒</span></button>}
{failed && <div className={s.videoError} role="status"><p>视频暂时无法加载</p><a href={videoUrl} target="_blank" rel="noreferrer">在 GitHub 打开原视频 <Icon name="external" /></a></div>}
</div>
<figcaption id="video-caption" className={s.videoCaption}><span>知识问答、Agent 推理与 Wiki 整理</span><a href={videoUrl} target="_blank" rel="noreferrer">README 产品视频 · 英文旁白 / 中英字幕 <Icon name="external" /></a></figcaption>
</figure>;
}
+23
View File
@@ -0,0 +1,23 @@
import type { Metadata } from "next";
import "./globals.css";
import { themeInitializationScript } from "./theme";
export const metadata: Metadata = {
title: "Academy — 帮你找到答案,并将知识付诸实践",
description: "腾讯开源知识框架 Academy,集 RAG 问答、Agent 推理与自动 Wiki 于一体。v0.8.3 新增画廊、多模态 Embedding、原文引用定位、附件按需读取和平台用户管理;支持私有化部署。",
// Reuse the documentation favicon so the homepage adds nothing at the site root.
icons: { icon: "/docs/favicon.ico" },
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="zh-CN" className="h-full antialiased" suppressHydrationWarning>
<head><script dangerouslySetInnerHTML={{ __html: themeInitializationScript }} /></head>
<body className="min-h-full flex flex-col">{children}</body>
</html>
);
}
@@ -0,0 +1,729 @@
/* Restyled to Academy portal tokens. Markup class names are unchanged. */
.wk-models {
color: var(--wk-ink);
background: var(--wk-paper);
font-family: var(--wk-font-sans);
font-size: 16px;
line-height: 1.75;
min-height: 100dvh;
}
.wk-models a {
color: inherit;
}
.wk-models code {
font-family: var(--wk-font-mono);
font-size: .86em;
background: var(--wk-paper-2);
border: 1px solid var(--wk-rule);
border-radius: 3px;
padding: 1px 6px;
color: var(--wk-ink-soft);
}
.wk-models .wrap {
width: calc(100% - 112px);
max-width: 1600px;
margin-inline: auto;
}
.wk-models .hero {
background: var(--wk-paper);
position: relative;
overflow: hidden;
}
.wk-models .hero::before {
content: "";
position: absolute;
right: -160px;
top: -200px;
width: 680px;
height: 520px;
background: radial-gradient(closest-side, color-mix(in srgb, var(--wk-gold) 10%, transparent), transparent 72%);
pointer-events: none;
}
.wk-models .hero-in {
position: relative;
padding: 56px 0 8px;
}
.wk-models .pill {
display: inline-flex;
align-items: center;
gap: 8px;
background: color-mix(in srgb, var(--wk-gold) 12%, var(--wk-paper));
border: 1px solid var(--wk-accent-border);
border-radius: 2px;
padding: 4px 12px;
font-family: var(--wk-font-mono);
font-size: 11.5px;
letter-spacing: 1.2px;
color: var(--wk-accent-text);
}
.wk-models .dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--wk-gold);
flex: none;
}
.wk-models .hero h1 {
font-family: var(--wk-font-serif);
font-size: clamp(34px, 4.2vw, 52px);
line-height: 1.2;
margin: 22px 0 16px;
font-weight: 500;
letter-spacing: -.04em;
max-width: 840px;
}
.wk-models .hero h1 .g {
color: var(--wk-gold);
font-style: normal;
}
.wk-models .lead {
max-width: none;
color: var(--wk-ink-soft);
font-size: clamp(16px, 1.2vw, 18px);
line-height: 1.85;
margin: 0;
}
.wk-models .stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
gap: 0;
margin-top: 44px;
border-top: 1px solid var(--wk-rule);
}
.wk-models .stat {
padding: 20px 24px 4px;
border-right: 1px solid var(--wk-rule);
}
.wk-models .stat:first-child {
padding-left: 0;
}
.wk-models .stat:last-child {
border-right: 0;
}
.wk-models .stat b {
display: block;
font-family: var(--wk-font-mono);
font-size: 26px;
font-weight: 600;
line-height: 1.2;
letter-spacing: -.5px;
}
.wk-models .stat span {
color: var(--wk-ink-mute);
font-size: 12.5px;
}
.wk-models .hero-note {
margin-top: 26px;
color: var(--wk-ink-mute);
font-size: 13px;
max-width: 840px;
}
.wk-models main.wrap section {
padding: 20px 0 8px;
scroll-margin-top: 80px;
}
.wk-models .sec-head {
display: flex;
align-items: baseline;
gap: 14px;
flex-wrap: wrap;
margin-bottom: 6px;
}
.wk-models .sec-idx {
font-family: var(--wk-font-mono);
font-size: 12px;
font-weight: 600;
color: var(--wk-gold);
letter-spacing: .14em;
}
.wk-models h2 {
font-family: var(--wk-font-serif);
font-size: clamp(26px, 2.4vw, 36px);
margin: 0;
font-weight: 500;
letter-spacing: -.03em;
}
.wk-models .sec-sub {
color: var(--wk-ink-mute);
font-size: 14px;
}
.wk-models .sec-desc {
color: var(--wk-ink-soft);
max-width: none;
margin: 14px 0 0;
}
.wk-models .card {
background: var(--wk-surface);
border: 1px solid var(--wk-rule);
border-radius: 5px;
overflow: hidden;
}
.wk-models .card + .card {
margin-top: 18px;
}
.wk-models .card-head {
padding: 17px 24px;
border-bottom: 1px solid var(--wk-rule);
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
background: var(--wk-paper-2);
}
.wk-models .card-head h3 {
margin: 0;
font-size: 17px;
font-weight: 550;
}
.wk-models .tag {
font-size: 12px;
color: var(--wk-ink-soft);
background: var(--wk-paper-2);
border: 1px solid var(--wk-rule);
border-radius: 3px;
padding: 2px 9px;
white-space: nowrap;
}
.wk-models .tag.key,
.wk-models .tag.oss {
background: color-mix(in srgb, var(--wk-gold) 12%, var(--wk-paper));
border-color: var(--wk-accent-border);
color: var(--wk-accent-text);
font-weight: 600;
}
.wk-models .tag.closed {
color: var(--wk-ink-mute);
}
.wk-models .card-body {
--card-pad: 24px;
padding: 20px var(--card-pad) 24px;
}
.wk-models .tabs {
display: flex;
flex-wrap: wrap;
gap: 0;
margin: 22px 0 0;
border-bottom: 1px solid var(--wk-rule);
}
.wk-models .tab {
border: 0;
background: transparent;
font: inherit;
font-size: 14.5px;
color: var(--wk-ink-soft);
cursor: pointer;
padding: 11px 20px;
white-space: nowrap;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
transition: color .15s, border-color .15s;
}
.wk-models .tab:hover {
color: var(--wk-ink);
}
.wk-models .tab[aria-selected="true"] {
color: var(--wk-ink);
font-weight: 600;
border-bottom-color: var(--wk-gold);
}
.wk-models .panel[hidden] {
display: none;
}
.wk-models .panel {
margin-top: 20px;
}
/* Tables run edge to edge inside the card instead of adding a second frame. */
.wk-models .card-body > .scroll {
overflow-x: auto;
margin-inline: calc(var(--card-pad) * -1);
width: calc(100% + var(--card-pad) * 2);
}
.wk-models .card-body > .scroll th:first-child,
.wk-models .card-body > .scroll td:first-child {
padding-left: var(--card-pad);
}
.wk-models .card-body > .scroll th:last-child,
.wk-models .card-body > .scroll td:last-child {
padding-right: var(--card-pad);
}
.wk-models table {
border-collapse: collapse;
width: 100%;
font-size: 14px;
}
.wk-models thead th {
background: transparent;
color: var(--wk-ink-mute);
font-weight: 600;
font-size: 12px;
letter-spacing: .4px;
text-align: left;
padding: 10px 14px;
border-bottom: 1px solid var(--wk-rule);
white-space: nowrap;
}
.wk-models tbody td {
padding: 12px 14px;
border-bottom: 1px solid var(--wk-rule-soft);
vertical-align: middle;
}
.wk-models tbody tr:last-child td {
border-bottom: 0;
}
.wk-models tbody tr:hover {
background: var(--wk-paper-2);
}
.wk-models .num {
font-family: var(--wk-font-mono);
font-variant-numeric: tabular-nums;
text-align: right;
white-space: nowrap;
}
.wk-models .dim {
color: var(--wk-ink-mute);
}
.wk-models #chat-knowledge .dim,
.wk-models #chat-agent .dim {
white-space: nowrap;
}
.wk-models .model {
font-weight: 500;
white-space: nowrap;
font-family: var(--wk-font-mono);
font-size: 13px;
}
.wk-models .lead-row td {
background: color-mix(in srgb, var(--wk-gold) 8%, var(--wk-paper));
}
.wk-models .rank {
width: 56px;
}
.wk-models .rk {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
font-family: var(--wk-font-mono);
font-size: 12.5px;
font-weight: 600;
background: var(--wk-paper-2);
color: var(--wk-ink-soft);
border-radius: 3px;
}
.wk-models .rk.top {
background: var(--wk-ink);
color: var(--wk-paper);
}
.wk-models .rk.top2 {
background: color-mix(in srgb, var(--wk-gold) 14%, var(--wk-paper));
color: var(--wk-accent-text);
}
.wk-models .metric {
min-width: 140px;
}
.wk-models .metric .v {
font-family: var(--wk-font-mono);
font-variant-numeric: tabular-nums;
font-weight: 600;
display: block;
text-align: right;
}
.wk-models .bar {
height: 3px;
border-radius: 2px;
background: var(--wk-paper-3);
margin-top: 6px;
overflow: hidden;
}
.wk-models .bar i {
display: block;
height: 100%;
background: linear-gradient(90deg, var(--wk-gold-light), var(--wk-gold));
}
.wk-models .kv {
display: grid;
grid-template-columns: 1fr;
gap: 0;
margin: 0;
}
.wk-models .note + .kv {
margin-top: 20px;
}
.wk-models .note + .kv > div:last-child {
border-bottom: 0;
padding-bottom: 0;
}
.wk-models .kv div {
display: flex;
gap: 12px;
padding: 10px 0;
border-bottom: 1px solid var(--wk-rule-soft);
font-size: 14px;
}
.wk-models .kv dt {
flex: none;
width: 112px;
color: var(--wk-ink-mute);
font-size: 13px;
}
.wk-models .kv dd {
margin: 0;
color: var(--wk-ink-soft);
}
.wk-models .kv dd b {
color: var(--wk-ink);
}
.wk-models .dataset-card .card-body {
padding: 8px 8px 12px;
}
.wk-models .dataset-facts {
display: grid;
grid-template-columns: 1fr;
gap: 0;
margin: 0;
}
.wk-models .dataset-facts > div {
display: grid;
grid-template-columns: 108px minmax(0, 1fr);
gap: 20px 28px;
align-items: start;
padding: 20px 24px;
}
.wk-models .dataset-facts > div + div {
border-top: 1px solid var(--wk-rule-soft);
}
.wk-models .dataset-facts dt {
margin: 6px 0 0;
color: var(--wk-ink-mute);
font-size: 13px;
letter-spacing: .04em;
}
.wk-models .dataset-facts .dataset-count dt {
margin-top: 0;
}
.wk-models .dataset-facts .dataset-count dd {
display: block;
color: var(--wk-ink-soft);
font-size: 14px;
line-height: 1.5;
}
.wk-models .dataset-facts .dataset-count dd b {
color: var(--wk-ink);
font-weight: 600;
}
.wk-models .dataset-facts dd {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin: 0;
}
.wk-models .dataset-facts ul {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.wk-models .dataset-facts li {
padding: 6px 11px;
border: 1px solid var(--wk-rule);
border-radius: 3px;
background: var(--wk-paper-2);
color: var(--wk-ink);
font-size: 13px;
line-height: 1.4;
}
.wk-models .dataset-more {
color: var(--wk-ink-mute);
font-size: 13px;
}
.wk-models .dataset-note {
margin: 0 24px 12px;
}
.wk-models .dataset-note strong {
display: block;
margin-bottom: 4px;
}
.wk-models .rubric {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 12px;
margin: 18px 0 0;
max-width: 900px;
}
.wk-models .rubric div {
background: var(--wk-surface);
border: 1px solid var(--wk-rule);
border-radius: 4px;
padding: 14px 16px;
}
.wk-models .rubric dt {
font-family: var(--wk-font-mono);
font-size: 13px;
font-weight: 600;
color: var(--wk-gold);
}
.wk-models .rubric dd {
margin: 6px 0 0;
color: var(--wk-ink-soft);
font-size: 14px;
}
.wk-models .formula {
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
flex-wrap: wrap;
margin: 18px 0 0;
max-width: 900px;
padding: 22px 20px;
background: var(--wk-paper-2);
border: 1px solid var(--wk-rule);
border-radius: 4px;
}
.wk-models .formula .lhs {
font-size: 15px;
font-weight: 600;
}
.wk-models .formula .eqs {
color: var(--wk-ink-mute);
font-family: var(--wk-font-mono);
}
.wk-models .formula .frac {
display: inline-flex;
flex-direction: column;
align-items: center;
font-family: var(--wk-font-mono);
font-size: 13.5px;
color: var(--wk-ink-soft);
}
.wk-models .formula .frac .top {
padding: 0 10px 7px;
}
.wk-models .formula .frac .bot {
width: 100%;
padding: 7px 10px 0;
border-top: 1px solid var(--wk-ink-soft);
text-align: center;
color: var(--wk-ink);
font-weight: 600;
}
.wk-models .formula b {
color: var(--wk-gold);
}
.wk-models .note {
margin-top: 18px;
background: var(--wk-paper-2);
border-left: 3px solid var(--wk-gold);
border-radius: 0 4px 4px 0;
padding: 14px 18px;
font-size: 14px;
color: var(--wk-ink-soft);
}
.wk-models .note strong {
color: var(--wk-ink);
}
.wk-models .note ul {
margin: 8px 0 0;
padding-left: 20px;
}
.wk-models .note li + li {
margin-top: 5px;
}
.wk-models .note.info {
border-left-color: var(--wk-ink-soft);
}
.wk-models .note.warn {
border-left-color: var(--wk-gold);
}
.wk-models .empty {
text-align: center;
padding: 40px 20px;
color: var(--wk-ink-mute);
}
.wk-models .skip-link {
position: fixed;
left: 20px;
top: -100px;
z-index: 30;
padding: 12px 20px;
background: var(--wk-ink);
color: var(--wk-paper);
}
.wk-models .skip-link:focus {
top: 12px;
}
.wk-models footer {
margin-top: 72px;
border-top: 1px solid var(--wk-rule);
background: var(--wk-paper);
padding: 28px 0;
color: var(--wk-ink-mute);
font-size: 13px;
}
.wk-models .foot-in {
display: flex;
gap: 20px;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
}
@media (max-width: 1100px) {
.wk-models .wrap {
width: calc(100% - 64px);
}
}
@media (max-width: 760px) {
.wk-models .wrap {
width: calc(100% - 40px);
}
.wk-models .hero-in {
padding: 36px 0 8px;
}
.wk-models .hero h1 {
font-size: 30px;
}
.wk-models .card-body {
--card-pad: 16px;
}
.wk-models .card-head {
padding-left: 16px;
padding-right: 16px;
}
.wk-models .kv dt {
width: 92px;
}
.wk-models .stat {
border-right: 0;
}
.wk-models .formula {
padding: 18px 14px;
}
.wk-models .formula .frac {
font-size: 12px;
}
.wk-models .dataset-facts > div {
grid-template-columns: 1fr;
gap: 10px;
padding: 16px;
}
.wk-models .dataset-facts dt {
margin: 0;
}
}
@@ -0,0 +1,445 @@
"use client";
import { useEffect, useRef } from "react";
import { Header } from "./interactive";
function paintMetricBars(root: ParentNode) {
root.querySelectorAll("tbody[data-bar-col]").forEach((tbody) => {
const cells = Array.from(tbody.querySelectorAll<HTMLElement>("td.metric[data-v]"));
if (!cells.length) return;
const vals = cells.map((cell) => parseFloat(cell.dataset.v || "0"));
const max = Math.max(...vals);
const min = Math.min(...vals);
const span = max - min || 1;
cells.forEach((cell) => {
const bar = cell.querySelector<HTMLElement>(".bar i");
if (!bar) return;
const pct = 12 + ((parseFloat(cell.dataset.v || "0") - min) / span) * 88;
bar.style.width = `${pct.toFixed(1)}%`;
});
});
}
function scrollToSection(behavior: ScrollBehavior) {
const id = window.location.hash.replace(/^#/, "");
if (!id) return;
const motion = window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : behavior;
document.getElementById(id)?.scrollIntoView({ behavior: motion, block: "start" });
}
export function ModelLeaderboard() {
const rootRef = useRef<HTMLDivElement>(null);
useEffect(() => {
const root = rootRef.current;
if (!root) return;
paintMetricBars(root);
const cleanups: Array<() => void> = [];
root.querySelectorAll<HTMLElement>("[data-tabs]").forEach((bar) => {
const onClick = (event: Event) => {
const btn = (event.target as HTMLElement).closest<HTMLElement>(".tab");
if (!btn) return;
bar.querySelectorAll(".tab").forEach((tab) => {
tab.setAttribute("aria-selected", String(tab === btn));
});
const group = bar.dataset.tabs;
root.querySelectorAll(`.panel[data-group="${group}"]`).forEach((panel) => {
(panel as HTMLElement).hidden = panel.id !== btn.dataset.panel;
});
};
bar.addEventListener("click", onClick);
cleanups.push(() => bar.removeEventListener("click", onClick));
});
const onHash = () => scrollToSection("smooth");
window.addEventListener("hashchange", onHash);
scrollToSection("auto");
return () => {
cleanups.forEach((cleanup) => cleanup());
window.removeEventListener("hashchange", onHash);
};
}, []);
return (
<div className="wk-models" ref={rootRef}>
<a className="skip-link" href="#models-main">跳至正文</a>
<Header />
<div id="models-main">
<header className="hero">
<div className="wrap hero-in">
<h1>模型评测榜单</h1>
<p className="lead">
在相同数据以及配置参数下,横向对比 <strong>Chat</strong>、<strong>Embed</strong> 与 <strong>Rerank</strong> 的模型表现,并提供模型效果排行榜。
</p>
</div>
</header>
<main className="wrap">
{/* ================= 1. Chat ================= */}
<section id="llm">
<div className="sec-head">
<span className="sec-idx">01</span>
<h2>LLM</h2>
<span className="sec-sub">固定检索与精排,只替换 Chat 模型</span>
</div>
<div className="tabs" role="tablist" data-tabs="chat">
<button className="tab" role="tab" aria-selected="true" data-panel="chat-agent">智能推理</button>
<button className="tab" role="tab" aria-selected="false" data-panel="chat-knowledge">快速问答</button>
</div>
{/* 1.1 */}
<div className="panel" id="chat-agent" data-group="chat">
<div className="card">
<div className="card-head">
<h3>智能推理</h3>
<span className="tag key">排序指标 综合分 6:3:1</span>
</div>
<div className="card-body">
<div className="scroll">
<table>
<thead><tr>
<th className="rank">#</th><th>Chat</th><th>Think Effort</th>
<th className="num metric">综合分</th><th className="num">correctness 正确性</th><th className="num">completeness 完整度</th><th className="num">constraint 约束遵循</th>
<th className="num">语料命中率</th><th className="num">平均语料数</th><th className="num">P50 迭代</th><th className="num">P50 token</th>
</tr></thead>
<tbody data-bar-col="2">
<tr className="lead-row"><td><span className="rk top">1</span></td><td className="model">Grok 4.7</td><td className="dim">默认(high)</td><td className="metric" data-v="4.23"><span className="v">4.23</span><span className="bar"><i></i></span></td><td className="num">4.04</td><td className="num">4.41</td><td className="num">4.80</td><td className="num">95.19%</td><td className="num">3.69</td><td className="num">4</td><td className="num">344</td></tr>
<tr className="lead-row"><td><span className="rk top2">2</span></td><td className="model">GPT-6 Astra</td><td className="dim">默认(medium)</td><td className="metric" data-v="4.04"><span className="v">4.04</span><span className="bar"><i></i></span></td><td className="num">3.95</td><td className="num">3.93</td><td className="num">4.88</td><td className="num">85.19%</td><td className="num">1.76</td><td className="num">4</td><td className="num">217</td></tr>
<tr><td><span className="rk top2">3</span></td><td className="model">Claude Opus 5</td><td className="dim">默认(high)</td><td className="metric" data-v="3.89"><span className="v">3.89</span><span className="bar"><i></i></span></td><td className="num">3.57</td><td className="num">4.42</td><td className="num">4.16</td><td className="num">94.09%</td><td className="num">4.70</td><td className="num">6</td><td className="num">702</td></tr>
<tr><td><span className="rk">4</span></td><td className="model">GLM-5.3</td><td className="dim">high</td><td className="metric" data-v="3.85"><span className="v">3.85</span><span className="bar"><i></i></span></td><td className="num">3.50</td><td className="num">4.26</td><td className="num">4.70</td><td className="num">90.92%</td><td className="num">2.64</td><td className="num">4</td><td className="num">475</td></tr>
<tr><td><span className="rk">5</span></td><td className="model">DeepSeek-V4.1-Flash</td><td className="dim">默认(high)</td><td className="metric" data-v="3.78"><span className="v">3.78</span><span className="bar"><i></i></span></td><td className="num">3.45</td><td className="num">4.30</td><td className="num">4.15</td><td className="num">92.93%</td><td className="num">3.26</td><td className="num">4</td><td className="num">654</td></tr>
<tr><td><span className="rk">6</span></td><td className="model">GLM-5.3-Flash</td><td className="dim">high</td><td className="metric" data-v="3.75"><span className="v">3.75</span><span className="bar"><i></i></span></td><td className="num">3.35</td><td className="num">4.26</td><td className="num">4.61</td><td className="num">87.81%</td><td className="num">2.47</td><td className="num">4</td><td className="num">507</td></tr>
<tr><td><span className="rk">7</span></td><td className="model">Hunyuan-3</td><td className="dim">默认(high)</td><td className="metric" data-v="3.74"><span className="v">3.74</span><span className="bar"><i></i></span></td><td className="num">3.39</td><td className="num">4.19</td><td className="num">4.55</td><td className="num">88.30%</td><td className="num">2.74</td><td className="num">4</td><td className="num">574</td></tr>
<tr><td><span className="rk">8</span></td><td className="model">Hunyuan-4-preview</td><td className="dim">默认(high)</td><td className="metric" data-v="3.72"><span className="v">3.72</span><span className="bar"><i></i></span></td><td className="num">3.30</td><td className="num">4.39</td><td className="num">4.22</td><td className="num">94.82%</td><td className="num">4.04</td><td className="num">8</td><td className="num">696</td></tr>
<tr><td><span className="rk">9</span></td><td className="model">Qwen3.8-Flash-Next</td><td className="dim">默认(xhigh)</td><td className="metric" data-v="3.69"><span className="v">3.69</span><span className="bar"><i></i></span></td><td className="num">3.30</td><td className="num">4.29</td><td className="num">4.26</td><td className="num">92.81%</td><td className="num">3.69</td><td className="num">6</td><td className="num">601</td></tr>
<tr><td><span className="rk">10</span></td><td className="model">Gemini-3.8-Flash</td><td className="dim">默认(medium)</td><td className="metric" data-v="3.62"><span className="v">3.62</span><span className="bar"><i></i></span></td><td className="num">3.23</td><td className="num">4.05</td><td className="num">4.72</td><td className="num">86.17%</td><td className="num">2.08</td><td className="num">3</td><td className="num">391</td></tr>
<tr><td><span className="rk">11</span></td><td className="model">GPT-5.6 Sol</td><td className="dim">默认(medium)</td><td className="metric" data-v="3.59"><span className="v">3.59</span><span className="bar"><i></i></span></td><td className="num">3.26</td><td className="num">3.81</td><td className="num">4.89</td><td className="num">85.37%</td><td className="num">2.00</td><td className="num">4</td><td className="num">225</td></tr>
</tbody>
</table>
</div>
<div className="note">
<strong>选型推荐</strong>
<ul>
<li><strong>质量优先选 Grok 4.7</strong> — 综合分第一,更忠于知识库内容。</li>
<li><strong>开源模型优先 GLM-5.3</strong> — 综合分第四,迭代次数较少、输出 token 适中。</li>
</ul>
</div>
<dl className="kv">
<div><dt>correctness</dt><dd><b>陈述是否被证据支持</b></dd></div>
<div><dt>completeness</dt><dd><b>关键子问题是否答全</b></dd></div>
<div><dt>constraint</dt><dd><b>回答是否遵循明确及必要约束</b></dd></div>
<div><dt>数据集</dt><dd><b>Academy 评测数据集</b></dd></div>
<div><dt>判分模型</dt><dd><b>GPT-6 Astra</b></dd></div>
<div><dt>分块</dt><dd><code>chunk_size=1000</code>、<code>chunk_overlap=200</code></dd></div>
<div><dt>Embed</dt><dd><b>nvidia/Nemotron-3-Embed-8B-BF16</b></dd></div>
<div><dt>Rerank</dt><dd><b>Qwen/Qwen3-Reranker-8B</b></dd></div>
<div><dt>检索参数</dt><dd><code>embedding_top_k=50</code>、<code>vector_threshold=0.27</code>、<code>rerank_top_k=8</code>、<code>rerank_threshold=0.3</code>、<code>keyword_threshold=0.3</code></dd></div>
</dl>
</div>
</div>
</div>
{/* 1.2 */}
<div className="panel" id="chat-knowledge" data-group="chat" hidden>
<div className="card">
<div className="card-head">
<h3>快速问答</h3>
<span className="tag key">排序指标 综合分 6:3:1</span>
</div>
<div className="card-body">
<div className="scroll">
<table>
<thead><tr>
<th className="rank">#</th><th>Chat</th><th>Think</th>
<th className="num metric">综合分</th><th className="num">correctness 正确性</th><th className="num">completeness 完整度</th><th className="num">constraint 约束遵循</th>
<th className="num">P50 token</th>
</tr></thead>
<tbody data-bar-col="2">
<tr className="lead-row"><td><span className="rk top">1</span></td><td className="model">GPT-6 Astra</td><td className="dim">默认(medium)</td><td className="metric" data-v="4.20"><span className="v">4.20</span><span className="bar"><i></i></span></td><td className="num">4.37</td><td className="num">3.75</td><td className="num">4.50</td><td className="num">186</td></tr>
<tr className="lead-row"><td><span className="rk top2">2</span></td><td className="model">GPT-5.6 Sol</td><td className="dim">默认(medium)</td><td className="metric" data-v="3.99"><span className="v">3.99</span><span className="bar"><i></i></span></td><td className="num">4.03</td><td className="num">3.74</td><td className="num">4.55</td><td className="num">154</td></tr>
<tr><td><span className="rk top2">3</span></td><td className="model">Gemini-3.8-Flash</td><td className="dim">默认(medium)</td><td className="metric" data-v="3.98"><span className="v">3.98</span><span className="bar"><i></i></span></td><td className="num">4.00</td><td className="num">3.78</td><td className="num">4.45</td><td className="num">250</td></tr>
<tr><td><span className="rk">4</span></td><td className="model">Hunyuan-3</td><td className="dim">默认(high)</td><td className="metric" data-v="3.96"><span className="v">3.96</span><span className="bar"><i></i></span></td><td className="num">4.00</td><td className="num">3.76</td><td className="num">4.32</td><td className="num">357</td></tr>
<tr><td><span className="rk">5</span></td><td className="model">DeepSeek-V4.1-Flash</td><td className="dim">默认(high)</td><td className="metric" data-v="3.93"><span className="v">3.93</span><span className="bar"><i></i></span></td><td className="num">3.94</td><td className="num">3.79</td><td className="num">4.26</td><td className="num">378</td></tr>
<tr><td><span className="rk">6</span></td><td className="model">Hunyuan-4-preview</td><td className="dim">默认(high)</td><td className="metric" data-v="3.93"><span className="v">3.93</span><span className="bar"><i></i></span></td><td className="num">3.98</td><td className="num">3.80</td><td className="num">4.02</td><td className="num">589</td></tr>
<tr><td><span className="rk">7</span></td><td className="model">Qwen3.8-Flash-Next</td><td className="dim">默认(xhigh)</td><td className="metric" data-v="3.88"><span className="v">3.88</span><span className="bar"><i></i></span></td><td className="num">3.86</td><td className="num">3.75</td><td className="num">4.35</td><td className="num">293</td></tr>
<tr><td><span className="rk">8</span></td><td className="model">GLM-5.3-Flash</td><td className="dim">high</td><td className="metric" data-v="3.85"><span className="v">3.85</span><span className="bar"><i></i></span></td><td className="num">3.76</td><td className="num">3.84</td><td className="num">4.38</td><td className="num">375</td></tr>
<tr><td><span className="rk">9</span></td><td className="model">GLM-5.3</td><td className="dim">high</td><td className="metric" data-v="3.83"><span className="v">3.83</span><span className="bar"><i></i></span></td><td className="num">3.74</td><td className="num">3.84</td><td className="num">4.38</td><td className="num">391</td></tr>
<tr><td><span className="rk">10</span></td><td className="model">Grok 4.7</td><td className="dim">默认(high)</td><td className="metric" data-v="3.82"><span className="v">3.82</span><span className="bar"><i></i></span></td><td className="num">3.80</td><td className="num">3.71</td><td className="num">4.25</td><td className="num">270</td></tr>
<tr><td><span className="rk">11</span></td><td className="model">Claude Opus 5</td><td className="dim">默认(high)</td><td className="metric" data-v="3.73"><span className="v">3.73</span><span className="bar"><i></i></span></td><td className="num">3.61</td><td className="num">3.88</td><td className="num">3.98</td><td className="num">604</td></tr>
</tbody>
</table>
</div>
<div className="note">
<strong>选型推荐</strong>
<ul>
<li><strong>质量优先选 GPT-6 Astra</strong> — 综合分排名第一。</li>
<li><strong>开源模型优先选 Hunyuan-3</strong> — 综合分可排在第二梯队。</li>
</ul>
</div>
<dl className="kv">
<div><dt>correctness</dt><dd><b>陈述是否被证据支持</b></dd></div>
<div><dt>completeness</dt><dd><b>关键子问题是否答全</b></dd></div>
<div><dt>constraint</dt><dd><b>回答是否遵循明确及必要约束</b></dd></div>
<div><dt>数据集</dt><dd><b>Academy 评测数据集</b></dd></div>
<div><dt>判分模型</dt><dd><b>GPT-6 Astra</b></dd></div>
<div><dt>分块</dt><dd><code>chunk_size=1000</code>、<code>chunk_overlap=200</code></dd></div>
<div><dt>Embed</dt><dd><b>nvidia/Nemotron-3-Embed-8B-BF16</b></dd></div>
<div><dt>Rerank</dt><dd><b>Qwen/Qwen3-Reranker-8B</b></dd></div>
<div><dt>检索参数</dt><dd><code>embedding_top_k=50</code>、<code>vector_threshold=0.27</code>、<code>rerank_top_k=8</code>、<code>rerank_threshold=0.3</code>、<code>keyword_threshold=0.3</code></dd></div>
</dl>
</div>
</div>
</div>
<div className="card">
<div className="card-head">
<h3>榜单解读</h3>
</div>
<div className="card-body">
<dl className="kv">
<div><dt>智能推理领先,未必快速问答领先</dt><dd>快速问答侧重固定上下文下的答案生成,智能推理还考验检索规划、工具调用与证据整合。两种模式并非替代关系,需按场景使用,复杂问题使用智能推理,简单问题选择快速问答。</dd></div>
</dl>
<dl className="kv">
<div><dt>存在自评偏差</dt><dd>GPT-6 Astra 自评会放大自身优势,但 Qwen3.8-27B 复评与其排名相关性仍达 0.80(快速问答)和 0.89(智能推理)。榜单可用于判断模型梯队、场景适配和明显差距;细微名次及自评领先幅度仍需多判官或人工盲审确认。</dd></div>
</dl>
<dl className="kv">
<div><dt>思考强度的配置</dt><dd>优先选择官方api提供的默认配置,GLM 模型的默认思考强度(max),易超出上下文限制16384故而降低一档</dd></div>
</dl>
</div>
</div>
</section>
{/* ================= 2. Embed ================= */}
<section id="embed">
<div className="sec-head">
<span className="sec-idx">02</span>
<h2>Embed</h2>
<span className="sec-sub">向量检索</span>
</div>
<div className="tabs" role="tablist" data-tabs="embed">
<button className="tab" role="tab" aria-selected="true" data-panel="embed-rerank">2.1 召回率</button>
<button className="tab" role="tab" aria-selected="false" data-panel="embed-only">2.2 召回排序</button>
</div>
{/* 2.1 */}
<div className="panel" id="embed-rerank" data-group="embed">
<div className="card">
<div className="card-head">
<h3>召回率</h3>
<span className="tag key">排序指标 Recall@100</span>
<span className="tag">适用:embed 召回后使用 rerank 进行精排,产品能提供 rerank 模型</span>
</div>
<div className="card-body">
<div className="scroll" style={{ marginTop: 0 }}>
<table>
<thead><tr>
<th className="rank">#</th><th>模型</th>
<th className="num metric">Recall@100</th><th className="num">Recall@50</th><th className="num">Recall@10</th>
<th className="num">推荐 retrieve k</th><th className="num">推荐 rerank/LLM k</th><th>推荐 vector_threshold</th>
</tr></thead>
<tbody data-bar-col="2">
<tr className="lead-row"><td><span className="rk top">1</span></td><td className="model">nvidia/Nemotron-3-Embed-8B-BF16</td><td className="metric" data-v="0.92877"><span className="v">0.92877</span><span className="bar"><i></i></span></td><td className="num">0.91302</td><td className="num">0.85027</td><td className="num">50</td><td className="num">8</td><td className="dim">0.27</td></tr>
<tr className="lead-row"><td><span className="rk top2">2</span></td><td className="model">tencent/KaLM-Embedding-Gemma3-12B-2511</td><td className="metric" data-v="0.92682"><span className="v">0.92682</span><span className="bar"><i></i></span></td><td className="num">0.90775</td><td className="num">0.82704</td><td className="num">50</td><td className="num">8</td><td className="dim">0.45</td></tr>
<tr><td><span className="rk top2">3</span></td><td className="model">BAAI/bge-multilingual-gemma2</td><td className="metric" data-v="0.92134"><span className="v">0.92134</span><span className="bar"><i></i></span></td><td className="num">0.89952</td><td className="num">0.83392</td><td className="num">50</td><td className="num">8</td><td className="dim">0.25</td></tr>
<tr><td><span className="rk">4</span></td><td className="model">nvidia/llama-embed-nemotron-8b</td><td className="metric" data-v="0.91899"><span className="v">0.91899</span><span className="bar"><i></i></span></td><td className="num">0.90133</td><td className="num">0.83465</td><td className="num">50</td><td className="num">8</td><td className="dim">0.28</td></tr>
<tr><td><span className="rk">5</span></td><td className="model">Qwen/Qwen3-Embedding-8B</td><td className="metric" data-v="0.91704"><span className="v">0.91704</span><span className="bar"><i></i></span></td><td className="num">0.89429</td><td className="num">0.81379</td><td className="num">50–100</td><td className="num">8</td><td className="dim">0.44</td></tr>
<tr><td><span className="rk">6</span></td><td className="model">infly/inf-retriever-v1</td><td className="metric" data-v="0.91663"><span className="v">0.91663</span><span className="bar"><i></i></span></td><td className="num">0.89984</td><td className="num">0.82624</td><td className="num">50</td><td className="num">8</td><td className="dim">0.52</td></tr>
<tr><td><span className="rk">7</span></td><td className="model">Octen/Octen-Embedding-8B</td><td className="metric" data-v="0.91484"><span className="v">0.91484</span><span className="bar"><i></i></span></td><td className="num">0.89263</td><td className="num">0.81285</td><td className="num">50</td><td className="num">8</td><td className="dim">0.38</td></tr>
<tr><td><span className="rk">8</span></td><td className="model">microsoft/harrier-oss-v1-27b</td><td className="metric" data-v="0.91351"><span className="v">0.91351</span><span className="bar"><i></i></span></td><td className="num">0.89578</td><td className="num">0.81882</td><td className="num">50</td><td className="num">8</td><td className="dim">不启用 / ≤0.50</td></tr>
<tr><td><span className="rk">9</span></td><td className="model">tencent/WeMM-Embedding-9B</td><td className="metric" data-v="0.91289"><span className="v">0.91289</span><span className="bar"><i></i></span></td><td className="num">0.89092</td><td className="num">0.80677</td><td className="num">50</td><td className="num">8</td><td className="dim">0.41</td></tr>
<tr><td><span className="rk">10</span></td><td className="model">tencent/WeMM-Embedding-4B</td><td className="metric" data-v="0.91271"><span className="v">0.91271</span><span className="bar"><i></i></span></td><td className="num">0.88344</td><td className="num">0.80074</td><td className="num">50</td><td className="num">8</td><td className="dim">0.41</td></tr>
<tr><td><span className="rk">11</span></td><td className="model">infly/inf-retriever-v1-1.5b</td><td className="metric" data-v="0.91175"><span className="v">0.91175</span><span className="bar"><i></i></span></td><td className="num">0.88785</td><td className="num">0.81424</td><td className="num">50</td><td className="num">8</td><td className="dim">不启用 / ≤0.60</td></tr>
<tr><td><span className="rk">12</span></td><td className="model">Alibaba-NLP/gte-Qwen2-7B-instruct</td><td className="metric" data-v="0.90712"><span className="v">0.90712</span><span className="bar"><i></i></span></td><td className="num">0.87931</td><td className="num">0.80102</td><td className="num">50</td><td className="num">8–10</td><td className="dim">0.44</td></tr>
<tr><td><span className="rk">13</span></td><td className="model">Qwen/Qwen3-Embedding-4B</td><td className="metric" data-v="0.90702"><span className="v">0.90702</span><span className="bar"><i></i></span></td><td className="num">0.88952</td><td className="num">0.81706</td><td className="num">50</td><td className="num">8</td><td className="dim">0.45</td></tr>
<tr><td><span className="rk">14</span></td><td className="model">google/embeddinggemma-300m</td><td className="metric" data-v="0.90589"><span className="v">0.90589</span><span className="bar"><i></i></span></td><td className="num">0.88321</td><td className="num">0.81084</td><td className="num">50</td><td className="num">8</td><td className="dim">0.37</td></tr>
<tr><td><span className="rk">15</span></td><td className="model">codefuse-ai/F2LLM-v2-8B</td><td className="metric" data-v="0.90563"><span className="v">0.90563</span><span className="bar"><i></i></span></td><td className="num">0.88692</td><td className="num">0.79745</td><td className="num">50</td><td className="num">10</td><td className="dim">0.26</td></tr>
<tr><td><span className="rk">16</span></td><td className="model">microsoft/harrier-oss-v1-0.6b</td><td className="metric" data-v="0.89011"><span className="v">0.89011</span><span className="bar"><i></i></span></td><td className="num">0.86811</td><td className="num">0.78097</td><td className="num">100</td><td className="num">10</td><td className="dim">0.49</td></tr>
<tr><td><span className="rk">17</span></td><td className="model">BAAI/bge-m3</td><td className="metric" data-v="0.88338"><span className="v">0.88338</span><span className="bar"><i></i></span></td><td className="num">0.85892</td><td className="num">0.77859</td><td className="num">100</td><td className="num">10</td><td className="dim">0.47</td></tr>
<tr><td><span className="rk">18</span></td><td className="model">Linq-AI-Research/Linq-Embed-Mistral</td><td className="metric" data-v="0.87430"><span className="v">0.87430</span><span className="bar"><i></i></span></td><td className="num">0.84657</td><td className="num">0.75117</td><td className="num">100</td><td className="num">10</td><td className="dim">0.45</td></tr>
<tr><td><span className="rk">19</span></td><td className="model">jinaai/jina-embeddings-v5-text-small</td><td className="metric" data-v="0.86547"><span className="v">0.86547</span><span className="bar"><i></i></span></td><td className="num">0.84293</td><td className="num">0.76437</td><td className="num">100</td><td className="num">10</td><td className="dim">0.40</td></tr>
<tr><td><span className="rk">20</span></td><td className="model">intfloat/multilingual-e5-large-instruct</td><td className="metric" data-v="0.83219"><span className="v">0.83219</span><span className="bar"><i></i></span></td><td className="num">0.80373</td><td className="num">0.71529</td><td className="num">100</td><td className="num">10</td><td className="dim">不启用</td></tr>
</tbody>
</table>
</div>
<div className="note">
<strong>选型推荐</strong>
<ul>
<li><strong>首选 nvidia/Nemotron-3-Embed-8B-BF16</strong> — 召回覆盖最高,一套模型可同时用于直接检索和召回后精排。</li>
<li><strong>备选 tencent/KaLM-Embedding-Gemma3-12B-2511</strong> — 覆盖率接近,retrieve 50 后即可交给精排。</li>
</ul>
</div>
</div>
</div>
</div>
{/* 2.2 */}
<div className="panel" id="embed-only" data-group="embed" hidden>
<div className="card">
<div className="card-head">
<h3>召回排序</h3>
<span className="tag key">排序指标 NDCG@10</span>
<span className="tag">适用:向量 top-k 直接送 LLM,产品无精排</span>
</div>
<div className="card-body">
<div className="scroll" style={{ marginTop: 0 }}>
<table>
<thead><tr>
<th className="rank">#</th><th>模型</th>
<th className="num metric">NDCG@10</th><th className="num">Recall@10</th><th className="num">P@1</th>
<th className="num">推荐 embedding_top_k</th><th>推荐 vector_threshold</th>
</tr></thead>
<tbody data-bar-col="2">
<tr className="lead-row"><td><span className="rk top">1</span></td><td className="model">nvidia/Nemotron-3-Embed-8B-BF16</td><td className="metric" data-v="0.80114"><span className="v">0.80114</span><span className="bar"><i></i></span></td><td className="num">0.85027</td><td className="num">0.76872</td><td className="num">5–8</td><td className="dim">0.27</td></tr>
<tr className="lead-row"><td><span className="rk top2">2</span></td><td className="model">nvidia/llama-embed-nemotron-8b</td><td className="metric" data-v="0.77419"><span className="v">0.77419</span><span className="bar"><i></i></span></td><td className="num">0.83465</td><td className="num">0.73281</td><td className="num">5–8</td><td className="dim">0.28</td></tr>
<tr><td><span className="rk top2">3</span></td><td className="model">BAAI/bge-multilingual-gemma2</td><td className="metric" data-v="0.77355"><span className="v">0.77355</span><span className="bar"><i></i></span></td><td className="num">0.83392</td><td className="num">0.72855</td><td className="num">5–8</td><td className="dim">0.25</td></tr>
<tr><td><span className="rk">4</span></td><td className="model">infly/inf-retriever-v1</td><td className="metric" data-v="0.76031"><span className="v">0.76031</span><span className="bar"><i></i></span></td><td className="num">0.82624</td><td className="num">0.71333</td><td className="num">8</td><td className="dim">0.52</td></tr>
<tr><td><span className="rk">5</span></td><td className="model">microsoft/harrier-oss-v1-27b</td><td className="metric" data-v="0.75208"><span className="v">0.75208</span><span className="bar"><i></i></span></td><td className="num">0.81882</td><td className="num">0.70907</td><td className="num">8</td><td className="dim">不启用 / ≤0.50</td></tr>
<tr><td><span className="rk">6</span></td><td className="model">tencent/KaLM-Embedding-Gemma3-12B-2511</td><td className="metric" data-v="0.75097"><span className="v">0.75097</span><span className="bar"><i></i></span></td><td className="num">0.82704</td><td className="num">0.69324</td><td className="num">8</td><td className="dim">0.45</td></tr>
<tr><td><span className="rk">7</span></td><td className="model">Qwen/Qwen3-Embedding-4B</td><td className="metric" data-v="0.75008"><span className="v">0.75008</span><span className="bar"><i></i></span></td><td className="num">0.81706</td><td className="num">0.70481</td><td className="num">8</td><td className="dim">0.45</td></tr>
<tr><td><span className="rk">8</span></td><td className="model">google/embeddinggemma-300m</td><td className="metric" data-v="0.75005"><span className="v">0.75005</span><span className="bar"><i></i></span></td><td className="num">0.81084</td><td className="num">0.70724</td><td className="num">8</td><td className="dim">0.37</td></tr>
<tr><td><span className="rk">9</span></td><td className="model">Octen/Octen-Embedding-8B</td><td className="metric" data-v="0.74746"><span className="v">0.74746</span><span className="bar"><i></i></span></td><td className="num">0.81285</td><td className="num">0.70542</td><td className="num">8</td><td className="dim">0.38</td></tr>
<tr><td><span className="rk">10</span></td><td className="model">infly/inf-retriever-v1-1.5b</td><td className="metric" data-v="0.74626"><span className="v">0.74626</span><span className="bar"><i></i></span></td><td className="num">0.81424</td><td className="num">0.69629</td><td className="num">8</td><td className="dim">不启用 / ≤0.60</td></tr>
<tr><td><span className="rk">11</span></td><td className="model">Qwen/Qwen3-Embedding-8B</td><td className="metric" data-v="0.74496"><span className="v">0.74496</span><span className="bar"><i></i></span></td><td className="num">0.81379</td><td className="num">0.69324</td><td className="num">8–10</td><td className="dim">0.44</td></tr>
<tr><td><span className="rk">12</span></td><td className="model">tencent/WeMM-Embedding-9B</td><td className="metric" data-v="0.73072"><span className="v">0.73072</span><span className="bar"><i></i></span></td><td className="num">0.80677</td><td className="num">0.67438</td><td className="num">10</td><td className="dim">0.41</td></tr>
<tr><td><span className="rk">13</span></td><td className="model">tencent/WeMM-Embedding-4B</td><td className="metric" data-v="0.72771"><span className="v">0.72771</span><span className="bar"><i></i></span></td><td className="num">0.80074</td><td className="num">0.67498</td><td className="num">10</td><td className="dim">0.41</td></tr>
<tr><td><span className="rk">14</span></td><td className="model">Alibaba-NLP/gte-Qwen2-7B-instruct</td><td className="metric" data-v="0.72140"><span className="v">0.72140</span><span className="bar"><i></i></span></td><td className="num">0.80102</td><td className="num">0.66951</td><td className="num">10</td><td className="dim">0.44</td></tr>
<tr><td><span className="rk">15</span></td><td className="model">codefuse-ai/F2LLM-v2-8B</td><td className="metric" data-v="0.71855"><span className="v">0.71855</span><span className="bar"><i></i></span></td><td className="num">0.79745</td><td className="num">0.66525</td><td className="num">10</td><td className="dim">0.26</td></tr>
<tr><td><span className="rk">16</span></td><td className="model">BAAI/bge-m3</td><td className="metric" data-v="0.70954"><span className="v">0.70954</span><span className="bar"><i></i></span></td><td className="num">0.77859</td><td className="num">0.65673</td><td className="num">10</td><td className="dim">0.47</td></tr>
<tr><td><span className="rk">17</span></td><td className="model">microsoft/harrier-oss-v1-0.6b</td><td className="metric" data-v="0.70865"><span className="v">0.70865</span><span className="bar"><i></i></span></td><td className="num">0.78097</td><td className="num">0.65307</td><td className="num">10</td><td className="dim">0.49</td></tr>
<tr><td><span className="rk">18</span></td><td className="model">jinaai/jina-embeddings-v5-text-small</td><td className="metric" data-v="0.69806"><span className="v">0.69806</span><span className="bar"><i></i></span></td><td className="num">0.76437</td><td className="num">0.64820</td><td className="num">10</td><td className="dim">0.40</td></tr>
<tr><td><span className="rk">19</span></td><td className="model">Linq-AI-Research/Linq-Embed-Mistral</td><td className="metric" data-v="0.66628"><span className="v">0.66628</span><span className="bar"><i></i></span></td><td className="num">0.75117</td><td className="num">0.60316</td><td className="num">10</td><td className="dim">0.45</td></tr>
<tr><td><span className="rk">20</span></td><td className="model">intfloat/multilingual-e5-large-instruct</td><td className="metric" data-v="0.63496"><span className="v">0.63496</span><span className="bar"><i></i></span></td><td className="num">0.71529</td><td className="num">0.57091</td><td className="num">10</td><td className="dim">不启用</td></tr>
</tbody>
</table>
</div>
<div className="note">
<strong>选型推荐</strong>
<ul>
<li><strong>首选 nvidia/Nemotron-3-Embed-8B-BF16</strong> — 前排质量最高,适合取 top 5–8 直接送 LLM。</li>
<li><strong>资源受限可选 google/embeddinggemma-300m</strong> — 仅 300M 参数,NDCG@10 与 Qwen3-4B 几乎持平。</li>
</ul>
</div>
</div>
</div>
</div>
</section>
{/* ================= 3. Rerank ================= */}
<section id="rerank">
<div className="sec-head">
<span className="sec-idx">03</span>
<h2>Rerank</h2>
<span className="sec-sub">固定向量召回的前 100 条候选,只比较精排模型</span>
</div>
<div className="card" style={{ marginTop: 22 }}>
<div className="card-head">
<h3>精排模型</h3>
<span className="tag key">排序指标 NDCG@10</span>
</div>
<div className="card-body">
<div className="scroll">
<table>
<thead><tr>
<th className="rank">#</th><th>模型</th>
<th className="num metric">NDCG@10</th><th className="num">P@1</th><th className="num">MRR@10</th><th className="num">Recall@10</th>
</tr></thead>
<tbody data-bar-col="2">
<tr className="lead-row"><td><span className="rk top">1</span></td><td className="model">Qwen/Qwen3-Reranker-8B</td><td className="metric" data-v="0.83609"><span className="v">0.83609</span><span className="bar"><i></i></span></td><td className="num">0.81984</td><td className="num">0.87762</td><td className="num">0.87138</td></tr>
<tr className="lead-row"><td><span className="rk top2">2</span></td><td className="model">jinaai/jina-reranker-v3.5</td><td className="metric" data-v="0.83271"><span className="v">0.83271</span><span className="bar"><i></i></span></td><td className="num">0.83019</td><td className="num">0.87968</td><td className="num">0.85638</td></tr>
<tr><td><span className="rk top2">3</span></td><td className="model">nvidia/llama-nemotron-rerank-1b-v2</td><td className="metric" data-v="0.82449"><span className="v">0.82449</span><span className="bar"><i></i></span></td><td className="num">0.81010</td><td className="num">0.87286</td><td className="num">0.86411</td></tr>
<tr><td><span className="rk">4</span></td><td className="model">BAAI/bge-reranker-v2-gemma</td><td className="metric" data-v="0.81764"><span className="v">0.81764</span><span className="bar"><i></i></span></td><td className="num">0.79732</td><td className="num">0.85972</td><td className="num">0.85650</td></tr>
<tr><td><span className="rk">5</span></td><td className="model">Qwen/Qwen3-Reranker-0.6B</td><td className="metric" data-v="0.81003"><span className="v">0.81003</span><span className="bar"><i></i></span></td><td className="num">0.78211</td><td className="num">0.84985</td><td className="num">0.85363</td></tr>
<tr><td><span className="rk">6</span></td><td className="model">BAAI/bge-reranker-v2-m3</td><td className="metric" data-v="0.80751"><span className="v">0.80751</span><span className="bar"><i></i></span></td><td className="num">0.79245</td><td className="num">0.84903</td><td className="num">0.84452</td></tr>
<tr><td><span className="rk">7</span></td><td className="model">mixedbread-ai/mxbai-rerank-base-v2</td><td className="metric" data-v="0.80574"><span className="v">0.80574</span><span className="bar"><i></i></span></td><td className="num">0.78515</td><td className="num">0.84358</td><td className="num">0.84680</td></tr>
<tr><td><span className="rk">8</span></td><td className="model">zeroentropy/zerank-2-reranker</td><td className="metric" data-v="0.79841"><span className="v">0.79841</span><span className="bar"><i></i></span></td><td className="num">0.77115</td><td className="num">0.83475</td><td className="num">0.84777</td></tr>
<tr><td><span className="rk">9</span></td><td className="model">Alibaba-NLP/gte-multilingual-reranker-base</td><td className="metric" data-v="0.78978"><span className="v">0.78978</span><span className="bar"><i></i></span></td><td className="num">0.76019</td><td className="num">0.82483</td><td className="num">0.83848</td></tr>
<tr><td><span className="rk">10</span></td><td className="model">jinaai/jina-reranker-v2-base-multilingual</td><td className="metric" data-v="0.78093"><span className="v">0.78093</span><span className="bar"><i></i></span></td><td className="num">0.75593</td><td className="num">0.82146</td><td className="num">0.82864</td></tr>
<tr><td><span className="rk">11</span></td><td className="model">Alibaba-NLP/gte-reranker-modernbert-base</td><td className="metric" data-v="0.71176"><span className="v">0.71176</span><span className="bar"><i></i></span></td><td className="num">0.66586</td><td className="num">0.74086</td><td className="num">0.77675</td></tr>
<tr><td><span className="rk">12</span></td><td className="model">Qwen/Qwen3-Reranker-4B</td><td className="metric" data-v="0.70408"><span className="v">0.70408</span><span className="bar"><i></i></span></td><td className="num">0.64760</td><td className="num">0.73794</td><td className="num">0.77447</td></tr>
</tbody>
</table>
</div>
<div className="note">
<strong>选型推荐</strong>
<ul>
<li><strong>首选 Qwen/Qwen3-Reranker-8B</strong> — 综合排序质量最高,适合优先保证精排效果。</li>
<li><strong>资源受限可选 jinaai/jina-reranker-v3.5</strong> — 仅 0.6B 参数,NDCG 接近首选,且首位命中表现更好。</li>
</ul>
</div>
<dl className="kv">
<div><dt>固定 Embed</dt><dd><b>nvidia/Nemotron-3-Embed-8B-BF16</b></dd></div>
<div><dt>候选池</dt><dd>来自 Nemotron-3-Embed 前 100</dd></div>
<div><dt>Recall@100</dt><dd><b>0.92877</b></dd></div>
</dl>
</div>
</div>
</section>
{/* ================= 4. 数据集 ================= */}
<section id="dataset">
<div className="sec-head">
<span className="sec-idx">04</span>
<h2>数据集</h2>
<span className="sec-sub">问题类型与语料构成</span>
</div>
<div className="card dataset-card" style={{ marginTop: 22 }}>
<div className="card-body">
<dl className="dataset-facts">
<div className="dataset-count">
<dt>数据规模</dt>
<dd><b>1.6K</b> 条问答,<b>40K</b> 条语料</dd>
</div>
<div>
<dt>问题分类</dt>
<dd>
<ul>
<li>基础能力</li>
<li>精确细节</li>
<li>多跳推理</li>
<li>反常识</li>
<li>无答案</li>
<li>干扰负例</li>
<li>多版本答案</li>
<li>结构化提取</li>
</ul>
</dd>
</div>
<div>
<dt>语料大类</dt>
<dd>
<ul>
<li>百科</li>
<li>书籍</li>
<li>新闻</li>
<li>科普</li>
<li>问答</li>
<li>公众号文章</li>
</ul>
<span className="dataset-more">及其他来源</span>
</dd>
</div>
</dl>
<div className="note info dataset-note">
<strong>数据与流程即将开源</strong>
评测数据集、评估流程与更多模型的评测结果正在整理,将在近期陆续开源,届时在本页补充仓库与下载链接。
</div>
</div>
</div>
</section>
</main>
<footer>
<div className="wrap foot-in">
<span>Academy 模型评测</span>
<span>数据截至 2026-10-08</span>
<span>Academy 版本 v0.8.0</span>
</div>
</footer>
</div>
</div>
);
}
+152
View File
@@ -0,0 +1,152 @@
import { existsSync } from "node:fs";
import { join } from "node:path";
import Image from "next/image";
import { BrandLogo } from "./brand-logo";
import { Icon } from "./ui";
import { homeAssets } from "../../shared/header";
import { ProductGallery, type GalleryShot, type GallerySlide } from "./product-gallery";
import { Header, ProductVideo } from "./interactive";
import { clients, dataSources, modelProviders, IntegrationMark } from "./brands";
import s from "./home.module.css";
const repo = "https://github.com/Tencent/WeKnora";
const docs = "/docs/";
const guide = (path: string) => `${docs}${path}.html`;
const modes = [
{ number: "01", icon: "search", label: "RAG", title: "回答有据可查", description: "结合语义与关键词检索查找相关资料,回答附带来源引用,可打开原文核对。", tags: ["混合检索", "多模态解析", "原文引用"], link: "03-features/05-retrieval-engines" },
{ number: "02", icon: "agent", label: "Agent", title: "用知识和工具完成任务", description: "检索资料、调用 MCP 工具与技能,在沙箱或本机浏览器中完成任务。保留长期记忆,对话中可追加要求、分叉或回滚。", tags: ["多步推理", "技能与沙箱", "本机浏览器", "MCP 工具", "长期记忆"], link: "03-features/07-agent" },
{ number: "03", icon: "wiki", label: "Wiki", title: "把文档整理成 Wiki", description: "从原始文档生成相互链接的 Wiki 页面与知识图谱,支持浏览、编辑和版本回滚。", tags: ["自动组织", "知识图谱", "版本回滚"], link: "03-features/14-wiki" },
];
const releaseExtras = [
{ name: "附件按需读取", link: "03-features/18-chat-experience" },
{ name: "平台用户管理", link: "03-features/20-platform-admin" },
{ name: "Seafile 数据源", link: "03-features/25-seafile" },
{ name: "Docker 交互终端", link: "03-features/22-skills-sandbox" },
];
const productShotExists = (src: string) => existsSync(join(process.cwd(), "public", src));
type SlideSource = Omit<GallerySlide, "shots"> & ({ image: string; alt: string } | { shots: Omit<GalleryShot, "available">[] });
const withAvailability = (slide: SlideSource): GallerySlide => {
const shots = "shots" in slide ? slide.shots : [{ image: slide.image, alt: slide.alt }];
return { name: slide.name, icon: slide.icon, title: slide.title, description: slide.description, link: slide.link, external: slide.external, shots: shots.map(shot => ({ ...shot, available: productShotExists(`${homeAssets}/product/${shot.image}.png`) })) };
};
const releaseSlides = [
{ name: "画廊", icon: "monitor", shots: [{ label: "浏览图片", icon: "monitor", image: "kb-image-gallery", alt: "知识库画廊:图片瀑布流与来源文档筛选" }, { label: "查看详情", icon: "file", image: "kb-image-gallery-detail", alt: "画廊图片详情:查看原图、图片描述、识别文字与来源文档" }], title: "文档图片,集中浏览", description: "集中浏览文档图片,按来源、描述和图片属性筛选,查看原图与出处。", link: guide("03-features/02-knowledge-base") + "#image-gallery" },
{ name: "多模态 Embedding", icon: "search", image: "kb-image-vector-settings", title: "文字与图片,共同检索", description: <>让图片、图表与文字共同参与知识检索,用自然语言查找相关内容。支持<a className={s.inlineRepoLink} href="https://github.com/Tencent/WeMM-Embedding" target="_blank" rel="noreferrer" aria-label="腾讯 WeMM-Embedding GitHub 仓库(新窗口)"><Icon name="github" />腾讯 WeMM-Embedding<Icon name="external" /></a>、Qwen3-VL-Embedding 等模型。</>, alt: "多模态 Embedding:知识库图像处理中的图片向量检索开关", link: guide("03-features/02-knowledge-base") + "#multimodal-embedding" },
{ name: "Wiki 图谱", icon: "channels", image: "wiki-graph-groups", title: "知识关系,按主题展开", description: "关联页面按主题分组,在全图与分组之间切换,沿关系找到值得继续阅读的内容。", alt: "Wiki 图谱全景:主题分组、页面关系与节点类型图例", link: guide("03-features/14-wiki") + "#wiki-graph" },
{ name: "原文引用定位", icon: "trace", image: "chat-source-location", title: "从回答,回到原文", description: "点击回答中的引用,在原始文档中定位对应段落,对照上下文核对答案。", alt: "回答引用与原始文档中的对应段落高亮", link: guide("03-features/18-chat-experience") + "#查看回答与来源" },
].map(withAvailability);
const browserSlides = [
{ name: "执行任务", icon: "browser", title: "在自己的浏览器里完成任务",
description: "让智能体打开网页、查询信息、填写表单。任务过程实时可见,可随时暂停;遇到登录或验证码时由你接手,完成后继续。",
image: "local-browser-task", alt: "智能体操作本机浏览器,对话中显示任务预览与暂停控制",
link: guide("05-clients/09-local-browser"),
},
{ name: "连接扩展", icon: "plug", title: "连接 Chrome 或 Edge,开始使用",
description: "安装腾讯开源的 BrowserSkill 扩展,在工具箱中连接本机浏览器,查看连接状态,再将网页操作交给智能体。",
image: "browser-connection", alt: "工具箱的浏览器连接页,BrowserSkill 扩展已连接",
link: guide("05-clients/09-local-browser"),
external: { label: "BrowserSkill", href: "https://github.com/Tencent/BrowserSkill", logo: "browserskill.png" },
},
].map(withAvailability);
const wikiSlides = [
{ name: "知识图谱", icon: "channels", image: "wiki-graph-groups", title: "从整体关系,聚焦一组页面", description: "关联页面分组展示,配上主题说明。聚焦感兴趣的分组,沿链接阅读相关内容,随时返回全图。", alt: "Wiki 图谱:关联页面分组、主题说明和分组聚焦入口", link: guide("03-features/14-wiki") + "#wiki-graph" },
{ name: "页面浏览", icon: "wiki", image: "wiki-browser", title: "按主题整理,保留出处", description: "开启 Wiki 后,从知识库文档中提取人物、产品和概念,生成带来源引用的页面,按目录浏览。", alt: "Wiki 浏览器:按主题组织的目录、年假页面、关联条目和原始文档引用" },
{ name: "版本历史", icon: "history", image: "wiki-revision-history", title: "随时编辑,改动可回溯", description: "直接修订页面,也可让智能体协助维护。查看版本差异,必要时恢复到历史内容。", alt: "Wiki 版本历史:年假页面的历史版本列表、内容差异和回滚入口" },
].map(withAvailability);
const sandboxSlides = [
{ name: "会话级沙箱", icon: "sandbox", image: "skill-sandbox-chat", title: "在同一沙箱中继续执行任务", description: "支持 Docker、E2B、Cube。同一会话的多轮任务共用一个工作区,生成的文件可预览和下载;macOS Lite 还可绑定本机项目目录。", alt: "Academy 实际界面:智能体根据知识库生成 Word 文档,并在对话旁打开产物预览", link: guide("03-features/22-skills-sandbox") },
{ name: "图形桌面与终端", icon: "monitor", shots: [
{ label: "图形桌面", icon: "monitor", image: "sandbox-desktop", alt: "Academy 实际界面:对话右侧沙箱面板的桌面页签,显示沙箱内的 XFCE 图形桌面与文件管理器" },
{ label: "交互终端", icon: "terminal", image: "sandbox-terminal", alt: "Academy 实际界面:对话右侧的沙箱终端,列出工作区 output 目录中生成的 Word 文件" },
], title: "打开桌面和终端,看清每一步", description: "在对话旁连接 Docker、E2B 或 Cube 的交互终端;使用 E2B、Cube 的桌面模板时,还可打开图形桌面并亲自操作。", link: guide("03-features/22-skills-sandbox") },
{ name: "技能目录", icon: "skills", image: "skill-catalog", title: "安装、管理和复用技能", description: "从 ClawHub、SkillHub、Git 或 ZIP 安装技能,在空间内管理和复用;macOS Lite 也支持安装并运行本机技能。", alt: "Academy 实际界面:工具箱的技能管理页,列出 docx、pptx、pdf 技能及其安装到的沙箱", link: guide("03-features/22-skills-sandbox") },
].map(withAvailability);
export default function Home() {
return <div className={s.site}>
<a className={s.skipLink} href="#main">跳至正文</a>
<Header />
<main id="main">
<section className={`${s.shell} ${s.hero}`} aria-labelledby="hero-title">
<a href="#release" className={s.releaseLink}><span>v0.8.3</span> 画廊 · 多模态 Embedding · Wiki 图谱 · 原文引用 <Icon name="arrow" /></a>
<div className={s.heroGrid}>
<h1 id="hero-title">帮你找到答案,<br /><em>并将知识付诸实践。</em></h1>
<div className={s.heroAside}>
<p className={s.eyebrow}>TENCENT OPEN SOURCE · ACADEMY</p>
<p className={s.heroDescription}>腾讯开源的企业级知识管理框架。<br />汇集团队资料,用于知识问答、任务执行和 Wiki 整理。</p>
<div className={s.actions}><a className={s.primary} href="#get-started">开始使用 <Icon name="arrow" /></a><a className={s.secondary} href={repo} target="_blank" rel="noreferrer"><Icon name="github" /> GitHub</a></div>
<p className={s.heroNote}>RAG 问答 / Agent 推理 / 自动 Wiki</p>
</div>
</div>
<ProductVideo />
<div className={s.trustBar}><span><Icon name="github" /> 腾讯开源 · MIT License</span><span><Icon name="server" /> 支持私有化部署</span><span><Icon name="model" /> 自由选择模型与存储</span></div>
</section>
<section id="capabilities" className={`${s.chapter}`} data-tone="base" aria-labelledby="capabilities-title"><div className={s.shell}>
<div className={s.sectionHeading}><div><p className={s.eyebrow}>01 / KNOWLEDGE AT WORK</p><h2 id="capabilities-title">知识问答、任务执行与自动 Wiki</h2></div><p>查询资料用 RAG,处理多步任务用 Agent,<br />整理知识用 Wiki。三种能力共享同一知识库。</p></div>
<div className={s.modeGrid}>{modes.map(mode => <article className={s.mode} key={mode.label}>
<div className={s.modeTop}><Icon name={mode.icon} /><span>{mode.number} / {mode.label.toUpperCase()}</span></div>
<h3>{mode.title}</h3><p>{mode.description}</p><ul className={s.tags}>{mode.tags.map(tag => <li key={tag}>{tag}</li>)}</ul>
<a className={s.textLink} href={mode.label === "Wiki" ? "#wiki" : guide(mode.link)}>了解 {mode.label} <Icon name="arrow" /></a>
</article>)}</div>
</div></section>
<section id="release" className={`${s.chapter} ${s.chapterTint}`} data-tone="subtle" aria-labelledby="release-title"><div className={s.shell}>
<div className={s.sectionHeading}><div><p className={s.eyebrow}>02 / INTRODUCING v0.8.3</p><h2 id="release-title">图文检索、原文核对与知识组织</h2></div><a className={s.textLink} href={guide("07-releases/v0.8.3")}>查看版本说明 <Icon name="arrow" /></a></div>
<ProductGallery id="release-gallery" label="v0.8.3" slides={releaseSlides} layout="compact" />
<div className={s.releaseExtras}><span>本次更新还包括</span>{releaseExtras.map(item => <a className={s.textLink} key={item.name} href={guide(item.link)}>{item.name} <Icon name="arrow" /></a>)}</div>
</div></section>
<section id="agent-workflow" className={`${s.chapter}`} data-tone="base" aria-labelledby="agent-workflow-title"><div className={s.shell}>
<div className={s.sectionHeading}><div><p className={s.eyebrow}>03 / YOUR LOCAL BROWSER</p><h2 id="agent-workflow-title">让智能体操作你自己的浏览器</h2></div><a className={s.textLink} href={guide("05-clients/09-local-browser")}>连接本机浏览器 <Icon name="arrow" /></a></div>
<ProductGallery id="browser-gallery" label="本机浏览器" slides={browserSlides} layout="compact" />
</div></section>
<section id="skills-sandbox" className={`${s.chapter} ${s.chapterTint}`} data-tone="subtle" aria-labelledby="skills-sandbox-title"><div className={s.shell}>
<div className={s.sectionHeading}><div><p className={s.eyebrow}>04 / SKILLS &amp; SANDBOX</p><h2 id="skills-sandbox-title">智能体可以运行技能,也能生成文件。</h2></div><a className={s.textLink} href={guide("03-features/22-skills-sandbox")}>了解技能与沙箱 <Icon name="arrow" /></a></div>
<ProductGallery id="sandbox-gallery" label="技能与沙箱" slides={sandboxSlides} />
</div></section>
<section id="wiki" className={`${s.chapter} ${s.wiki}`} data-tone="base" aria-labelledby="wiki-title"><div className={s.shell}>
<div className={s.sectionHeading}>
<div><p className={s.eyebrow}>05 / AUTOMATIC WIKI</p><h2 id="wiki-title">把文档整理成可浏览的 Wiki。</h2></div>
<a className={s.textLink} href={guide("03-features/14-wiki")}>了解 Wiki 的使用方式 <Icon name="arrow" /></a>
</div>
<ProductGallery id="wiki-gallery" label="Wiki" slides={wikiSlides} />
</div></section>
<section id="ecosystem" className={`${s.chapter} ${s.chapterTint}`} data-tone="subtle" aria-labelledby="ecosystem-title"><div className={s.shell}>
<div className={s.sectionHeading}><div><p className={s.eyebrow}>06 / INTEGRATIONS</p><h2 id="ecosystem-title">数据源与工具集成</h2></div><p>同步飞书、Confluence、GitLab 等平台的资料,<br />通过 IM、浏览器插件、MCP Server 或 API 查询和使用。</p></div>
<div className={s.ecosystem}>
<div className={s.ecosystemColumn}><Icon name="sources" /><h3>导入与同步资料</h3><p>上传文件、导入网页,或连接外部数据源。</p><div className={s.integrations}>{dataSources.map(item => <span key={item.name}><IntegrationMark item={item} /></span>)}</div><a className={s.textLink} href={guide("03-features/10-datasource")}>数据源集成 <Icon name="arrow" /></a></div>
<div className={s.ecosystemCore}><BrandLogo /><span>团队知识库与智能体</span><div>理解 · 检索 · 推理 · 行动</div></div>
<div className={s.ecosystemColumn}><Icon name="channels" /><h3>在常用工具中访问</h3><p>支持 IM 问答、浏览器插件、MCP 客户端和开发工具集成。</p><div className={s.integrations}>{clients.map(item => <span key={item.name}><IntegrationMark item={item} /></span>)}</div><a className={s.textLink} href={guide("03-features/12-im-integration")}>客户端与渠道 <Icon name="arrow" /></a><div className={s.mcpEntry}><h4>通过 MCP Server 共享知识</h4><p>让 Claude、Cursor 等 AI 工具连接团队知识库,直接检索资料和提问。</p><a className={s.textLink} href={guide("03-features/08-mcp")}>配置 MCP 端点 <Icon name="arrow" /></a></div></div>
</div>
<div className={s.models}><span>模型由你选择 · 内置 30 家厂商 <a className={s.textLink} href={guide("03-features/06-models")}>查看全部 <Icon name="arrow" /></a></span>{modelProviders.map(item => <p key={item.name}><IntegrationMark item={item} /></p>)}</div>
</div></section>
<section id="enterprise" className={`${s.chapter}`} data-tone="base" aria-labelledby="enterprise-title"><div className={s.shell}>
<div className={s.sectionHeading}><div><p className={s.eyebrow}>07 / BUILT FOR YOUR TEAM</p><h2 id="enterprise-title">私有化部署,<br />按团队需要管理权限。</h2></div><p>配置数据存储与成员权限,<br />查看操作记录和任务运行状态。</p></div>
<div className={s.enterpriseGrid}><article><Icon name="server" /><h3>部署与存储</h3><p>支持 Docker、Kubernetes 与 Helm,也提供 Lite 单机版和桌面应用。模型、向量数据库和存储后端可按需替换,支持本地推理。</p></article><article><Icon name="shield" /><h3>空间与资源权限</h3><p>多空间隔离与四级角色矩阵。API Key 按能力和知识库限定范围,支持 OIDC 身份集成,可限制服务只访问白名单域名。</p></article><article><Icon name="trace" /><h3>审计与运行监控</h3><p>空间审计日志、运行时任务队列面板与 Langfuse 追踪,帮助团队定位问题、管理运行状态。</p></article></div>
</div></section>
<section id="get-started" className={`${s.chapter} ${s.chapterTint} ${s.closing}`} data-tone="subtle" aria-labelledby="closing-title"><div className={s.shell}>
<div className={s.sectionHeading}><div><p className={s.eyebrow}>GET STARTED</p><h2 id="closing-title">选择适合你的使用方式。</h2></div></div>
<div className={s.startGrid}>
<article className={s.startCard}>
<div className={s.startLabel}><Image className={s.startBrand} src={`${homeAssets}/brands/wechat-dialog.png`} alt="微信对话开放平台 Logo" width={32} height={32} /><span>在线使用</span></div>
<h3>微信对话开放平台</h3>
<p>在线管理知识库,将问答服务接入公众号、小程序等微信场景。</p>
<a className={s.textLink} href="https://chatbot.weixin.qq.com/login" target="_blank" rel="noreferrer">进入平台 <Icon name="external" /></a>
</article>
<article className={s.startCard}>
<div className={s.startLabel}><Image className={s.startBrand} src={`${homeAssets}/brands/tencent-cloud.ico`} alt="腾讯云 Logo" width={32} height={32} /><span>云端部署</span></div>
<h3>腾讯云轻量应用服务器</h3>
<p>通过应用模板部署 Academy,在自己的云服务器上运行。</p>
<a className={s.textLink} href="https://mc.tencent.com/s69nKCVz" target="_blank" rel="noreferrer">前往腾讯云部署 <Icon name="external" /></a>
</article>
<article className={s.startCard}>
<div className={s.startLabel}><BrandLogo /><span>自行部署</span></div>
<h3>部署到自己的环境</h3>
<p>使用 Docker 或 Kubernetes 部署,自行配置模型、存储和网络。</p>
<a className={s.textLink} href={guide("01-getting-started/02-installation")}>查看部署文档 <Icon name="arrow" /></a>
</article>
</div>
</div></section>
</main>
<footer className={`${s.shell} ${s.footer}`}><a className={s.brand} href="/" aria-label="Academy 首页"><BrandLogo /></a><p>Tencent Open Source · MIT License</p><nav aria-label="页脚导航"><a href={docs}>文档</a><a href={repo} target="_blank" rel="noreferrer">GitHub <Icon name="external" /></a><a href={`${repo}/blob/main/CHANGELOG.md`} target="_blank" rel="noreferrer">更新日志</a></nav></footer>
</div>;
}
@@ -0,0 +1,122 @@
"use client";
import Image from "next/image";
import { useEffect, useRef, useState, type CSSProperties, type ReactNode } from "react";
import { Icon } from "./ui";
import { homeAssets } from "../../shared/header";
import s from "./home.module.css";
export type GalleryShot = { label?: string; icon?: string; image: string; alt: string; available: boolean };
export type GallerySlide = {
name: string;
icon: string;
title: string;
description: ReactNode;
/** One screenshot, or several views of the same capability switched inside the figure. */
shots: GalleryShot[];
link?: string;
/** Optional external reference shown beside "了解更多", e.g. an upstream repository. */
external?: { label: string; href: string; logo?: string };
};
// The showcase plays itself once it is on screen: every screenshot stays for
// STEP_MS, and multi-view items walk through their views before moving on.
// Keyboard focus pauses it; any click stops it for good.
const STEP_MS = 4000;
const AUTO_ROUNDS = 2;
/** Feature descriptions beside a shared screenshot; each item switches its corresponding view. */
export function ProductGallery({ id, label, slides, layout = "sidebar" }: { id: string; label: string; slides: GallerySlide[]; layout?: "sidebar" | "compact" }) {
const root = useRef<HTMLDivElement>(null);
const [item, setItem] = useState(0);
const [shot, setShot] = useState(0);
const [auto, setAuto] = useState(true);
const [steps, setSteps] = useState(0);
const [visible, setVisible] = useState(false);
const [paused, setPaused] = useState(false);
const totalSteps = slides.reduce((count, slide) => count + slide.shots.length, 0);
const active = slides[item];
const activeShot = active.shots[shot];
useEffect(() => {
const element = root.current;
if (!element) return;
const observer = new IntersectionObserver(([entry]) => setVisible(entry.isIntersecting), { threshold: 0.4 });
observer.observe(element);
return () => observer.disconnect();
}, []);
const running = auto && visible && !paused;
useEffect(() => {
if (!running || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
const timer = window.setTimeout(() => {
const lastView = shot + 1 >= slides[item].shots.length;
setShot(lastView ? 0 : shot + 1);
if (lastView) setItem((item + 1) % slides.length);
setSteps(steps + 1);
if (steps + 1 >= totalSteps * AUTO_ROUNDS) setAuto(false);
}, STEP_MS);
return () => window.clearTimeout(timer);
}, [running, item, shot, steps, slides, totalSteps]);
function selectItem(index: number) {
setAuto(false);
setItem(index);
setShot(0);
}
function selectView(index: number, view: number) {
setAuto(false);
setItem(index);
setShot(view);
}
return <div id={id} ref={root} className={`${s.showcase} ${layout === "compact" ? s.showcaseCompact : ""}`} data-layout={layout} onFocus={() => setPaused(true)} onBlur={() => setPaused(false)}>
<div className={s.showcaseList} aria-label={`${label} 功能`}>
{slides.map((slide, index) => <div key={slide.name} className={s.showcaseItem} data-active={index === item} onClick={() => { if (index !== item) selectItem(index); }}>
<h3><button type="button" aria-pressed={index === item} onClick={event => { event.stopPropagation(); selectItem(index); }}>
<span className={s.showcaseName}><Icon name={slide.icon} />{slide.name}</span>
<span className={s.showcaseTitle}>{slide.title}</span>
</button></h3>
<div className={s.showcaseDetail}>
<p>{slide.description}</p>
{slide.shots.length > 1 && <div className={s.viewChips} aria-label={`${slide.name}截图`}>
{slide.shots.map((entry, view) => {
const current = index === item && view === shot;
return <button key={entry.image} type="button" aria-pressed={current} onClick={event => { event.stopPropagation(); selectView(index, view); }}>
<Icon name={entry.icon ?? slide.icon} />{entry.label}
{/* Restarted whenever the timer restarts (new step or resume), so the bar and the switch stay in step. */}
{auto && current && <span key={`${item}-${shot}-${steps}-${running}`} className={s.tabProgress} data-running={running} style={{ "--step-ms": `${STEP_MS}ms` } as CSSProperties} aria-hidden="true" />}
</button>;
})}
</div>}
{(slide.link || slide.external) && <div className={s.slideLinks}>
{slide.link && <a className={s.textLink} href={slide.link}>了解更多 <Icon name="arrow" /></a>}
{slide.external && <a className={`${s.textLink} ${s.externalLink}`} href={slide.external.href} target="_blank" rel="noreferrer">{slide.external.logo && <Image src={`${homeAssets}/brands/${slide.external.logo}`} alt="" aria-hidden="true" width={20} height={20} />}{slide.external.label}<Icon name="github" /></a>}
</div>}
</div>
</div>)}
</div>
<figure className={`${s.artifactFigure} ${s.showcaseFigure}`}>
<div className={s.artifactHeading}>
<span><Icon name={activeShot.icon ?? active.icon} />{active.name}{active.shots.length > 1 && activeShot.label && <em className={s.viewLabel}>· {activeShot.label}</em>}</span>
<div className={s.cardActions}>
{activeShot.available
? <a className={s.textLink} href={`${homeAssets}/product/${activeShot.image}.png`} target="_blank" rel="noreferrer" aria-label={`查看${active.name}原图(新窗口)`}>查看原图 <Icon name="external" /></a>
: <span className={s.pendingLabel}>待补充</span>}
</div>
</div>
{/* Every screenshot stays mounted in one cell so switching cross-fades without resizing. */}
<div className={`${s.artifactImage} ${s.shotStack}`}>
{slides.flatMap((slide, index) => slide.shots.map((entry, shotIndex) => {
const current = index === item && shotIndex === shot;
return <div key={entry.image} className={s.shotLayer} data-active={current} aria-hidden={!current}>
{entry.available
? <Image src={`${homeAssets}/product/${entry.image}.png`} alt={entry.alt} width={3840} height={2112} sizes="(min-width: 1100px) 60vw, 100vw" />
: <div className={s.shotPlaceholder} role="img" aria-label={entry.alt}><span>截图待补充</span><code>{`website-docs/homepage/public${homeAssets}/product/${entry.image}.png`}</code></div>}
</div>;
}))}
</div>
</figure>
</div>;
}
+39
View File
@@ -0,0 +1,39 @@
// VitePress uses this same key and the values light / dark / auto.
export const themeStorageKey = "vitepress-theme-appearance";
export const themeInitializationScript = `(function(){var t='auto';try{t=localStorage.getItem('${themeStorageKey}')||'auto'}catch(e){}document.documentElement.classList.toggle('dark',t==='dark'||(t!=='light'&&matchMedia('(prefers-color-scheme: dark)').matches))})()`;
export function getThemeSnapshot() {
return document.documentElement.classList.contains("dark");
}
export function subscribeToTheme(notify: () => void) {
const media = window.matchMedia("(prefers-color-scheme: dark)");
const applyPreference = () => {
let preference = "auto";
try { preference = localStorage.getItem(themeStorageKey) || "auto"; } catch { /* Storage can be disabled. */ }
document.documentElement.classList.toggle("dark", preference === "dark" || (preference !== "light" && media.matches));
notify();
};
const onStorage = (event: StorageEvent) => {
if (event.key === themeStorageKey || event.key === null) applyPreference();
};
const observer = new MutationObserver(notify);
observer.observe(document.documentElement, { attributes: true, attributeFilter: ["class"] });
media.addEventListener("change", applyPreference);
window.addEventListener("storage", onStorage);
window.addEventListener("pageshow", applyPreference);
applyPreference();
return () => {
observer.disconnect();
media.removeEventListener("change", applyPreference);
window.removeEventListener("storage", onStorage);
window.removeEventListener("pageshow", applyPreference);
};
}
export function toggleTheme() {
const dark = !getThemeSnapshot();
document.documentElement.classList.toggle("dark", dark);
try { localStorage.setItem(themeStorageKey, dark ? "dark" : "light"); } catch { /* The current page still switches. */ }
}
+35
View File
@@ -0,0 +1,35 @@
import type { ReactNode } from "react";
const paths: Record<string, ReactNode> = {
arrow: <path d="M4 12h15m-6-6 6 6-6 6" />,
external: <path d="M8 5H5v14h14v-3M12 5h7v7M10 14 19 5" />,
play: <path d="m9 5 11 7-11 7Z" />,
search: <><circle cx="10.5" cy="10.5" r="6.5" /><path d="m16 16 5 5M8 8h5M8 11h3" /></>,
agent: <><rect x="5" y="7" width="14" height="13" rx="3" /><path d="M12 3v4M2 11v5m20-5v5M9 12v1m6-1v1m-6 4h6" /><circle cx="12" cy="2.5" r=".5" /></>,
wiki: <><path d="M12 6C9 3 5 3 2 4v15c4-1 7 0 10 2 3-2 6-3 10-2V4c-3-1-7-1-10 2v15" /><path d="M5 8h3m-3 4h3m8-4h3m-3 4h3" /></>,
history: <><path d="M3 11a9 9 0 1 1 2.6 7.4M3 4v7h7M12 7v5l3 2" /></>,
skills: <><rect x="3" y="3" width="7" height="7" rx="1" /><rect x="14" y="3" width="7" height="7" rx="1" /><rect x="3" y="14" width="7" height="7" rx="1" /><path d="M14 17.5h7m-3.5-3.5v7" /></>,
sandbox: <><path d="m12 2 9 5v10l-9 5-9-5V7l9-5Zm0 10 9-5M12 12 3 7m9 5v10" /><path d="m7 4.8 10 5.5" /></>,
memory: <><path d="M12 7c-1-5-7-5-7 0-4 1-4 7 0 8-1 5 5 7 7 3 2 4 8 2 7-3 4-1 4-7 0-8 0-5-6-5-7 0Zm0 0v11M5 7c0 2 2 3 3 3m11-3c0 2-2 3-3 3M5 15l3-1m11 1-3-1" /></>,
file: <><path d="M14 2H5v20h14V7l-5-5Zm0 0v5h5M8 12h8m-8 4h6" /></>,
sources: <><path d="M3 7h7l2 3h9v10H3V7Zm3 0V3h11l3 3v4" /><path d="M7 14h10m-10 3h6" /></>,
channels: <><rect x="7" y="2" width="10" height="7" rx="1" /><rect x="2" y="16" width="8" height="6" rx="1" /><rect x="14" y="16" width="8" height="6" rx="1" /><path d="M12 9v4m-6 3v-3h12v3" /></>,
server: <><rect x="3" y="3" width="18" height="7" rx="1" /><rect x="3" y="14" width="18" height="7" rx="1" /><path d="M7 6.5h.01M7 17.5h.01M12 6.5h5m-5 11h5" /></>,
model: <><path d="m12 2 10 5-10 5L2 7l10-5Zm-10 10 10 5 10-5M2 17l10 5 10-5" /></>,
shield: <><path d="m12 2 9 4v6c0 5-5 8-9 10-4-2-9-5-9-10V6l9-4Z" /><path d="m8 12 3 3 5-6" /></>,
trace: <><path d="M3 3v18h18M6 15l4-5 4 3 6-8" /><circle cx="10" cy="10" r="1" /><circle cx="14" cy="13" r="1" /></>,
browser: <><rect x="2" y="4" width="20" height="16" rx="2" /><path d="M2 9h20M6 6.5h.01M9 6.5h.01" /><path d="m11 13 6 2.5-2.6.9-.9 2.6Z" /></>,
plug: <><path d="M9 2v5m6-5v5M6 7h12v4a6 6 0 0 1-12 0V7Zm6 10v5" /></>,
branch: <><circle cx="6" cy="5" r="2" /><circle cx="6" cy="19" r="2" /><circle cx="18" cy="8" r="2" /><path d="M6 7v10m12-7c0 4-6 3-11.2 7.4" /></>,
monitor: <><rect x="2" y="3" width="20" height="14" rx="2" /><path d="M8 21h8m-4-4v4M6 7h5m-5 3h3" /></>,
swap: <path d="M4 8h13l-3-3m6 11H7l3 3" />,
menu: <path d="M4 6h16M4 12h16M4 18h16" />,
close: <path d="m5 5 14 14M5 19 19 5" />,
code: <path d="m7 7-5 5 5 5m10-10 5 5-5 5m-3-14-4 18" />,
terminal: <><rect x="2" y="3" width="20" height="18" rx="2" /><path d="m6 8 4 4-4 4m7 0h5" /></>,
sun: <><circle cx="12" cy="12" r="4" /><path d="M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5" /></>,
moon: <path d="M20.8 13A9 9 0 0 1 11 3.2 9 9 0 1 0 20.8 13Z" />,
github: <path d="M9 19c-4.3 1.3-4.3-2.2-6-2.7m12 5v-3.5c0-1 .1-1.4-.5-2 3.4-.4 7-1.7 7-7.5a5.7 5.7 0 0 0-1.5-4 5.4 5.4 0 0 0-.1-4S18.6-.1 15.5 2a14 14 0 0 0-7 0C5.4-.1 4.1.3 4.1.3A5.4 5.4 0 0 0 4 4.3a5.7 5.7 0 0 0-1.5 4c0 5.8 3.6 7.1 7 7.5-.6.6-.6 1.2-.5 2V21" />,
};
export function Icon({ name }: { name: string }) {
return <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">{paths[name]}</svg>;
}
+25
View File
@@ -0,0 +1,25 @@
import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
{
rules: {
// <Link> navigation fetches RSC payloads from the site root, which the
// upstream router does not forward; plain links reload `/` instead.
"@next/next/no-html-link-for-pages": "off",
},
},
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
]),
]);
export default eslintConfig;
+6
View File
@@ -0,0 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
+22
View File
@@ -0,0 +1,22 @@
import type { NextConfig } from "next";
import { resolve } from "node:path";
import { homeAssets } from "../shared/header";
const nextConfig: NextConfig = {
turbopack: { root: resolve(__dirname, "..") },
output: "export",
// Chunks are requested from /docs/_home/_next/; build-site.mjs moves out/_next there.
assetPrefix: homeAssets,
trailingSlash: true,
images: {
unoptimized: true,
remotePatterns: [
{
protocol: "https",
hostname: "images.unsplash.com",
},
],
},
};
export default nextConfig;
File diff suppressed because it is too large. Load diff
+29
View File
@@ -0,0 +1,29 @@
{
"name": "academy_home_page",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"lint": "eslint",
"audit:content": "node scripts/audit-content.mjs",
"prebuild": "node scripts/sync-product-screenshots.mjs",
"predev": "node scripts/sync-product-screenshots.mjs",
"test:assets": "node --test scripts/sync-product-screenshots.test.mjs"
},
"dependencies": {
"next": "16.2.9",
"react": "19.2.4",
"react-dom": "19.2.4"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.2.9",
"tailwindcss": "^4",
"typescript": "^5"
}
}
+7
View File
@@ -0,0 +1,7 @@
const config = {
plugins: {
"@tailwindcss/postcss": {},
},
};
export default config;
Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 Tencent
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 LobeHub
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1 @@
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Claude</title><path d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z" fill="#D97757" fill-rule="nonzero"></path></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

@@ -0,0 +1 @@
<svg fill="none" height="63" viewBox="0 0 63 63" width="63" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="34.9087" x2="7.63224" y1="61.029" y2="13.7847"><stop offset="0" stop-color="#1e8e3e"/><stop offset="1" stop-color="#34a853"/></linearGradient><linearGradient id="b" gradientUnits="userSpaceOnUse" x1="26.9043" x2="54.1808" y1="63.0788" y2="15.8345"><stop offset="0" stop-color="#fcc934"/><stop offset="1" stop-color="#fbbc04"/></linearGradient><linearGradient id="c" gradientUnits="userSpaceOnUse" x1="4.22145" x2="58.7745" y1="19.6884" y2="19.6884"><stop offset="0" stop-color="#d93025"/><stop offset="1" stop-color="#ea4335"/></linearGradient><path d="m31.499 47.2466c8.6985 0 15.75-7.0515 15.75-15.75s-7.0515-15.75-15.75-15.75-15.75 7.0515-15.75 15.75 7.0515 15.75 15.75 15.75z" fill="#fff"/><path d="m17.8591 39.3751-13.63772-23.6212c-2.76527 4.788-4.22118922 10.2197-4.22137998 15.7489s1.45535998 10.961 4.22028998 15.7492c2.76494 4.7882 6.74181 8.7641 11.53071 11.5279 4.7889 2.7637 10.221 4.2179 15.7502 4.2164l13.6377-23.6212v-.0041c-1.3813 2.3954-3.369 4.3848-5.7632 5.7681s-5.1104 2.1118-7.8755 2.1122-5.4816-.7272-7.8762-2.1099c-2.3945-1.3826-4.3829-3.3714-5.7649-5.7663z" fill="url(#a)"/><path d="m45.1379 39.3741-13.6376 23.6212c5.5292.0008 10.9611-1.4542 15.7496-4.2187 4.7885-2.7644 8.7648-6.7408 11.5291-11.5294 2.7642-4.7887 4.219-10.2207 4.2181-15.7499-.001-5.5292-1.4577-10.9606-4.2237-15.7483h-27.2754l-.0034.0021c2.7651-.0014 5.4818.7254 7.8769 2.1071 2.3951 1.3818 4.3841 3.3698 5.767 5.7643 1.3829 2.3944 2.1109 5.1108 2.1109 7.8758-.0001 2.7651-.7283 5.4814-2.1113 7.8758z" fill="url(#b)"/><path d="m31.499 43.9688c6.8863 0 12.4688-5.5825 12.4688-12.4688s-5.5825-12.4688-12.4688-12.4688-12.4687 5.5825-12.4687 12.4688 5.5824 12.4688 12.4687 12.4688z" fill="#1a73e8"/><path d="m31.4991 15.75h27.2754c-2.764-4.7888-6.74-8.76553-11.5283-11.53029-4.7883-2.76475-10.2202-4.22010235-15.7494-4.21970992s-10.9608 1.45650992-15.7487 4.22194992c-4.788 2.76543-8.76341 6.74275-11.52666 11.53185l13.63766 23.6212.0035.0019c-1.3837-2.394-2.1127-5.11-2.1136-7.8751s.7264-5.4817 2.1086-7.8765c1.3821-2.3948 3.3706-4.3835 5.7652-5.7659 2.3947-1.3825 5.1112-2.11 7.8763-2.1094z" fill="url(#c)"/></svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

@@ -0,0 +1,11 @@
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 12C0 5.37258 5.37258 0 12 0H36C42.6274 0 48 5.37258 48 12V36C48 42.6274 42.6274 48 36 48H12C5.37258 48 0 42.6274 0 36V12Z" fill="#1868DB"/>
<g clip-path="url(#clip0_1_6000)">
<path d="M34.7396 28.5301C27.3329 24.9487 25.1691 24.4136 22.0484 24.4136C18.3866 24.4136 15.2658 25.9367 12.4779 30.2179L12.0202 30.9177C11.6457 31.494 11.5625 31.6998 11.5625 31.9468C11.5625 32.1938 11.6873 32.3996 12.145 32.6878L16.847 35.6105C17.0967 35.7752 17.3048 35.8575 17.5128 35.8575C17.7625 35.8575 17.9289 35.734 18.1786 35.3635L18.9276 34.2109C20.0927 32.4408 21.1329 31.8645 22.4645 31.8645C23.6296 31.8645 25.0027 32.1938 26.7087 33.0171L31.6188 35.3224C32.1181 35.5693 32.659 35.4458 32.9087 34.8695L35.2389 29.765C35.4886 29.1887 35.3221 28.8182 34.7396 28.5301ZM13.1437 19.5149C20.5504 23.0963 22.7141 23.6314 25.8349 23.6314C29.4966 23.6314 32.6174 22.1083 35.4053 17.8271L35.8631 17.1273C36.2376 16.551 36.3208 16.3452 36.3208 16.0982C36.3208 15.8512 36.1959 15.6454 35.7382 15.3572L31.0362 12.4345C30.7866 12.2698 30.5785 12.1875 30.3705 12.1875C30.1208 12.1875 29.9544 12.311 29.7047 12.6815L28.9557 13.8341C27.7906 15.6042 26.7504 16.1805 25.4188 16.1805C24.2537 16.1805 22.8806 15.8512 21.1745 15.0279L16.2645 12.7226C15.7652 12.4757 15.2242 12.5992 14.9746 13.1755L12.6444 18.28C12.3947 18.8563 12.5612 19.2268 13.1437 19.5149Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_1_6000">
<rect width="24.7583" height="23.67" fill="white" transform="translate(11.5625 12.1875)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

@@ -0,0 +1 @@
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>DeepSeek</title><path d="M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z" fill="#4D6BFE"></path></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="#1677ff" d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10s10-4.477 10-10S17.523 2 12 2m4.49 9.04l-.006.014c-.42.898-1.516 2.66-1.516 2.66l-.005-.012l-.32.558h1.543l-2.948 3.919l.67-2.666h-1.215l.422-1.763a17 17 0 0 0-1.223.349s-.646.378-1.862-.729c0 0-.82-.722-.344-.902c.202-.077.981-.175 1.595-.257a80 80 0 0 1 1.338-.172s-2.555.039-3.161-.057c-.606-.095-1.375-1.107-1.539-1.996c0 0-.253-.488.545-.257s4.101.9 4.101.9S8.27 9.312 7.983 8.99c-.286-.32-.841-1.754-.769-2.634c0 0 .031-.22.257-.16c0 0 3.176 1.45 5.347 2.245s4.06 1.199 3.816 2.228c-.02.087-.072.216-.144.37"/></svg>

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

@@ -0,0 +1 @@
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Gemini</title><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="#3186FF"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-0-_R_0_)"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-1-_R_0_)"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-2-_R_0_)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-0-_R_0_" x1="7" x2="11" y1="15.5" y2="12"><stop stop-color="#08B962"></stop><stop offset="1" stop-color="#08B962" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-1-_R_0_" x1="8" x2="11.5" y1="5.5" y2="11"><stop stop-color="#F94543"></stop><stop offset="1" stop-color="#F94543" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-2-_R_0_" x1="3.5" x2="17.5" y1="13.5" y2="12"><stop stop-color="#FABC12"></stop><stop offset=".46" stop-color="#FABC12" stop-opacity="0"></stop></linearGradient></defs></svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

@@ -0,0 +1 @@
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Hunyuan</title><circle cx="12" cy="12" fill="#0055E9" r="12"></circle><path d="M12 0c.518 0 1.028.033 1.528.096A6.188 6.188 0 0112.12 12.28l-.12.001c-2.99 0-5.242 2.179-5.554 5.11-.223 2.086.353 4.412 2.242 6.146C3.672 22.1 0 17.479 0 12 0 5.373 5.373 0 12 0z" fill="#A8DFF5"></path><path d="M5.286 5a2.438 2.438 0 01.682 3.38c-3.962 5.966-3.215 10.743 2.648 15.136C3.636 22.056 0 17.452 0 12c0-1.787.39-3.482 1.09-5.006.253-.435.525-.872.817-1.311A2.438 2.438 0 015.286 5z" fill="#0055E9"></path><path d="M12.98.04c.272.021.543.053.81.093.583.106 1.117.254 1.538.44 6.638 2.927 8.07 10.052 1.748 15.642a4.125 4.125 0 01-5.822-.358c-1.51-1.706-1.3-4.184.357-5.822.858-.848 3.108-1.223 4.045-2.441 1.257-1.634 2.122-6.009-2.523-7.506L12.98.039z" fill="#00BCFF"></path><path d="M13.528.096A6.187 6.187 0 0112 12.281a5.75 5.75 0 00-1.71.255c.147-.905.595-1.784 1.321-2.501.858-.848 3.108-1.223 4.045-2.441 1.27-1.651 2.14-6.104-2.676-7.554.184.014.367.033.548.056z" fill="#ECECEE"></path></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

@@ -0,0 +1 @@
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>ModelContextProtocol</title><path d="M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z"></path><path d="M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z"></path></svg>

After

Width:  |  Height:  |  Size: 978 B

@@ -0,0 +1 @@
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Minimax</title><defs><linearGradient id="lobe-icons-minimax-_R_0_" x1="0%" x2="100.182%" y1="50.057%" y2="50.057%"><stop offset="0%" stop-color="#E2167E"></stop><stop offset="100%" stop-color="#FE603C"></stop></linearGradient></defs><path d="M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z" fill="url(#lobe-icons-minimax-_R_0_)" fill-rule="nonzero"></path></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

@@ -0,0 +1 @@
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Kimi</title><path d="M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z" fill="#1783FF"></path><path d="M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z" fill="#1783FF"></path></svg>

After

Width:  |  Height:  |  Size: 776 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

@@ -0,0 +1 @@
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Ollama</title><path d="M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z"></path></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

@@ -0,0 +1 @@
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>OpenAI</title><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z"></path></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

@@ -0,0 +1 @@
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Qwen</title><path d="M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z" fill="url(#lobe-icons-qwen-_R_0_)" fill-rule="nonzero"></path><defs><linearGradient id="lobe-icons-qwen-_R_0_" x1="0%" x2="100%" y1="0%" y2="0%"><stop offset="0%" stop-color="#6336E7" stop-opacity=".84"></stop><stop offset="100%" stop-color="#6F69F7" stop-opacity=".84"></stop></linearGradient></defs></svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" role="img" aria-label="RSS">
<circle cx="14" cy="34" r="4" fill="#FF6600"/>
<path d="M10 22a18 18 0 0 1 18 18" fill="none" stroke="#FF6600" stroke-width="4" stroke-linecap="round"/>
<path d="M10 14a26 26 0 0 1 26 26" fill="none" stroke="#FF6600" stroke-width="4" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 256 256"><path fill="#e01e5a" d="M53.841 161.32c0 14.832-11.987 26.82-26.819 26.82S.203 176.152.203 161.32c0-14.831 11.987-26.818 26.82-26.818H53.84zm13.41 0c0-14.831 11.987-26.818 26.819-26.818s26.819 11.987 26.819 26.819v67.047c0 14.832-11.987 26.82-26.82 26.82c-14.83 0-26.818-11.988-26.818-26.82z"/><path fill="#36c5f0" d="M94.07 53.638c-14.832 0-26.82-11.987-26.82-26.819S79.239 0 94.07 0s26.819 11.987 26.819 26.819v26.82zm0 13.613c14.832 0 26.819 11.987 26.819 26.819s-11.987 26.819-26.82 26.819H26.82C11.987 120.889 0 108.902 0 94.069c0-14.83 11.987-26.818 26.819-26.818z"/><path fill="#2eb67d" d="M201.55 94.07c0-14.832 11.987-26.82 26.818-26.82s26.82 11.988 26.82 26.82s-11.988 26.819-26.82 26.819H201.55zm-13.41 0c0 14.832-11.988 26.819-26.82 26.819c-14.831 0-26.818-11.987-26.818-26.82V26.82C134.502 11.987 146.489 0 161.32 0s26.819 11.987 26.819 26.819z"/><path fill="#ecb22e" d="M161.32 201.55c14.832 0 26.82 11.987 26.82 26.818s-11.988 26.82-26.82 26.82c-14.831 0-26.818-11.988-26.818-26.82V201.55zm0-13.41c-14.831 0-26.818-11.988-26.818-26.82c0-14.831 11.987-26.818 26.819-26.818h67.25c14.832 0 26.82 11.987 26.82 26.819s-11.988 26.819-26.82 26.819z"/></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 256 256"><defs><linearGradient id="SVG6DaOZcwt" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#2aabee"/><stop offset="100%" stop-color="#229ed9"/></linearGradient></defs><path fill="url(#SVG6DaOZcwt)" d="M128 0C94.06 0 61.48 13.494 37.5 37.49A128.04 128.04 0 0 0 0 128c0 33.934 13.5 66.514 37.5 90.51C61.48 242.506 94.06 256 128 256s66.52-13.494 90.5-37.49c24-23.996 37.5-56.576 37.5-90.51s-13.5-66.514-37.5-90.51C194.52 13.494 161.94 0 128 0"/><path fill="#fff" d="M57.94 126.648q55.98-24.384 74.64-32.152c35.56-14.786 42.94-17.354 47.76-17.441c1.06-.017 3.42.245 4.96 1.49c1.28 1.05 1.64 2.47 1.82 3.467c.16.996.38 3.266.2 5.038c-1.92 20.24-10.26 69.356-14.5 92.026c-1.78 9.592-5.32 12.808-8.74 13.122c-7.44.684-13.08-4.912-20.28-9.63c-11.26-7.386-17.62-11.982-28.56-19.188c-12.64-8.328-4.44-12.906 2.76-20.386c1.88-1.958 34.64-31.748 35.26-34.45c.08-.338.16-1.598-.6-2.262c-.74-.666-1.84-.438-2.64-.258c-1.14.256-19.12 12.152-54 35.686c-5.1 3.508-9.72 5.218-13.88 5.128c-4.56-.098-13.36-2.584-19.9-4.708c-8-2.606-14.38-3.984-13.82-8.41c.28-2.304 3.46-4.662 9.52-7.072"/></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 B

@@ -0,0 +1 @@
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Volcengine</title><path d="M19.44 10.153l-2.936 11.586a.215.215 0 00.214.261h5.87a.215.215 0 00.214-.261l-2.95-11.586a.214.214 0 00-.412 0zM3.28 12.778l-2.275 8.96A.214.214 0 001.22 22h4.532a.212.212 0 00.214-.165.214.214 0 000-.097l-2.276-8.96a.214.214 0 00-.41 0z" fill="#00E5E5"></path><path d="M7.29 5.359L3.148 21.738a.215.215 0 00.203.261h8.29a.214.214 0 00.215-.261L7.7 5.358a.214.214 0 00-.41 0z" fill="#006EFF"></path><path d="M14.44.15a.214.214 0 00-.41 0L8.366 21.739a.214.214 0 00.214.261H19.9a.216.216 0 00.171-.078.214.214 0 00.044-.183L14.439.15z" fill="#006EFF"></path><path d="M10.278 7.741L6.685 21.736a.214.214 0 00.214.264h7.17a.215.215 0 00.214-.264L10.688 7.741a.214.214 0 00-.41 0z" fill="#00E5E5"></path></svg>

After

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 1024 1024"><path fill="#0082EF" fill-rule="evenodd" d="M909.784 729.585a135.9 135.9 0 0 0-47.042 19.049a114.24 114.24 0 0 1-51.41 31.075c2.613-17.554 11.313-33.577 24.455-45.418a169.3 169.3 0 0 0 23.409-55.017c-.061-27.838 22.44-50.459 50.265-50.534c27.827-.076 50.45 22.423 50.539 50.26c.089 27.839-22.39 50.482-50.215 50.585zM817.568 608.83a168.8 168.8 0 0 0-54.808-23.68c-27.836 0-50.402-22.575-50.402-50.423s22.566-50.423 50.402-50.423s50.402 22.575 50.402 50.423a137.5 137.5 0 0 0 18.817 47.211a114.8 114.8 0 0 1 30.764 51.656a76.08 76.08 0 0 1-45.026-24.763h-.186zm-83.033-177.713C719.34 303.789 587.548 204.026 428.09 204.026c-169.874 0-308.088 113.097-308.088 252.19c2.72 78.1 43.941 149.778 110.063 191.385a311 311 0 0 0 33.602 21.588l-13.664 54.569c4.928 2.316 9.706 4.78 14.746 6.91l68.996-34.512c10.08 2.615 20.683 4.295 31.21 6.088c6.721 1.195 13.442 2.428 20.35 3.25a354.8 354.8 0 0 0 128.805-7.396a249 249 0 0 0 10.154 55.055a425.6 425.6 0 0 1-96.175 11.242a418 418 0 0 1-86.392-9.524l-125.186 62.526a27.62 27.62 0 0 1-29.98-3.137a28.02 28.02 0 0 1-9.67-28.611l22.401-90.239C117.176 643.186 66.463 553.506 64 456.216C64 285.973 227.004 148 428.09 148c190.93 0 347.29 124.527 362.521 282.818a245 245 0 0 0-26.47-2.614c-9.893.374-19.787 1.307-29.607 2.876zM618.237 629.934c16.764-3.362 32.706-9.786 47.042-19.049a114.24 114.24 0 0 1 51.447-31.001a76.47 76.47 0 0 1-24.491 45.344c-11.014 16.807-18.929 35.483-23.409 55.054c.041 27.833-22.468 50.435-50.29 50.497s-50.43-22.44-50.514-50.273c-.082-27.833 22.393-50.469 50.215-50.572m90.798 121.314c16.652 11.168 35.17 19.236 54.659 23.904c20.386 0 38.764 12.286 46.565 31.127s3.49 40.53-10.926 54.95a50.38 50.38 0 0 1-54.927 10.931c-18.834-7.804-31.114-26.19-31.114-46.585a136.7 136.7 0 0 0-18.668-47.285a114.7 114.7 0 0 1-30.54-51.805a76 76 0 0 1 44.951 25.062z"/></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -0,0 +1 @@
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Zhipu</title><path d="M11.991 23.503a.24.24 0 00-.244.248.24.24 0 00.244.249.24.24 0 00.245-.249.24.24 0 00-.22-.247l-.025-.001zM9.671 5.365a1.697 1.697 0 011.099 2.132l-.071.172-.016.04-.018.054c-.07.16-.104.32-.104.498-.035.71.47 1.279 1.186 1.314h.366c1.309.053 2.338 1.173 2.286 2.523-.052 1.332-1.152 2.38-2.478 2.327h-.174c-.715.018-1.274.64-1.239 1.368 0 .124.018.23.053.337.209.373.54.658.96.8.75.23 1.517-.125 1.9-.782l.018-.035c.402-.64 1.17-.96 1.92-.711.854.284 1.378 1.226 1.099 2.167a1.661 1.661 0 01-2.077 1.102 1.711 1.711 0 01-.907-.711l-.017-.035c-.2-.323-.463-.58-.851-.711l-.056-.018a1.646 1.646 0 00-1.954.746 1.66 1.66 0 01-1.065.764 1.677 1.677 0 01-1.989-1.279c-.209-.906.332-1.83 1.257-2.043a1.51 1.51 0 01.296-.035h.018c.68-.071 1.151-.622 1.116-1.333a1.307 1.307 0 00-.227-.693 2.515 2.515 0 01-.366-1.403 2.39 2.39 0 01.366-1.208c.14-.195.21-.444.227-.693.018-.71-.506-1.261-1.186-1.332l-.07-.018a1.43 1.43 0 01-.299-.07l-.05-.019a1.7 1.7 0 01-1.047-2.114 1.68 1.68 0 012.094-1.101zm-5.575 10.11c.26-.264.639-.367.994-.27.355.096.633.379.728.74.095.362-.007.748-.267 1.013-.402.41-1.053.41-1.455 0a1.062 1.062 0 010-1.482zm14.845-.294c.359-.09.738.024.992.297.254.274.344.665.237 1.025-.107.36-.396.634-.756.718-.551.128-1.1-.22-1.23-.781a1.05 1.05 0 01.757-1.26zm-.064-4.39c.314.32.49.753.49 1.206 0 .452-.176.886-.49 1.206-.315.32-.74.5-1.185.5-.444 0-.87-.18-1.184-.5a1.727 1.727 0 010-2.412 1.654 1.654 0 012.369 0zm-11.243.163c.364.484.447 1.128.218 1.691a1.665 1.665 0 01-2.188.923c-.855-.36-1.26-1.358-.907-2.228a1.68 1.68 0 011.33-1.038c.593-.08 1.183.169 1.547.652zm11.545-4.221c.368 0 .708.2.892.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.892.524c-.568 0-1.03-.47-1.03-1.048 0-.579.462-1.048 1.03-1.048zm-14.358 0c.368 0 .707.2.891.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.891.524c-.569 0-1.03-.47-1.03-1.048 0-.579.461-1.048 1.03-1.048zm10.031-1.475c.925 0 1.675.764 1.675 1.706s-.75 1.705-1.675 1.705-1.674-.763-1.674-1.705c0-.942.75-1.706 1.674-1.706zm-2.626-.684c.362-.082.653-.356.761-.718a1.062 1.062 0 00-.238-1.028 1.017 1.017 0 00-.996-.294c-.547.14-.881.7-.752 1.257.13.558.675.907 1.225.783zm0 16.876c.359-.087.644-.36.75-.72a1.062 1.062 0 00-.237-1.019 1.018 1.018 0 00-.985-.301 1.037 1.037 0 00-.762.717c-.108.361-.017.754.239 1.028.245.263.606.377.953.305l.043-.01zM17.19 3.5a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64a.631.631 0 00-.628.64c0 .355.28.64.628.64zm-10.38 0a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64a.631.631 0 00-.628.64c0 .355.279.64.628.64zm-5.182 7.852a.631.631 0 00-.628.64c0 .354.28.639.628.639a.63.63 0 00.627-.606l.001-.034a.62.62 0 00-.628-.64zm5.182 9.13a.631.631 0 00-.628.64c0 .355.279.64.628.64a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm10.38.018a.631.631 0 00-.628.64c0 .355.28.64.628.64a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64zm5.182-9.148a.631.631 0 00-.628.64c0 .354.279.639.628.639a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm-.384-4.992a.24.24 0 00.244-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249c0 .142.122.249.244.249zM11.991.497a.24.24 0 00.245-.248A.24.24 0 0011.99 0a.24.24 0 00-.244.249c0 .133.108.236.223.247l.021.001zM2.011 6.36a.24.24 0 00.245-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249.24.24 0 00.244.249zm0 11.263a.24.24 0 00-.243.248.24.24 0 00.244.249.24.24 0 00.244-.249.252.252 0 00-.244-.248zm19.995-.018a.24.24 0 00-.245.248.24.24 0 00.245.25.24.24 0 00.244-.25.252.252 0 00-.244-.248z" fill="#3859FF" fill-rule="nonzero"></path></svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 646 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 740 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 KiB

@@ -0,0 +1,52 @@
import assert from 'node:assert/strict';
import { readFile, stat } from 'node:fs/promises';
import { join } from 'node:path';
const output = join(process.cwd(), 'out');
const html = await readFile(join(output, 'index.html'), 'utf8');
const visible = html.replace(/<script\b[^>]*>[\s\S]*?<\/script>/g, '').replace(/<[^>]+>/g, '');
assert.equal((html.match(/<h1\b/g) || []).length, 1, 'The homepage must have one main heading');
for (const term of ['帮你找到答案', '并将知识付诸实践', 'v0.8.3', 'RAG', 'Agent', 'Wiki', 'ClawHub', 'SkillHub', 'Docker', 'E2B', 'Cube', '长期记忆', '交互终端', '图形桌面', '本机浏览器', 'BrowserSkill', 'MCP Server', '画廊', '多模态 Embedding', '腾讯 WeMM-Embedding', '内置 30 家厂商', '分叉或回滚', '原文引用定位', '附件按需读取', '平台用户管理', 'Seafile', 'Confluence', '钉钉', 'GitLab', '腾讯 IMA', 'LiteLLM', 'DeepSeek Harness']) {
assert.ok(visible.includes(term), `Missing product content: ${term}`);
}
for (const term of ['三套', '方案选择', '历史 Demo', '18K+', '成为行动力', '从零散文档', '到鲜活知识']) {
assert.ok(!visible.includes(term), `Retired content still visible: ${term}`);
}
assert.match(html, /<video[^>]+preload="none"/, 'Video should not load before user interaction');
assert.match(html, /https:\/\/github.com\/user-attachments\/assets\/2819598d-3140-4623-814a-8162a22b653c/, 'Use the README video');
assert.ok(!/<video[^>]+autoplay/i.test(html), 'Do not autoplay the product film');
const wiki = html.match(/<section id="wiki"[\s\S]*?<\/section>/)?.[0];
assert.ok(wiki, 'The homepage must include a dedicated Wiki section');
for (const term of ['/docs/_home/product/wiki-browser.png', '/docs/_home/product/wiki-graph-groups.png', '/docs/_home/product/wiki-revision-history.png', 'id="wiki-gallery"', '/docs/03-features/14-wiki.html', '来源引用', '知识图谱', '主题说明', '返回全图', '版本差异']) {
assert.ok(wiki.includes(term), `Missing Wiki showcase content: ${term}`);
}
// Release highlights and enduring capabilities must survive independently.
const release = html.match(/<section id="release"[\s\S]*?<\/section>/)?.[0];
for (const term of ['画廊', '多模态 Embedding', '腾讯 WeMM-Embedding', 'Wiki 图谱', '原文引用定位', '附件按需读取']) {
assert.ok(release?.includes(term), `Missing release highlight: ${term}`);
}
const browser = html.match(/<section id="agent-workflow"[\s\S]*?<\/section>/)?.[0];
assert.ok(browser?.includes('/docs/_home/product/local-browser-task.png') && browser.includes('BrowserSkill'), 'Keep the local browser showcase outside the release section');
for (const asset of ['browser-connection.png', 'browserskill.png']) {
assert.ok(browser.includes(asset), `Missing browser showcase asset: ${asset}`);
}
const ecosystem = html.match(/<section id="ecosystem"[\s\S]*?<\/section>/)?.[0];
assert.ok(ecosystem?.includes('通过 MCP Server 共享知识') && ecosystem.includes('/docs/03-features/08-mcp.html'), 'Keep MCP Server in the integrations section');
const ids = new Set([...html.matchAll(/\bid="([^"]+)"/g)].map(match => match[1]));
for (const [, anchor] of html.matchAll(/href="#([^"]+)"/g)) {
assert.ok(ids.has(anchor), `Missing navigation target: #${anchor}`);
}
const assets = new Set([...html.matchAll(/(?:src|href|poster)="(\/[^"?#]*)/g)].map(match => match[1]));
for (const asset of assets) {
const path = join(output, decodeURIComponent(asset));
let file = await stat(path);
if (file.isDirectory()) file = await stat(join(path, 'index.html'));
assert.ok(file.isFile() && file.size > 0, `Missing local asset: ${asset}`);
}
const pendingShots = [...html.matchAll(/website-docs\/homepage\/public(\/docs\/_home\/product\/[\w.-]+)/g)].map(match => match[1]);
// Gallery slides without a file render their placeholder only once selected; read the flag from the page data.
for (const [, image] of html.matchAll(/\\?"image\\?":\\?"([\w-]+)\\?"[^{}]*?\\?"available\\?":false/g)) pendingShots.push(`/docs/_home/product/${image}.png`);
if (pendingShots.length) console.warn(`Product screenshots still pending (placeholder shown): ${[...new Set(pendingShots)].join(', ')}`);
assert.match(html, /aria-controls="main-navigation"/);
assert.match(html, /aria-label="播放 Academy 产品介绍视频/);
console.log(`Homepage audit passed: product content, README video, navigation anchors, ${assets.size} local assets, and retired design choices.`);
@@ -0,0 +1,26 @@
import { copyFileSync, existsSync, readdirSync } from 'node:fs';
import { dirname, join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
// Documentation screenshots are authoritative; retain homepage-only assets.
export function syncProductScreenshots(source, destination) {
const aliases = { 'sandbox-terminal.png': 'sandbox-panel-terminal.png' };
let copied = 0;
for (const entry of readdirSync(destination, { withFileTypes: true })) {
if (!entry.isFile()) continue;
const original = join(source, aliases[entry.name] ?? entry.name);
if (!existsSync(original)) continue;
copyFileSync(original, join(destination, entry.name));
copied++;
}
return copied;
}
if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
const homepage = resolve(dirname(fileURLToPath(import.meta.url)), '..');
const copied = syncProductScreenshots(
resolve(homepage, '../public/screenshots'),
resolve(homepage, 'public/docs/_home/product'),
);
console.log(`Synchronized ${copied} product screenshots from documentation sources.`);
}
@@ -0,0 +1,27 @@
import assert from 'node:assert/strict';
import { mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { test } from 'node:test';
import { syncProductScreenshots } from './sync-product-screenshots.mjs';
test('refreshes changed source images and aliases without replacing homepage-only assets', t => {
const root = mkdtempSync(join(tmpdir(), 'academy-shots-'));
t.after(() => rmSync(root, { recursive: true, force: true }));
const source = join(root, 'source');
const destination = join(root, 'product');
mkdirSync(source);
mkdirSync(destination);
writeFileSync(join(source, 'wiki-graph-groups.png'), 'new graph');
writeFileSync(join(source, 'sandbox-panel-terminal.png'), 'new terminal');
writeFileSync(join(destination, 'wiki-graph-groups.png'), 'old graph');
writeFileSync(join(destination, 'sandbox-terminal.png'), 'old terminal');
writeFileSync(join(destination, 'homepage-only.png'), 'keep this');
assert.equal(syncProductScreenshots(source, destination), 2);
assert.equal(readFileSync(join(destination, 'wiki-graph-groups.png'), 'utf8'), 'new graph');
assert.equal(readFileSync(join(destination, 'sandbox-terminal.png'), 'utf8'), 'new terminal');
assert.equal(readFileSync(join(destination, 'homepage-only.png'), 'utf8'), 'keep this');
writeFileSync(join(source, 'wiki-graph-groups.png'), 'updated graph again');
syncProductScreenshots(source, destination);
assert.equal(readFileSync(join(destination, 'wiki-graph-groups.png'), 'utf8'), 'updated graph again');
});
+42
View File
@@ -0,0 +1,42 @@
{
"compilerOptions": {
"target": "ES2017",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": [
"./*"
]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts",
"**/*.mts"
],
"exclude": [
"node_modules"
]
}