22 lines
712 B
Go
22 lines
712 B
Go
package kb
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// Hub 多领域知识中枢统一服务契约
|
|
// 支持医疗器械法规标准、历史项目数字资产、员工能力模型等统一或分域检索
|
|
type Hub interface {
|
|
// Search 通用跨领域检索(支持按 SearchOptions 过滤领域、分类与分数)
|
|
Search(ctx context.Context, query string, opts SearchOptions) ([]HitItem, error)
|
|
|
|
// LookupCite 根据精准引用键 (如 "[GB 9706.1-2020 §8.4]") 定位条文
|
|
LookupCite(ctx context.Context, citeKey string) (string, bool)
|
|
|
|
// Stats 获取各知识领域的数据规模与资产统计
|
|
Stats(ctx context.Context) (map[KnowledgeDomain]Stats, error)
|
|
|
|
// Close 释放数据库连接池等资源
|
|
Close()
|
|
}
|