@yuntijs/arcadia-bff-sdk 1.2.0 → 1.2.1
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 +46 -4
- package/dist/esm/sdk.js +2 -2
- 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']>;
|
|
@@ -1997,10 +2011,22 @@ export type TypedObjectReferenceInput = {
|
|
|
1997
2011
|
namespace?: InputMaybe<Scalars['String']['input']>;
|
|
1998
2012
|
};
|
|
1999
2013
|
export type UpdateApplicationConfigInput = {
|
|
2014
|
+
/** batchSize 上传文档做批量处理时的批次大小 */
|
|
2015
|
+
batchSize?: InputMaybe<Scalars['Int']['input']>;
|
|
2016
|
+
/** chatTimeout 对话超时,单位秒,不填为默认 60s */
|
|
2017
|
+
chatTimeout?: InputMaybe<Scalars['Float']['input']>;
|
|
2018
|
+
/** chunkOverlap 上传文档作文档拆分时相邻块的交集 */
|
|
2019
|
+
chunkOverlap?: InputMaybe<Scalars['Int']['input']>;
|
|
2020
|
+
/** chunkSize 上传文档做文档拆分时的块大小 */
|
|
2021
|
+
chunkSize?: InputMaybe<Scalars['Int']['input']>;
|
|
2000
2022
|
/** conversionWindowSize 对话轮次 */
|
|
2001
2023
|
conversionWindowSize?: InputMaybe<Scalars['Int']['input']>;
|
|
2002
2024
|
/** docNullReturn 空搜索回复 */
|
|
2003
2025
|
docNullReturn?: InputMaybe<Scalars['String']['input']>;
|
|
2026
|
+
/** enableMultiQuery 是否启用多查询 */
|
|
2027
|
+
enableMultiQuery?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2028
|
+
/** enableRerank 是否启用 rerank */
|
|
2029
|
+
enableRerank?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2004
2030
|
/** knowledgebase 指当前知识库应用使用的知识库,即 Kind 为 KnowledgeBase 的 CR 的名称,目前一个应用只支持0或1个知识库 */
|
|
2005
2031
|
knowledgebase?: InputMaybe<Scalars['String']['input']>;
|
|
2006
2032
|
/** llm 指当前知识库应用使用的模型服务,即 Kind 为 LLM 的 CR 的名称 */
|
|
@@ -2021,11 +2047,13 @@ export type UpdateApplicationConfigInput = {
|
|
|
2021
2047
|
* 规则: 非空
|
|
2022
2048
|
*/
|
|
2023
2049
|
namespace: Scalars['String']['input'];
|
|
2024
|
-
/** numDocuments
|
|
2050
|
+
/** numDocuments 最终返回结果的引用上限 */
|
|
2025
2051
|
numDocuments?: InputMaybe<Scalars['Int']['input']>;
|
|
2026
2052
|
/** 对话开场白 */
|
|
2027
2053
|
prologue?: InputMaybe<Scalars['String']['input']>;
|
|
2028
|
-
/**
|
|
2054
|
+
/** rerankModel rerank 模型,enableRerank 为 true 时起效,为空时使用默认 rerank 模型 */
|
|
2055
|
+
rerankModel?: InputMaybe<Scalars['String']['input']>;
|
|
2056
|
+
/** scoreThreshold 最终返回结果的最低相似度 */
|
|
2029
2057
|
scoreThreshold?: InputMaybe<Scalars['Float']['input']>;
|
|
2030
2058
|
/** showNextGuide 下一步引导,即是否在chat界面显示下一步引导 */
|
|
2031
2059
|
showNextGuide?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -2657,6 +2685,13 @@ export type UpdateApplicationConfigMutation = {
|
|
|
2657
2685
|
showRespInfo?: boolean | null;
|
|
2658
2686
|
showRetrievalInfo?: boolean | null;
|
|
2659
2687
|
showNextGuide?: boolean | null;
|
|
2688
|
+
enableRerank?: boolean | null;
|
|
2689
|
+
rerankModel?: string | null;
|
|
2690
|
+
enableMultiQuery?: boolean | null;
|
|
2691
|
+
chatTimeout?: number | null;
|
|
2692
|
+
chunkSize?: number | null;
|
|
2693
|
+
chunkOverlap?: number | null;
|
|
2694
|
+
batchSize?: number | null;
|
|
2660
2695
|
metadata?: {
|
|
2661
2696
|
__typename?: 'ApplicationMetadata';
|
|
2662
2697
|
name: string;
|
|
@@ -2707,6 +2742,13 @@ export type GetApplicationQuery = {
|
|
|
2707
2742
|
showRespInfo?: boolean | null;
|
|
2708
2743
|
showRetrievalInfo?: boolean | null;
|
|
2709
2744
|
showNextGuide?: boolean | null;
|
|
2745
|
+
enableRerank?: boolean | null;
|
|
2746
|
+
rerankModel?: string | null;
|
|
2747
|
+
enableMultiQuery?: boolean | null;
|
|
2748
|
+
chatTimeout?: number | null;
|
|
2749
|
+
chunkSize?: number | null;
|
|
2750
|
+
chunkOverlap?: number | null;
|
|
2751
|
+
batchSize?: number | null;
|
|
2710
2752
|
metadata?: {
|
|
2711
2753
|
__typename?: 'ApplicationMetadata';
|
|
2712
2754
|
name: string;
|
package/dist/esm/sdk.js
CHANGED
|
@@ -172,8 +172,8 @@ 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
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 "])));
|
|
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 "])));
|