@yuntijs/arcadia-bff-sdk 1.2.0 → 1.2.2
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/dist/esm/sdk.d.ts +66 -4
- package/dist/esm/sdk.js +4 -4
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -91,10 +91,22 @@ export type AllDataProcessListByPageInput = {
|
|
|
91
91
|
*/
|
|
92
92
|
export type Application = {
|
|
93
93
|
__typename?: 'Application';
|
|
94
|
+
/** batchSize 上传文档做批量处理时的批次大小 */
|
|
95
|
+
batchSize?: Maybe<Scalars['Int']['output']>;
|
|
96
|
+
/** chatTimeout 对话超时,单位秒,不填为默认 60s */
|
|
97
|
+
chatTimeout?: Maybe<Scalars['Float']['output']>;
|
|
98
|
+
/** chunkOverlap 上传文档作文档拆分时相邻块的交集 */
|
|
99
|
+
chunkOverlap?: Maybe<Scalars['Int']['output']>;
|
|
100
|
+
/** chunkSize 上传文档做文档拆分时的块大小 */
|
|
101
|
+
chunkSize?: Maybe<Scalars['Int']['output']>;
|
|
94
102
|
/** conversionWindowSize 对话轮次 */
|
|
95
103
|
conversionWindowSize?: Maybe<Scalars['Int']['output']>;
|
|
96
104
|
/** docNullReturn 空搜索回复 */
|
|
97
105
|
docNullReturn?: Maybe<Scalars['String']['output']>;
|
|
106
|
+
/** enableMultiQuery 是否启用多查询 */
|
|
107
|
+
enableMultiQuery?: Maybe<Scalars['Boolean']['output']>;
|
|
108
|
+
/** enableRerank 是否启用 rerank */
|
|
109
|
+
enableRerank?: Maybe<Scalars['Boolean']['output']>;
|
|
98
110
|
/** knowledgebase 指当前知识库应用使用的知识库,即 Kind 为 KnowledgeBase 的 CR 的名称,目前一个应用只支持0或1个知识库 */
|
|
99
111
|
knowledgebase?: Maybe<Scalars['String']['output']>;
|
|
100
112
|
/** llm 指当前知识库应用使用的模型服务,即 Kind 为 LLM 的 CR 的名称 */
|
|
@@ -106,11 +118,13 @@ export type Application = {
|
|
|
106
118
|
metadata?: Maybe<ApplicationMetadata>;
|
|
107
119
|
/** model 指具体使用的模型名称,比如 gpt-3.5-turbo 或者 chatglm_turbo */
|
|
108
120
|
model?: Maybe<Scalars['String']['output']>;
|
|
109
|
-
/** numDocuments
|
|
121
|
+
/** numDocuments 最终返回结果的引用上限 */
|
|
110
122
|
numDocuments?: Maybe<Scalars['Int']['output']>;
|
|
111
123
|
/** 对话开场白 */
|
|
112
124
|
prologue?: Maybe<Scalars['String']['output']>;
|
|
113
|
-
/**
|
|
125
|
+
/** rerankModel rerank 模型,enableRerank 为 true 时起效,为空时使用默认 rerank 模型 */
|
|
126
|
+
rerankModel?: Maybe<Scalars['String']['output']>;
|
|
127
|
+
/** scoreThreshold 最终返回结果的最低相似度 */
|
|
114
128
|
scoreThreshold?: Maybe<Scalars['Float']['output']>;
|
|
115
129
|
/** showNextGuide 下一步引导,即是否在chat界面显示下一步引导 */
|
|
116
130
|
showNextGuide?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -574,6 +588,7 @@ export type DataProcessDetailsItem = {
|
|
|
574
588
|
data_process_config_info?: Maybe<Array<DataProcessConfigInfo>>;
|
|
575
589
|
end_time: Scalars['String']['output'];
|
|
576
590
|
error_msg?: Maybe<Scalars['String']['output']>;
|
|
591
|
+
file_details?: Maybe<Array<FileDetails>>;
|
|
577
592
|
file_num: Scalars['Int']['output'];
|
|
578
593
|
file_type: Scalars['String']['output'];
|
|
579
594
|
id: Scalars['String']['output'];
|
|
@@ -592,6 +607,7 @@ export type DataProcessFileLogInput = {
|
|
|
592
607
|
};
|
|
593
608
|
export type DataProcessItem = {
|
|
594
609
|
__typename?: 'DataProcessItem';
|
|
610
|
+
end_datetime: Scalars['String']['output'];
|
|
595
611
|
error_msg?: Maybe<Scalars['String']['output']>;
|
|
596
612
|
id: Scalars['String']['output'];
|
|
597
613
|
name: Scalars['String']['output'];
|
|
@@ -1001,6 +1017,14 @@ export type F = {
|
|
|
1001
1017
|
/** 文件更新时间,如果没有导入成功,这个字段为空 */
|
|
1002
1018
|
time?: Maybe<Scalars['Time']['output']>;
|
|
1003
1019
|
};
|
|
1020
|
+
export type FileDetails = {
|
|
1021
|
+
__typename?: 'FileDetails';
|
|
1022
|
+
end_time: Scalars['String']['output'];
|
|
1023
|
+
file_name: Scalars['String']['output'];
|
|
1024
|
+
file_size: Scalars['String']['output'];
|
|
1025
|
+
start_time: Scalars['String']['output'];
|
|
1026
|
+
status: Scalars['String']['output'];
|
|
1027
|
+
};
|
|
1004
1028
|
/** 根据条件顾虑版本内的文件,只支持关键词搜索 */
|
|
1005
1029
|
export type FileFilter = {
|
|
1006
1030
|
/** 根据关键词搜索文件,strings.Container(fileName, keyword) */
|
|
@@ -1020,6 +1044,7 @@ export type FileGroup = {
|
|
|
1020
1044
|
};
|
|
1021
1045
|
export type FileItem = {
|
|
1022
1046
|
name: Scalars['String']['input'];
|
|
1047
|
+
size?: InputMaybe<Scalars['String']['input']>;
|
|
1023
1048
|
};
|
|
1024
1049
|
/**
|
|
1025
1050
|
* GPT
|
|
@@ -1997,10 +2022,22 @@ export type TypedObjectReferenceInput = {
|
|
|
1997
2022
|
namespace?: InputMaybe<Scalars['String']['input']>;
|
|
1998
2023
|
};
|
|
1999
2024
|
export type UpdateApplicationConfigInput = {
|
|
2025
|
+
/** batchSize 上传文档做批量处理时的批次大小 */
|
|
2026
|
+
batchSize?: InputMaybe<Scalars['Int']['input']>;
|
|
2027
|
+
/** chatTimeout 对话超时,单位秒,不填为默认 60s */
|
|
2028
|
+
chatTimeout?: InputMaybe<Scalars['Float']['input']>;
|
|
2029
|
+
/** chunkOverlap 上传文档作文档拆分时相邻块的交集 */
|
|
2030
|
+
chunkOverlap?: InputMaybe<Scalars['Int']['input']>;
|
|
2031
|
+
/** chunkSize 上传文档做文档拆分时的块大小 */
|
|
2032
|
+
chunkSize?: InputMaybe<Scalars['Int']['input']>;
|
|
2000
2033
|
/** conversionWindowSize 对话轮次 */
|
|
2001
2034
|
conversionWindowSize?: InputMaybe<Scalars['Int']['input']>;
|
|
2002
2035
|
/** docNullReturn 空搜索回复 */
|
|
2003
2036
|
docNullReturn?: InputMaybe<Scalars['String']['input']>;
|
|
2037
|
+
/** enableMultiQuery 是否启用多查询 */
|
|
2038
|
+
enableMultiQuery?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2039
|
+
/** enableRerank 是否启用 rerank */
|
|
2040
|
+
enableRerank?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2004
2041
|
/** knowledgebase 指当前知识库应用使用的知识库,即 Kind 为 KnowledgeBase 的 CR 的名称,目前一个应用只支持0或1个知识库 */
|
|
2005
2042
|
knowledgebase?: InputMaybe<Scalars['String']['input']>;
|
|
2006
2043
|
/** llm 指当前知识库应用使用的模型服务,即 Kind 为 LLM 的 CR 的名称 */
|
|
@@ -2021,11 +2058,13 @@ export type UpdateApplicationConfigInput = {
|
|
|
2021
2058
|
* 规则: 非空
|
|
2022
2059
|
*/
|
|
2023
2060
|
namespace: Scalars['String']['input'];
|
|
2024
|
-
/** numDocuments
|
|
2061
|
+
/** numDocuments 最终返回结果的引用上限 */
|
|
2025
2062
|
numDocuments?: InputMaybe<Scalars['Int']['input']>;
|
|
2026
2063
|
/** 对话开场白 */
|
|
2027
2064
|
prologue?: InputMaybe<Scalars['String']['input']>;
|
|
2028
|
-
/**
|
|
2065
|
+
/** rerankModel rerank 模型,enableRerank 为 true 时起效,为空时使用默认 rerank 模型 */
|
|
2066
|
+
rerankModel?: InputMaybe<Scalars['String']['input']>;
|
|
2067
|
+
/** scoreThreshold 最终返回结果的最低相似度 */
|
|
2029
2068
|
scoreThreshold?: InputMaybe<Scalars['Float']['input']>;
|
|
2030
2069
|
/** showNextGuide 下一步引导,即是否在chat界面显示下一步引导 */
|
|
2031
2070
|
showNextGuide?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -2657,6 +2696,13 @@ export type UpdateApplicationConfigMutation = {
|
|
|
2657
2696
|
showRespInfo?: boolean | null;
|
|
2658
2697
|
showRetrievalInfo?: boolean | null;
|
|
2659
2698
|
showNextGuide?: boolean | null;
|
|
2699
|
+
enableRerank?: boolean | null;
|
|
2700
|
+
rerankModel?: string | null;
|
|
2701
|
+
enableMultiQuery?: boolean | null;
|
|
2702
|
+
chatTimeout?: number | null;
|
|
2703
|
+
chunkSize?: number | null;
|
|
2704
|
+
chunkOverlap?: number | null;
|
|
2705
|
+
batchSize?: number | null;
|
|
2660
2706
|
metadata?: {
|
|
2661
2707
|
__typename?: 'ApplicationMetadata';
|
|
2662
2708
|
name: string;
|
|
@@ -2707,6 +2753,13 @@ export type GetApplicationQuery = {
|
|
|
2707
2753
|
showRespInfo?: boolean | null;
|
|
2708
2754
|
showRetrievalInfo?: boolean | null;
|
|
2709
2755
|
showNextGuide?: boolean | null;
|
|
2756
|
+
enableRerank?: boolean | null;
|
|
2757
|
+
rerankModel?: string | null;
|
|
2758
|
+
enableMultiQuery?: boolean | null;
|
|
2759
|
+
chatTimeout?: number | null;
|
|
2760
|
+
chunkSize?: number | null;
|
|
2761
|
+
chunkOverlap?: number | null;
|
|
2762
|
+
batchSize?: number | null;
|
|
2710
2763
|
metadata?: {
|
|
2711
2764
|
__typename?: 'ApplicationMetadata';
|
|
2712
2765
|
name: string;
|
|
@@ -2814,6 +2867,7 @@ export type AllDataProcessListByPageQuery = {
|
|
|
2814
2867
|
post_data_set_name: string;
|
|
2815
2868
|
post_data_set_version?: string | null;
|
|
2816
2869
|
start_datetime: string;
|
|
2870
|
+
end_datetime: string;
|
|
2817
2871
|
error_msg?: string | null;
|
|
2818
2872
|
}> | null;
|
|
2819
2873
|
} | null;
|
|
@@ -2954,6 +3008,14 @@ export type DataProcessDetailsQuery = {
|
|
|
2954
3008
|
} | null> | null;
|
|
2955
3009
|
} | null> | null;
|
|
2956
3010
|
}> | null;
|
|
3011
|
+
file_details?: Array<{
|
|
3012
|
+
__typename?: 'FileDetails';
|
|
3013
|
+
file_name: string;
|
|
3014
|
+
status: string;
|
|
3015
|
+
start_time: string;
|
|
3016
|
+
end_time: string;
|
|
3017
|
+
file_size: string;
|
|
3018
|
+
}> | null;
|
|
2957
3019
|
};
|
|
2958
3020
|
} | null;
|
|
2959
3021
|
} | null;
|
package/dist/esm/sdk.js
CHANGED
|
@@ -172,13 +172,13 @@ import useSWR from "./useSWR";
|
|
|
172
172
|
export var CreateApplicationDocument = gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n mutation createApplication($input: CreateApplicationMetadataInput!) {\n Application {\n createApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n category\n }\n }\n}\n "])));
|
|
173
173
|
export var UpdateApplicationDocument = gql(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n mutation updateApplication($input: UpdateApplicationMetadataInput!) {\n Application {\n updateApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n category\n }\n }\n}\n "])));
|
|
174
174
|
export var DeleteApplicationDocument = gql(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n mutation deleteApplication($input: DeleteCommonInput!) {\n Application {\n deleteApplication(input: $input)\n }\n}\n "])));
|
|
175
|
-
export var UpdateApplicationConfigDocument = gql(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n mutation updateApplicationConfig($input: UpdateApplicationConfigInput!) {\n Application {\n updateApplicationConfig(input: $input) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n category\n }\n prologue\n model\n llm\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showRespInfo\n showRetrievalInfo\n showNextGuide\n tools {\n name\n params\n }\n }\n }\n}\n "])));
|
|
176
|
-
export var GetApplicationDocument = gql(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n query getApplication($name: String!, $namespace: String!) {\n Application {\n getApplication(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n category\n }\n prologue\n model\n llm\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showRespInfo\n showRetrievalInfo\n showNextGuide\n tools {\n name\n params\n }\n }\n }\n}\n "])));
|
|
175
|
+
export var UpdateApplicationConfigDocument = gql(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n mutation updateApplicationConfig($input: UpdateApplicationConfigInput!) {\n Application {\n updateApplicationConfig(input: $input) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n category\n }\n prologue\n model\n llm\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showRespInfo\n showRetrievalInfo\n showNextGuide\n tools {\n name\n params\n }\n enableRerank\n rerankModel\n enableMultiQuery\n chatTimeout\n chunkSize\n chunkOverlap\n batchSize\n }\n }\n}\n "])));
|
|
176
|
+
export var GetApplicationDocument = gql(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n query getApplication($name: String!, $namespace: String!) {\n Application {\n getApplication(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n category\n }\n prologue\n model\n llm\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showRespInfo\n showRetrievalInfo\n showNextGuide\n tools {\n name\n params\n }\n enableRerank\n rerankModel\n enableMultiQuery\n chatTimeout\n chunkSize\n chunkOverlap\n batchSize\n }\n }\n}\n "])));
|
|
177
177
|
export var ListApplicationsDocument = gql(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n query listApplications($input: ListCommonInput!) {\n Application {\n listApplicationMetadata(input: $input) {\n page\n pageSize\n totalCount\n hasNextPage\n nodes {\n ... on ApplicationMetadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n category\n }\n }\n }\n }\n}\n "])));
|
|
178
|
-
export var AllDataProcessListByPageDocument = gql(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n query allDataProcessListByPage($input: AllDataProcessListByPageInput!) {\n dataProcess {\n allDataProcessListByPage(input: $input) {\n status\n data {\n id\n name\n status\n pre_data_set_name\n pre_data_set_version\n post_data_set_name\n post_data_set_version\n start_datetime\n error_msg\n }\n message\n }\n }\n}\n "])));
|
|
178
|
+
export var AllDataProcessListByPageDocument = gql(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n query allDataProcessListByPage($input: AllDataProcessListByPageInput!) {\n dataProcess {\n allDataProcessListByPage(input: $input) {\n status\n data {\n id\n name\n status\n pre_data_set_name\n pre_data_set_version\n post_data_set_name\n post_data_set_version\n start_datetime\n end_datetime\n error_msg\n }\n message\n }\n }\n}\n "])));
|
|
179
179
|
export var AllDataProcessListByCountDocument = gql(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n query allDataProcessListByCount($input: AllDataProcessListByCountInput!) {\n dataProcess {\n allDataProcessListByCount(input: $input) {\n status\n data\n message\n }\n }\n}\n "])));
|
|
180
180
|
export var DataProcessSupportTypeDocument = gql(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n query dataProcessSupportType {\n dataProcess {\n dataProcessSupportType {\n status\n data {\n name\n description\n children {\n name\n zh_name\n description\n enable\n }\n }\n message\n }\n }\n}\n "])));
|
|
181
|
-
export var DataProcessDetailsDocument = gql(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n query dataProcessDetails($input: DataProcessDetailsInput) {\n dataProcess {\n dataProcessDetails(input: $input) {\n status\n data {\n id\n status\n name\n file_type\n pre_dataset_name\n pre_dataset_version\n post_dataset_name\n post_dataset_version\n file_num\n start_time\n end_time\n creator\n error_msg\n data_process_config_info {\n type\n llm_config {\n name\n namespace\n model\n temperature\n top_p\n max_tokens\n prompt_template\n provider\n }\n remove_duplicate_config {\n similarity\n embedding_name\n embedding_model\n embedding_provider\n embedding_namespace\n }\n }\n config {\n name\n description\n file_num\n status\n children {\n name\n enable\n zh_name\n description\n chunk_size\n chunk_overlap\n llm_config {\n name\n namespace\n model\n temperature\n top_p\n max_tokens\n prompt_template\n provider\n }\n preview {\n file_name\n content {\n pre\n post\n }\n }\n file_progress {\n id\n file_name\n status\n start_time\n end_time\n progress\n }\n }\n }\n }\n message\n }\n }\n}\n "])));
|
|
181
|
+
export var DataProcessDetailsDocument = gql(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n query dataProcessDetails($input: DataProcessDetailsInput) {\n dataProcess {\n dataProcessDetails(input: $input) {\n status\n data {\n id\n status\n name\n file_type\n pre_dataset_name\n pre_dataset_version\n post_dataset_name\n post_dataset_version\n file_num\n start_time\n end_time\n creator\n error_msg\n data_process_config_info {\n type\n llm_config {\n name\n namespace\n model\n temperature\n top_p\n max_tokens\n prompt_template\n provider\n }\n remove_duplicate_config {\n similarity\n embedding_name\n embedding_model\n embedding_provider\n embedding_namespace\n }\n }\n config {\n name\n description\n file_num\n status\n children {\n name\n enable\n zh_name\n description\n chunk_size\n chunk_overlap\n llm_config {\n name\n namespace\n model\n temperature\n top_p\n max_tokens\n prompt_template\n provider\n }\n preview {\n file_name\n content {\n pre\n post\n }\n }\n file_progress {\n id\n file_name\n status\n start_time\n end_time\n progress\n }\n }\n }\n file_details {\n file_name\n status\n start_time\n end_time\n file_size\n }\n }\n message\n }\n }\n}\n "])));
|
|
182
182
|
export var CheckDataProcessTaskNameDocument = gql(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n query checkDataProcessTaskName($input: CheckDataProcessTaskNameInput) {\n dataProcess {\n checkDataProcessTaskName(input: $input) {\n status\n data\n message\n }\n }\n}\n "])));
|
|
183
183
|
export var GetLogInfoDocument = gql(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n query getLogInfo($input: DataProcessDetailsInput) {\n dataProcess {\n getLogInfo(input: $input) {\n status\n data\n message\n }\n }\n}\n "])));
|
|
184
184
|
export var DataProcessLogInfoByFileNameDocument = gql(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n query dataProcessLogInfoByFileName($input: DataProcessFileLogInput) {\n dataProcess {\n dataProcessLogInfoByFileName(input: $input) {\n status\n data\n message\n }\n }\n}\n "])));
|