chore: 初始化仓库,导入项目基线代码
Academy v0.8.3 完整代码基线:Go 后端(internal/cmd/cli/mcp-server/docreader)、 Vue 前端(frontend)、数据库迁移(migrations)、部署编排(docker/helm/deploy)与文档。 今日开发的培训推送管理改动随后单独提交。
This commit is contained in:
commit
7ec21f35b0
5767 files changed
+1436788
No files matched your search
@@ -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>;
|
||||
}
|
||||
@@ -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 />;
|
||||
}
|
||||
@@ -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; } }
|
||||
@@ -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; }
|
||||
@@ -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>;
|
||||
}
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
@@ -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 & 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>;
|
||||
}
|
||||
@@ -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. */ }
|
||||
}
|
||||
@@ -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>;
|
||||
}
|
||||
Reference in new issue
Block a user