@mxmweb/rtext 1.5.5 → 1.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5201 -5198
- package/knowledge_base_types.d.ts +4 -0
- package/mockserverdata.d.ts +16 -90
- package/package.json +1 -1
- package/stats.html +1 -1
- package/thought_chain_types.d.ts +5 -4
- package/utils/thought_chain_mapper.d.ts +5 -0
|
@@ -22,6 +22,10 @@ export interface KnowledgeBaseCategory {
|
|
|
22
22
|
path?: string;
|
|
23
23
|
/** 是否显示(可选,用于控制某些分类的显示/隐藏) */
|
|
24
24
|
visible?: boolean;
|
|
25
|
+
/** 项目类型:'dir' 表示目录,'file' 表示文件 */
|
|
26
|
+
itemType?: 'dir' | 'file';
|
|
27
|
+
/** 文件类型(仅当 itemType 为 'file' 时有效),例如:'docx', 'pdf', 'xlsx' */
|
|
28
|
+
fileType?: string;
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
27
31
|
* 知识库文档列表数据
|
package/mockserverdata.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const mockServerData: {
|
|
|
12
12
|
filePath: string;
|
|
13
13
|
configId: number;
|
|
14
14
|
kbId: null;
|
|
15
|
-
queryReplyPairList:
|
|
15
|
+
queryReplyPairList: {
|
|
16
16
|
query: {
|
|
17
17
|
id: string;
|
|
18
18
|
gmtCreate: number;
|
|
@@ -30,7 +30,19 @@ export declare const mockServerData: {
|
|
|
30
30
|
type: string;
|
|
31
31
|
reference: string;
|
|
32
32
|
webReference: string;
|
|
33
|
-
knowledgeBases:
|
|
33
|
+
knowledgeBases: {
|
|
34
|
+
knowledgeBaseName: string;
|
|
35
|
+
treeData: {
|
|
36
|
+
name: string;
|
|
37
|
+
filePath: string;
|
|
38
|
+
type: string;
|
|
39
|
+
fileCount: null;
|
|
40
|
+
fileType: string;
|
|
41
|
+
fetchUrl: string;
|
|
42
|
+
}[];
|
|
43
|
+
totalFileCount: number;
|
|
44
|
+
fetchUrl: null;
|
|
45
|
+
}[];
|
|
34
46
|
queryId: string;
|
|
35
47
|
feedbackResult: null;
|
|
36
48
|
feedbackId: null;
|
|
@@ -39,7 +51,7 @@ export declare const mockServerData: {
|
|
|
39
51
|
llmType: number;
|
|
40
52
|
resultType: number;
|
|
41
53
|
respTime: number;
|
|
42
|
-
databaseReference:
|
|
54
|
+
databaseReference: string;
|
|
43
55
|
chain: {
|
|
44
56
|
sessionId: null;
|
|
45
57
|
queryId: null;
|
|
@@ -70,93 +82,7 @@ export declare const mockServerData: {
|
|
|
70
82
|
enableCot: number;
|
|
71
83
|
tokens: number;
|
|
72
84
|
};
|
|
73
|
-
}
|
|
74
|
-
query: {
|
|
75
|
-
id: string;
|
|
76
|
-
gmtCreate: number;
|
|
77
|
-
content: string;
|
|
78
|
-
type: string;
|
|
79
|
-
queryId: string;
|
|
80
|
-
audioUrl: string;
|
|
81
|
-
filePaths: null;
|
|
82
|
-
currentFiles: null;
|
|
83
|
-
};
|
|
84
|
-
reply: {
|
|
85
|
-
id: string;
|
|
86
|
-
gmtCreate: number;
|
|
87
|
-
content: string;
|
|
88
|
-
type: string;
|
|
89
|
-
chain: {
|
|
90
|
-
businessType: string;
|
|
91
|
-
nodeStatus: number;
|
|
92
|
-
content: string;
|
|
93
|
-
type: string;
|
|
94
|
-
}[];
|
|
95
|
-
reference: string;
|
|
96
|
-
webReference: string;
|
|
97
|
-
queryId: string;
|
|
98
|
-
knowledgeBases: {
|
|
99
|
-
knowledgeBaseName: string;
|
|
100
|
-
treeData: ({
|
|
101
|
-
name: string;
|
|
102
|
-
type: string;
|
|
103
|
-
fileCount: number;
|
|
104
|
-
fileType?: undefined;
|
|
105
|
-
fetchUrl?: undefined;
|
|
106
|
-
} | {
|
|
107
|
-
name: string;
|
|
108
|
-
type: string;
|
|
109
|
-
fileType: string;
|
|
110
|
-
fetchUrl: string;
|
|
111
|
-
fileCount?: undefined;
|
|
112
|
-
})[];
|
|
113
|
-
totalFileCount: number;
|
|
114
|
-
fetchUrl: string;
|
|
115
|
-
}[];
|
|
116
|
-
feedbackResult: null;
|
|
117
|
-
feedbackId: null;
|
|
118
|
-
parsedFilePaths: null;
|
|
119
|
-
recommendQuestion: string;
|
|
120
|
-
llmType: number;
|
|
121
|
-
resultType: number;
|
|
122
|
-
respTime: number;
|
|
123
|
-
databaseReference: null;
|
|
124
|
-
tokens: number;
|
|
125
|
-
enableCot?: undefined;
|
|
126
|
-
};
|
|
127
|
-
} | {
|
|
128
|
-
query: {
|
|
129
|
-
id: number;
|
|
130
|
-
gmtCreate: string;
|
|
131
|
-
content: string;
|
|
132
|
-
type: string;
|
|
133
|
-
queryId: string;
|
|
134
|
-
audioUrl: string;
|
|
135
|
-
filePaths: null;
|
|
136
|
-
currentFiles: null;
|
|
137
|
-
};
|
|
138
|
-
reply: {
|
|
139
|
-
id: number;
|
|
140
|
-
gmtCreate: string;
|
|
141
|
-
content: string;
|
|
142
|
-
type: string;
|
|
143
|
-
reference: string;
|
|
144
|
-
webReference: string;
|
|
145
|
-
queryId: string;
|
|
146
|
-
feedbackResult: null;
|
|
147
|
-
feedbackId: null;
|
|
148
|
-
parsedFilePaths: null;
|
|
149
|
-
recommendQuestion: string;
|
|
150
|
-
llmType: number;
|
|
151
|
-
resultType: number;
|
|
152
|
-
respTime: number;
|
|
153
|
-
databaseReference: null;
|
|
154
|
-
tokens: number;
|
|
155
|
-
knowledgeBases?: undefined;
|
|
156
|
-
chain?: undefined;
|
|
157
|
-
enableCot?: undefined;
|
|
158
|
-
};
|
|
159
|
-
})[];
|
|
85
|
+
}[];
|
|
160
86
|
searchConfigDTO: {
|
|
161
87
|
id: number;
|
|
162
88
|
status: number;
|