- 实体类型改为:构件/设备/设施/指标/场所/材料/措施/条款 - 中文 prompt + 建筑规范领域 Few-shot 示例 - 前端图谱颜色、筛选项同步更新 - QA agent 系统提示词适配建筑规范领域
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
export interface KGNode {
|
||||
id: string;
|
||||
name: string;
|
||||
type: 'TECHNOLOGY' | 'CONCEPT' | 'PERSON' | 'ORGANIZATION' | 'LOCATION';
|
||||
type: '构件' | '设备' | '设施' | '指标' | '场所' | '材料' | '措施' | '条款' | 'TECHNOLOGY' | 'CONCEPT' | 'PERSON' | 'ORGANIZATION' | 'LOCATION';
|
||||
page: number;
|
||||
confidence: 'match_exact' | 'match_greater' | 'match_lesser' | 'match_fuzzy';
|
||||
degree: number;
|
||||
@@ -66,6 +66,14 @@ export interface HistoryItem {
|
||||
|
||||
// Entity type colors
|
||||
export const TYPE_COLORS: Record<string, string> = {
|
||||
'构件': '#58a6ff',
|
||||
'设备': '#ff7b72',
|
||||
'设施': '#d29922',
|
||||
'指标': '#3fb950',
|
||||
'场所': '#bc8cff',
|
||||
'材料': '#ffa657',
|
||||
'措施': '#f0f6fc',
|
||||
'条款': '#8b949e',
|
||||
TECHNOLOGY: '#58a6ff',
|
||||
CONCEPT: '#bc8cff',
|
||||
PERSON: '#3fb950',
|
||||
|
||||
Reference in New Issue
Block a user