From 6c23dac3b0105039bba7e362b502bbb2222914d3 Mon Sep 17 00:00:00 2001 From: begoniezhao Date: Thu, 15 Oct 2026 16:10:40 +0800 Subject: [PATCH] docs(site): add the model leaderboard page (#4333) Publish Chat, Embed, and Rerank comparisons at /docs/models so the site navigation can link to the same rankings. --- .../homepage/app/docs/models/layout.tsx | 5 + .../homepage/app/docs/models/page.tsx | 11 + website-docs/homepage/app/interactive.tsx | 17 +- .../homepage/app/model-leaderboard.css | 729 ++++++++++++++++++ .../homepage/app/model-leaderboard.tsx | 445 +++++++++++ website-docs/scripts/build-site.mjs | 4 + website-docs/shared/header.css | 20 + website-docs/shared/header.ts | 27 +- 8 files changed, 1255 insertions(+), 3 deletions(-) create mode 100644 website-docs/homepage/app/docs/models/layout.tsx create mode 100644 website-docs/homepage/app/docs/models/page.tsx create mode 100644 website-docs/homepage/app/model-leaderboard.css create mode 100644 website-docs/homepage/app/model-leaderboard.tsx diff --git a/website-docs/homepage/app/docs/models/layout.tsx b/website-docs/homepage/app/docs/models/layout.tsx new file mode 100644 index 00000000..f91bd0a8 --- /dev/null +++ b/website-docs/homepage/app/docs/models/layout.tsx @@ -0,0 +1,5 @@ +import "../../model-leaderboard.css"; + +export default function ModelsLayout({ children }: { children: React.ReactNode }) { + return children; +} diff --git a/website-docs/homepage/app/docs/models/page.tsx b/website-docs/homepage/app/docs/models/page.tsx new file mode 100644 index 00000000..76f6ccbb --- /dev/null +++ b/website-docs/homepage/app/docs/models/page.tsx @@ -0,0 +1,11 @@ +import type { Metadata } from "next"; +import { ModelLeaderboard } from "../../model-leaderboard"; + +export const metadata: Metadata = { + title: "WeKnora 模型评测 · Chat / Embed / Rerank", + description: "在相同数据以及配置参数下,横向对比 Chat、Embed 与 Rerank 的模型表现,并提供模型效果排行榜。", +}; + +export default function Page() { + return ; +} diff --git a/website-docs/homepage/app/interactive.tsx b/website-docs/homepage/app/interactive.tsx index d488eadd..89637659 100644 --- a/website-docs/homepage/app/interactive.tsx +++ b/website-docs/homepage/app/interactive.tsx @@ -20,9 +20,22 @@ export function Header() { const menu = useRef(null); return
{ if (event.key === "Escape" && open) { setOpen(false); menu.current?.focus(); } }}>
- + diff --git a/website-docs/homepage/app/model-leaderboard.css b/website-docs/homepage/app/model-leaderboard.css new file mode 100644 index 00000000..0ef65c0a --- /dev/null +++ b/website-docs/homepage/app/model-leaderboard.css @@ -0,0 +1,729 @@ +/* Restyled to WeKnora 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; + } +} diff --git a/website-docs/homepage/app/model-leaderboard.tsx b/website-docs/homepage/app/model-leaderboard.tsx new file mode 100644 index 00000000..139dfe51 --- /dev/null +++ b/website-docs/homepage/app/model-leaderboard.tsx @@ -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("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(".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(null); + useEffect(() => { + const root = rootRef.current; + if (!root) return; + paintMetricBars(root); + const cleanups: Array<() => void> = []; + root.querySelectorAll("[data-tabs]").forEach((bar) => { + const onClick = (event: Event) => { + const btn = (event.target as HTMLElement).closest(".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 ( +
+ 跳至正文 +
+
+
+
+

模型评测榜单

+

+ 在相同数据以及配置参数下,横向对比 Chat、Embed 与 Rerank 的模型表现,并提供模型效果排行榜。 +

+
+
+ +
+ + {/* ================= 1. Chat ================= */} +
+
+ 01 +

LLM

+ 固定检索与精排,只替换 Chat 模型 +
+
+ + +
+ + {/* 1.1 */} +
+
+
+

智能推理

+ 排序指标 综合分 6:3:1 +
+
+
+ + + + + + + + + + + + + + + + + + + +
#ChatThink Effort综合分correctness 正确性completeness 完整度constraint 约束遵循语料命中率平均语料数P50 迭代P50 token
1Grok 4.7默认(high)4.234.044.414.8095.19%3.694344
2GPT-6 Astra默认(medium)4.043.953.934.8885.19%1.764217
3Claude Opus 5默认(high)3.893.574.424.1694.09%4.706702
4GLM-5.3high3.853.504.264.7090.92%2.644475
5DeepSeek-V4.1-Flash默认(high)3.783.454.304.1592.93%3.264654
6GLM-5.3-Flashhigh3.753.354.264.6187.81%2.474507
7Hunyuan-3默认(high)3.743.394.194.5588.30%2.744574
8Hunyuan-4-preview默认(high)3.723.304.394.2294.82%4.048696
9Qwen3.8-Flash-Next默认(xhigh)3.693.304.294.2692.81%3.696601
10Gemini-3.8-Flash默认(medium)3.623.234.054.7286.17%2.083391
11GPT-5.6 Sol默认(medium)3.593.263.814.8985.37%2.004225
+
+
+ 选型推荐 +
    +
  • 质量优先选 Grok 4.7 — 综合分第一,更忠于知识库内容。
  • +
  • 开源模型优先 GLM-5.3 — 综合分第四,迭代次数较少、输出 token 适中。
  • +
+
+
+
correctness
陈述是否被证据支持
+
completeness
关键子问题是否答全
+
constraint
回答是否遵循明确及必要约束
+
数据集
WeKnora 评测数据集
+
判分模型
GPT-6 Astra
+
分块
chunk_size=1000、chunk_overlap=200
+
Embed
nvidia/Nemotron-3-Embed-8B-BF16
+
Rerank
Qwen/Qwen3-Reranker-8B
+
检索参数
embedding_top_k=50、vector_threshold=0.27、rerank_top_k=8、rerank_threshold=0.3、keyword_threshold=0.3
+
+
+
+
+ + {/* 1.2 */} + + +
+
+

榜单解读

+
+
+
+
智能推理领先,未必快速问答领先
快速问答侧重固定上下文下的答案生成,智能推理还考验检索规划、工具调用与证据整合。两种模式并非替代关系,需按场景使用,复杂问题使用智能推理,简单问题选择快速问答。
+
+
+
存在自评偏差
GPT-6 Astra 自评会放大自身优势,但 Qwen3.8-27B 复评与其排名相关性仍达 0.80(快速问答)和 0.89(智能推理)。榜单可用于判断模型梯队、场景适配和明显差距;细微名次及自评领先幅度仍需多判官或人工盲审确认。
+
+
+
思考强度的配置
优先选择官方api提供的默认配置,GLM 模型的默认思考强度(max),易超出上下文限制16384故而降低一档
+
+
+
+
+ + {/* ================= 2. Embed ================= */} +
+
+ 02 +

Embed

+ 向量检索 +
+ +
+ + +
+ + {/* 2.1 */} +
+
+
+

召回率

+ 排序指标 Recall@100 + 适用:embed 召回后使用 rerank 进行精排,产品能提供 rerank 模型 +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#模型Recall@100Recall@50Recall@10推荐 retrieve k推荐 rerank/LLM k推荐 vector_threshold
1nvidia/Nemotron-3-Embed-8B-BF160.928770.913020.850275080.27
2tencent/KaLM-Embedding-Gemma3-12B-25110.926820.907750.827045080.45
3BAAI/bge-multilingual-gemma20.921340.899520.833925080.25
4nvidia/llama-embed-nemotron-8b0.918990.901330.834655080.28
5Qwen/Qwen3-Embedding-8B0.917040.894290.8137950–10080.44
6infly/inf-retriever-v10.916630.899840.826245080.52
7Octen/Octen-Embedding-8B0.914840.892630.812855080.38
8microsoft/harrier-oss-v1-27b0.913510.895780.81882508不启用 / ≤0.50
9tencent/WeMM-Embedding-9B0.912890.890920.806775080.41
10tencent/WeMM-Embedding-4B0.912710.883440.800745080.41
11infly/inf-retriever-v1-1.5b0.911750.887850.81424508不启用 / ≤0.60
12Alibaba-NLP/gte-Qwen2-7B-instruct0.907120.879310.80102508–100.44
13Qwen/Qwen3-Embedding-4B0.907020.889520.817065080.45
14google/embeddinggemma-300m0.905890.883210.810845080.37
15codefuse-ai/F2LLM-v2-8B0.905630.886920.7974550100.26
16microsoft/harrier-oss-v1-0.6b0.890110.868110.78097100100.49
17BAAI/bge-m30.883380.858920.77859100100.47
18Linq-AI-Research/Linq-Embed-Mistral0.874300.846570.75117100100.45
19jinaai/jina-embeddings-v5-text-small0.865470.842930.76437100100.40
20intfloat/multilingual-e5-large-instruct0.832190.803730.7152910010不启用
+
+ +
+ 选型推荐 +
    +
  • 首选 nvidia/Nemotron-3-Embed-8B-BF16 — 召回覆盖最高,一套模型可同时用于直接检索和召回后精排。
  • +
  • 备选 tencent/KaLM-Embedding-Gemma3-12B-2511 — 覆盖率接近,retrieve 50 后即可交给精排。
  • +
+
+
+
+
+ + {/* 2.2 */} + + + +
+ + {/* ================= 3. Rerank ================= */} +
+
+ 03 +

Rerank

+ 固定向量召回的前 100 条候选,只比较精排模型 +
+
+
+

精排模型

+ 排序指标 NDCG@10 +
+
+
+ + + + + + + + + + + + + + + + + + + +
#模型NDCG@10P@1MRR@10Recall@10
1Qwen/Qwen3-Reranker-8B0.836090.819840.877620.87138
2jinaai/jina-reranker-v3.50.832710.830190.879680.85638
3nvidia/llama-nemotron-rerank-1b-v20.824490.810100.872860.86411
4BAAI/bge-reranker-v2-gemma0.817640.797320.859720.85650
5Qwen/Qwen3-Reranker-0.6B0.810030.782110.849850.85363
6BAAI/bge-reranker-v2-m30.807510.792450.849030.84452
7mixedbread-ai/mxbai-rerank-base-v20.805740.785150.843580.84680
8zeroentropy/zerank-2-reranker0.798410.771150.834750.84777
9Alibaba-NLP/gte-multilingual-reranker-base0.789780.760190.824830.83848
10jinaai/jina-reranker-v2-base-multilingual0.780930.755930.821460.82864
11Alibaba-NLP/gte-reranker-modernbert-base0.711760.665860.740860.77675
12Qwen/Qwen3-Reranker-4B0.704080.647600.737940.77447
+
+
+ 选型推荐 +
    +
  • 首选 Qwen/Qwen3-Reranker-8B — 综合排序质量最高,适合优先保证精排效果。
  • +
  • 资源受限可选 jinaai/jina-reranker-v3.5 — 仅 0.6B 参数,NDCG 接近首选,且首位命中表现更好。
  • +
+
+
+
固定 Embed
nvidia/Nemotron-3-Embed-8B-BF16
+
候选池
来自 Nemotron-3-Embed 前 100
+
Recall@100
0.92877
+
+
+
+
+ + {/* ================= 4. 数据集 ================= */} +
+
+ 04 +

数据集

+ 问题类型与语料构成 +
+
+
+
+
+
数据规模
+
1.6K 条问答,40K 条语料
+
+
+
问题分类
+
+
    +
  • 基础能力
  • +
  • 精确细节
  • +
  • 多跳推理
  • +
  • 反常识
  • +
  • 无答案
  • +
  • 干扰负例
  • +
  • 多版本答案
  • +
  • 结构化提取
  • +
+
+
+
+
语料大类
+
+
    +
  • 百科
  • +
  • 书籍
  • +
  • 新闻
  • +
  • 科普
  • +
  • 问答
  • +
  • 公众号文章
  • +
+ 及其他来源 +
+
+
+
+ 数据与流程即将开源 + 评测数据集、评估流程与更多模型的评测结果正在整理,将在近期陆续开源,届时在本页补充仓库与下载链接。 +
+
+
+
+ +
+ +
+
+ WeKnora 模型评测 + 数据截至 2026-10-08 + WeKnora 版本 v0.8.0 +
+
+
+
+ ); +} diff --git a/website-docs/scripts/build-site.mjs b/website-docs/scripts/build-site.mjs index d81caee7..1ea6fd11 100644 --- a/website-docs/scripts/build-site.mjs +++ b/website-docs/scripts/build-site.mjs @@ -27,6 +27,10 @@ for (const entry of readdirSync(output)) { if (!['index.html', '404.html', 'docs'].includes(entry)) rmSync(resolve(output, entry), { recursive: true, force: true }); } cpSync(resolve(root, '.vitepress/dist'), resolve(output, 'docs'), { recursive: true }); +// The leaderboard is a homepage JSX page exported to /docs/models/. Keep a +// sibling .html file so /docs/models resolves without a trailing slash. +const modelsIndex = resolve(output, 'docs/models/index.html'); +if (existsSync(modelsIndex)) cpSync(modelsIndex, resolve(output, 'docs/models.html')); run('homepage', 'audit:content'); const check = spawnSync(process.execPath, ['scripts/check-site.mjs', output], { cwd: root, stdio: 'inherit' }); if (check.status !== 0) process.exit(check.status || 1); diff --git a/website-docs/shared/header.css b/website-docs/shared/header.css index 8a0aabd4..3c1574c7 100644 --- a/website-docs/shared/header.css +++ b/website-docs/shared/header.css @@ -17,7 +17,22 @@ .wk-header .wk-theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--wk-rule); border-radius: 20px; background: var(--wk-paper-2); color: var(--wk-ink-soft); } .wk-theme-toggle:hover { color: var(--wk-gold); border-color: var(--wk-gold); } .wk-theme-toggle svg { width: 19px; height: 19px; } +.wk-nav-menu { position: relative; display: inline-flex; align-items: center; } +.wk-nav-caret { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 44px; margin-left: -4px; border: 0; background: none; color: var(--wk-ink-soft); } +.wk-nav-caret svg { width: 14px; height: 14px; transition: transform .2s; } +.wk-nav-menu.is-open .wk-nav-caret, +.wk-nav-menu:hover .wk-nav-caret { color: var(--wk-gold); } +.wk-nav-menu.is-open .wk-nav-caret svg, +.wk-nav-menu:hover .wk-nav-caret svg { transform: rotate(180deg); } +.wk-nav-dropdown { display: none; position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; min-width: 128px; padding: 6px 0; background: var(--wk-surface); border: 1px solid var(--wk-rule); box-shadow: 0 8px 24px rgba(16, 31, 56, .06); flex-direction: column; } +.wk-nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } +.wk-nav-menu.is-open .wk-nav-dropdown, +.wk-nav-menu:hover .wk-nav-dropdown, +.wk-nav-menu:focus-within .wk-nav-dropdown { display: flex; } +.wk-nav-dropdown a { min-height: 36px; padding: 0 20px; justify-content: flex-start; letter-spacing: .01em; } +html.dark .wk-nav-dropdown { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); } .wk-navigation .wk-mobile-github { display: none; } +.wk-navigation a:focus:not(:focus-visible) { outline: none; } .wk-header :focus-visible { outline: 2px solid var(--wk-gold); outline-offset: 5px; } @media (max-width: 1100px) { .wk-header-inner { padding-inline: 24px; gap: 14px; } @@ -35,5 +50,10 @@ .wk-navigation.is-open { display: flex; position: absolute; left: 0; top: 63px; max-height: calc(100dvh - 64px); overflow-y: auto; right: 0; padding: 20px 32px 26px; background: var(--wk-paper); border-bottom: 1px solid var(--wk-rule); flex-direction: column; align-items: stretch; gap: 4px; box-shadow: 0 15px 20px #101f380a; } .wk-navigation a { font-size: 16px; } .wk-navigation .wk-mobile-github { display: inline-flex; } + .wk-nav-menu { flex-direction: column; align-items: stretch; } + .wk-nav-caret { display: none; } + .wk-nav-dropdown { display: flex; position: static; min-width: 0; padding: 0 0 4px 18px; border: 0; box-shadow: none; background: transparent; } + .wk-nav-dropdown::before { display: none; } + .wk-nav-dropdown a { min-height: 40px; padding: 0; font-size: 15px; } } @media (max-width: 480px) { .wk-header-inner { padding-inline: 20px; } } diff --git a/website-docs/shared/header.ts b/website-docs/shared/header.ts index 6dc524f0..66a98f91 100644 --- a/website-docs/shared/header.ts +++ b/website-docs/shared/header.ts @@ -1,10 +1,34 @@ // Product navigation and shared masthead icons. -export const siteNavigation = [ +export type SiteNavChild = { + label: string; + href: string; +}; + +export type SiteNavItem = { + label: string; + href: string; + badge?: string; + external?: boolean; + children?: SiteNavChild[]; +}; + +export const siteNavigation: SiteNavItem[] = [ { label: '产品能力', href: '/#capabilities', badge: '' }, { label: 'v0.8.3', href: '/#release', badge: 'NEW' }, { label: '生态集成', href: '/#ecosystem', badge: '' }, { label: '企业部署', href: '/#enterprise', badge: '' }, { label: '文档', href: '/docs/', badge: '' }, + { + label: '模型评测', + href: '/docs/models', + badge: '', + children: [ + { label: 'LLM', href: '/docs/models#llm' }, + { label: 'Embed', href: '/docs/models#embed' }, + { label: 'Rerank', href: '/docs/models#rerank' }, + { label: '数据集', href: '/docs/models#dataset' }, + ], + }, ]; // The site sits behind an upstream router that forwards only `/` and `/docs/`. // Everything else the homepage loads (Next chunks, images) is served from here: @@ -17,5 +41,6 @@ export const headerIcons: Record = { menu: 'M4 6h16M4 12h16M4 18h16', close: 'm5 5 14 14M5 19 19 5', external: 'M8 5H5v14h14v-3M12 5h7v7M10 14 19 5', + chevron: 'm6 9 6 6 6-6', github: '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', };