feat(knowledge): Phase D 统一搜索 + 种子知识冷启动
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

- search/recommend API 返回 UnifiedSearchResult (文档+结构化双通道)
- POST /api/v1/knowledge/seed 种子知识冷启动 (幂等, admin权限)
- seed_knowledge service: 按标题+行业查重, source=distillation
- SearchRequest 扩展: search_structured/search_documents/industry_id
This commit is contained in:
iven
2026-04-12 20:46:43 +08:00
parent f8c5a76ce6
commit 640df9937f
4 changed files with 167 additions and 16 deletions

View File

@@ -32,6 +32,7 @@ pub fn routes() -> axum::Router<crate::state::AppState> {
// 检索
.route("/api/v1/knowledge/search", post(handlers::search))
.route("/api/v1/knowledge/recommend", post(handlers::recommend))
.route("/api/v1/knowledge/seed", post(handlers::seed_knowledge))
// 分析看板
.route("/api/v1/knowledge/analytics/overview", get(handlers::analytics_overview))
.route("/api/v1/knowledge/analytics/trends", get(handlers::analytics_trends))