refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名) - 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块) - docreader proto 描述符采用等长替换,保持序列化字节布局有效 - Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像 - 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
1 parent
9097ee699d
commit
9058149576
3136 files changed
+18018
-18004
No files matched your search
@@ -472,7 +472,7 @@ let movePollTimer: ReturnType<typeof setInterval> | null = null;
|
||||
|
||||
// View mode (grid / list) — persisted per browser
|
||||
type DocViewMode = 'grid' | 'list';
|
||||
const VIEW_MODE_KEY = 'weknora.kb.docs.viewMode';
|
||||
const VIEW_MODE_KEY = 'academy.kb.docs.viewMode';
|
||||
const initViewMode = (): DocViewMode => {
|
||||
try {
|
||||
return localStorage.getItem(VIEW_MODE_KEY) === 'grid' ? 'grid' : 'list';
|
||||
@@ -772,7 +772,7 @@ const activeDocumentSortLabel = computed(() => {
|
||||
|
||||
// ── Folder tree (documents uploaded as a folder keep their relative path) ──
|
||||
// The directory sidebar is now the sole folder navigation and starts expanded.
|
||||
const FOLDER_TREE_COLLAPSED_KEY = 'weknora.kbDirectorySidebarCollapsed';
|
||||
const FOLDER_TREE_COLLAPSED_KEY = 'academy.kbDirectorySidebarCollapsed';
|
||||
const readStoredFlag = (key: string, fallback = false) => {
|
||||
try {
|
||||
const raw = localStorage.getItem(key);
|
||||
@@ -1416,15 +1416,15 @@ onMounted(() => {
|
||||
|
||||
window.addEventListener('knowledgeFileUploaded', handleFileUploaded as EventListener);
|
||||
window.addEventListener('openURLImportDialog', handleOpenURLImportDialog as EventListener);
|
||||
window.addEventListener('weknora:knowledge-file-drop', handleKnowledgeFileDrop as EventListener);
|
||||
window.addEventListener('weknora:open-knowledge', handleOpenKnowledgeEvent as EventListener);
|
||||
window.addEventListener('academy:knowledge-file-drop', handleKnowledgeFileDrop as EventListener);
|
||||
window.addEventListener('academy:open-knowledge', handleOpenKnowledgeEvent as EventListener);
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
window.removeEventListener('knowledgeFileUploaded', handleFileUploaded as EventListener);
|
||||
window.removeEventListener('openURLImportDialog', handleOpenURLImportDialog as EventListener);
|
||||
window.removeEventListener('weknora:knowledge-file-drop', handleKnowledgeFileDrop as EventListener);
|
||||
window.removeEventListener('weknora:open-knowledge', handleOpenKnowledgeEvent as EventListener);
|
||||
window.removeEventListener('academy:knowledge-file-drop', handleKnowledgeFileDrop as EventListener);
|
||||
window.removeEventListener('academy:open-knowledge', handleOpenKnowledgeEvent as EventListener);
|
||||
stopMovePoll();
|
||||
if (timeout !== null) {
|
||||
clearTimeout(timeout);
|
||||
|
||||
@@ -1035,7 +1035,7 @@ const entries = ref<FAQEntry[]>([])
|
||||
|
||||
// 问答视图偏好独立保存,首次访问沿用卡片视图。
|
||||
type FAQViewMode = 'grid' | 'list'
|
||||
const FAQ_VIEW_MODE_KEY = 'weknora.kb.faq.viewMode'
|
||||
const FAQ_VIEW_MODE_KEY = 'academy.kb.faq.viewMode'
|
||||
const initViewMode = (): FAQViewMode => {
|
||||
try {
|
||||
return localStorage.getItem(FAQ_VIEW_MODE_KEY) === 'list' ? 'list' : 'grid'
|
||||
@@ -2349,10 +2349,10 @@ const downloadExampleOptions = computed(() => [
|
||||
// 示例数据
|
||||
const exampleData: FAQEntryPayload[] = [
|
||||
{
|
||||
standard_question: '什么是 WeKnora?',
|
||||
answers: ['WeKnora 是一个智能知识库管理系统', '它支持多种知识库类型和导入方式'],
|
||||
similar_questions: ['WeKnora 是什么?', '介绍一下 WeKnora'],
|
||||
negative_questions: ['这不是 WeKnora', '与 WeKnora 无关'],
|
||||
standard_question: '什么是 Academy?',
|
||||
answers: ['Academy 是一个智能知识库管理系统', '它支持多种知识库类型和导入方式'],
|
||||
similar_questions: ['Academy 是什么?', '介绍一下 Academy'],
|
||||
negative_questions: ['这不是 Academy', '与 Academy 无关'],
|
||||
tag_name: '产品介绍',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -81,8 +81,8 @@ const isFaq = computed(() => props.type === 'faq')
|
||||
}
|
||||
|
||||
&.is-faq {
|
||||
background: linear-gradient(135deg, color-mix(in srgb, var(--weknora-faq-color, #0052d9) 15%, transparent) 0%, color-mix(in srgb, var(--weknora-faq-color, #0052d9) 8%, transparent) 100%);
|
||||
color: var(--weknora-faq-color, #0052d9);
|
||||
background: linear-gradient(135deg, color-mix(in srgb, var(--academy-faq-color, #0052d9) 15%, transparent) 0%, color-mix(in srgb, var(--academy-faq-color, #0052d9) 8%, transparent) 100%);
|
||||
color: var(--academy-faq-color, #0052d9);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -62,7 +62,7 @@ test('calls out directory uploads via relative paths in the file list', () => {
|
||||
})
|
||||
|
||||
test('routes global knowledge file drops through the upload confirmation flow', () => {
|
||||
assert.match(platform, /weknora:knowledge-file-drop/)
|
||||
assert.match(platform, /academy:knowledge-file-drop/)
|
||||
assert.match(knowledgeBase, /handleKnowledgeFileDrop/)
|
||||
assert.match(knowledgeBase, /handleUploadSourceFiles\(files\)/)
|
||||
})
|
||||
|
||||
@@ -249,7 +249,7 @@ function openOriginal(): void {
|
||||
const copyText = (text: string) => copyWithToast(text, 'common.copySuccess')
|
||||
|
||||
// The info panel is a per-viewer preference; storage may be unavailable.
|
||||
const INFO_KEY = 'weknora_gallery_viewer_info'
|
||||
const INFO_KEY = 'academy_gallery_viewer_info'
|
||||
function readInfoPref(): boolean {
|
||||
try {
|
||||
return localStorage.getItem(INFO_KEY) !== '0'
|
||||
|
||||
@@ -10,13 +10,13 @@ export interface ChunkingSample {
|
||||
text: string
|
||||
}
|
||||
|
||||
const MARKDOWN_SAMPLE = `# WeKnora 知识框架
|
||||
const MARKDOWN_SAMPLE = `# Academy 知识框架
|
||||
|
||||
WeKnora 是一个基于 LLM 的开源企业知识框架,集 RAG 问答、ReAct 智能体、Wiki 知识图谱于一体。本文介绍其设计动机、架构与典型用法。
|
||||
Academy 是一个基于 LLM 的开源企业知识框架,集 RAG 问答、ReAct 智能体、Wiki 知识图谱于一体。本文介绍其设计动机、架构与典型用法。
|
||||
|
||||
## 设计动机
|
||||
|
||||
企业内部知识散落在 Confluence、飞书、Notion、Git 仓库等多种系统,传统全文检索难以理解语义,单一 LLM 又缺少可信赖的上下文来源。WeKnora 的目标是:
|
||||
企业内部知识散落在 Confluence、飞书、Notion、Git 仓库等多种系统,传统全文检索难以理解语义,单一 LLM 又缺少可信赖的上下文来源。Academy 的目标是:
|
||||
|
||||
- **多源接入**:把分散内容统一抽取、清洗、向量化
|
||||
- **多策略检索**:稠密、稀疏、知识图谱多路召回 + RRF 融合
|
||||
@@ -60,7 +60,7 @@ WeKnora 是一个基于 LLM 的开源企业知识框架,集 RAG 问答、ReAct
|
||||
### 启动命令
|
||||
|
||||
\`\`\`bash
|
||||
git clone https://github.com/Tencent/WeKnora && cd WeKnora
|
||||
git clone https://github.com/Tencent/WeKnora && cd Academy
|
||||
cp .env.example .env # 修改你的模型与数据库配置
|
||||
make dev-start # 启动 postgres / redis / qdrant
|
||||
make dev-app # 启动后端,热重载
|
||||
@@ -71,7 +71,7 @@ make dev-frontend # 启动前端,自动刷新
|
||||
|
||||
## 架构概览
|
||||
|
||||
WeKnora 后端采用清晰的分层架构:
|
||||
Academy 后端采用清晰的分层架构:
|
||||
|
||||
\`\`\`
|
||||
┌────────────────────────┐
|
||||
@@ -109,7 +109,7 @@ Agent 引擎执行经典 ReAct 循环:
|
||||
- 故障排查:\`website-docs/01-getting-started/05-troubleshooting.md\`
|
||||
- 产品介绍:\`website-docs/01-getting-started/01-introduction.md\``
|
||||
|
||||
const FAQ_SAMPLE = `# WeKnora 部署与使用 FAQ
|
||||
const FAQ_SAMPLE = `# Academy 部署与使用 FAQ
|
||||
|
||||
本文档汇总社区与内部用户最常问到的问题,按"安装 / 配置 / 检索 / 模型 / 性能"分类。
|
||||
|
||||
@@ -148,7 +148,7 @@ docker pull docker.m.daocloud.io/wechatopenai/weknora-ui:v0.5.0
|
||||
在知识库的"多模态配置"中开启,并选择一个 VLM 模型(如 GPT-4o、Qwen2.5-VL)。开启后,文档中的图片会被 VLM 描述并参与检索。
|
||||
|
||||
### Q9: 如何自定义日志格式?
|
||||
设置 \`WEKNORA_LOG_FORMAT="%d %level %msg" LOG_LEVEL=info\`。模板必须包含 \`%msg\`;留空使用默认格式,\`json\` 不是受支持的格式关键字。
|
||||
设置 \`ACADEMY_LOG_FORMAT="%d %level %msg" LOG_LEVEL=info\`。模板必须包含 \`%msg\`;留空使用默认格式,\`json\` 不是受支持的格式关键字。
|
||||
|
||||
## 检索与召回
|
||||
|
||||
|
||||
@@ -1666,7 +1666,7 @@ function handleGraphDrawerClick(e: MouseEvent) {
|
||||
// that ambiguity by mounting exactly one scroller at a time.
|
||||
const activeTab = ref<string>('')
|
||||
type SidebarViewMode = 'tree' | 'list'
|
||||
const SIDEBAR_VIEW_MODE_KEY = 'weknora.wiki.sidebar.viewMode'
|
||||
const SIDEBAR_VIEW_MODE_KEY = 'academy.wiki.sidebar.viewMode'
|
||||
function initialSidebarViewMode(): SidebarViewMode {
|
||||
try {
|
||||
return localStorage.getItem(SIDEBAR_VIEW_MODE_KEY) === 'list' ? 'list' : 'tree'
|
||||
|
||||
Reference in new issue
Block a user