@alicloud/gpdb20160503 3.7.0 → 3.8.0
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/client.d.ts +76 -34
- package/dist/client.js +130 -34
- package/dist/client.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseRequest.d.ts +68 -111
- package/dist/models/ChatWithKnowledgeBaseRequest.js +2 -0
- package/dist/models/ChatWithKnowledgeBaseRequest.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseResponseBody.d.ts +45 -52
- package/dist/models/ChatWithKnowledgeBaseResponseBody.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseShrinkRequest.d.ts +5 -6
- package/dist/models/ChatWithKnowledgeBaseShrinkRequest.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.d.ts +71 -87
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.js +2 -0
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.d.ts +44 -50
- package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseStreamShrinkRequest.d.ts +6 -6
- package/dist/models/PauseSaasServiceRequest.d.ts +26 -0
- package/dist/models/PauseSaasServiceRequest.js +60 -0
- package/dist/models/PauseSaasServiceRequest.js.map +1 -0
- package/dist/models/PauseSaasServiceResponse.d.ts +19 -0
- package/dist/models/PauseSaasServiceResponse.js +69 -0
- package/dist/models/PauseSaasServiceResponse.js.map +1 -0
- package/dist/models/PauseSaasServiceResponseBody.d.ts +23 -0
- package/dist/models/PauseSaasServiceResponseBody.js +60 -0
- package/dist/models/PauseSaasServiceResponseBody.js.map +1 -0
- package/dist/models/QueryContentAdvanceRequest.d.ts +57 -70
- package/dist/models/QueryContentAdvanceRequest.js +2 -0
- package/dist/models/QueryContentAdvanceRequest.js.map +1 -1
- package/dist/models/QueryContentRequest.d.ts +57 -70
- package/dist/models/QueryContentRequest.js +2 -0
- package/dist/models/QueryContentRequest.js.map +1 -1
- package/dist/models/QueryContentResponseBody.d.ts +10 -11
- package/dist/models/QueryContentResponseBody.js.map +1 -1
- package/dist/models/QueryContentShrinkRequest.d.ts +52 -66
- package/dist/models/QueryContentShrinkRequest.js.map +1 -1
- package/dist/models/QueryKnowledgeBasesContentRequest.d.ts +62 -78
- package/dist/models/QueryKnowledgeBasesContentRequest.js +2 -0
- package/dist/models/QueryKnowledgeBasesContentRequest.js.map +1 -1
- package/dist/models/QueryKnowledgeBasesContentResponseBody.d.ts +11 -25
- package/dist/models/QueryKnowledgeBasesContentResponseBody.js.map +1 -1
- package/dist/models/QueryKnowledgeBasesContentShrinkRequest.d.ts +11 -15
- package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js.map +1 -1
- package/dist/models/ResumeSaasServiceRequest.d.ts +26 -0
- package/dist/models/ResumeSaasServiceRequest.js +60 -0
- package/dist/models/ResumeSaasServiceRequest.js.map +1 -0
- package/dist/models/ResumeSaasServiceResponse.d.ts +19 -0
- package/dist/models/ResumeSaasServiceResponse.js +69 -0
- package/dist/models/ResumeSaasServiceResponse.js.map +1 -0
- package/dist/models/ResumeSaasServiceResponseBody.d.ts +23 -0
- package/dist/models/ResumeSaasServiceResponseBody.js +60 -0
- package/dist/models/ResumeSaasServiceResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +6 -0
- package/dist/models/model.js +16 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +138 -34
- package/src/models/ChatWithKnowledgeBaseRequest.ts +70 -111
- package/src/models/ChatWithKnowledgeBaseResponseBody.ts +45 -52
- package/src/models/ChatWithKnowledgeBaseShrinkRequest.ts +5 -6
- package/src/models/ChatWithKnowledgeBaseStreamRequest.ts +73 -87
- package/src/models/ChatWithKnowledgeBaseStreamResponseBody.ts +44 -50
- package/src/models/ChatWithKnowledgeBaseStreamShrinkRequest.ts +6 -6
- package/src/models/PauseSaasServiceRequest.ts +41 -0
- package/src/models/PauseSaasServiceResponse.ts +40 -0
- package/src/models/PauseSaasServiceResponseBody.ts +38 -0
- package/src/models/QueryContentAdvanceRequest.ts +60 -71
- package/src/models/QueryContentRequest.ts +60 -71
- package/src/models/QueryContentResponseBody.ts +10 -11
- package/src/models/QueryContentShrinkRequest.ts +53 -67
- package/src/models/QueryKnowledgeBasesContentRequest.ts +64 -78
- package/src/models/QueryKnowledgeBasesContentResponseBody.ts +11 -25
- package/src/models/QueryKnowledgeBasesContentShrinkRequest.ts +11 -15
- package/src/models/ResumeSaasServiceRequest.ts +41 -0
- package/src/models/ResumeSaasServiceResponse.ts +40 -0
- package/src/models/ResumeSaasServiceResponseBody.ts +38 -0
- package/src/models/model.ts +6 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.PauseSaasServiceResponseBody = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class PauseSaasServiceResponseBody extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
requestId: 'RequestId',
|
|
43
|
+
serviceId: 'ServiceId',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static types() {
|
|
47
|
+
return {
|
|
48
|
+
requestId: 'string',
|
|
49
|
+
serviceId: 'string',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
validate() {
|
|
53
|
+
super.validate();
|
|
54
|
+
}
|
|
55
|
+
constructor(map) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.PauseSaasServiceResponseBody = PauseSaasServiceResponseBody;
|
|
60
|
+
//# sourceMappingURL=PauseSaasServiceResponseBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PauseSaasServiceResponseBody.js","sourceRoot":"","sources":["../../src/models/PauseSaasServiceResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAW3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhCD,oEAgCC"}
|
|
@@ -3,7 +3,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
export declare class QueryContentAdvanceRequestGraphSearchArgs extends $dara.Model {
|
|
4
4
|
/**
|
|
5
5
|
* @remarks
|
|
6
|
-
* The number of top entities and relationship edges to return.
|
|
6
|
+
* The number of top entities and relationship edges to return. Default value: 60.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* 60
|
|
@@ -23,8 +23,8 @@ export declare class QueryContentAdvanceRequestGraphSearchArgs extends $dara.Mod
|
|
|
23
23
|
export declare class QueryContentAdvanceRequestRerankModel extends $dara.Model {
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* This parameter
|
|
27
|
-
*
|
|
26
|
+
* This parameter can be set when RerankModel.Name is qwen3-rerank.
|
|
27
|
+
* Adds a custom sorting task type description. This parameter guides the model to adopt different sorting strategies.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* Given a web search query, retrieve relevant passages that answer the query
|
|
@@ -32,12 +32,13 @@ export declare class QueryContentAdvanceRequestRerankModel extends $dara.Model {
|
|
|
32
32
|
instruct?: string;
|
|
33
33
|
/**
|
|
34
34
|
* @remarks
|
|
35
|
-
* The name of the
|
|
35
|
+
* The name of the rerank model. Valid values: qwen3-rerank, gte-rerank-v2.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* qwen3-rerank
|
|
39
39
|
*/
|
|
40
40
|
name?: string;
|
|
41
|
+
rerankMetadataFields?: string;
|
|
41
42
|
static names(): {
|
|
42
43
|
[key: string]: string;
|
|
43
44
|
};
|
|
@@ -54,7 +55,7 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
54
55
|
* @remarks
|
|
55
56
|
* The name of the document collection.
|
|
56
57
|
*
|
|
57
|
-
* >
|
|
58
|
+
* > The document collection is created by calling the [CreateDocumentCollection](https://help.aliyun.com/document_detail/2618448.html) operation. You can call the [ListDocumentCollections](https://help.aliyun.com/document_detail/2618452.html) operation to query existing document collections.
|
|
58
59
|
*
|
|
59
60
|
* This parameter is required.
|
|
60
61
|
*
|
|
@@ -64,7 +65,7 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
64
65
|
collection?: string;
|
|
65
66
|
/**
|
|
66
67
|
* @remarks
|
|
67
|
-
* The text
|
|
68
|
+
* The text content used for retrieval.
|
|
68
69
|
*
|
|
69
70
|
* @example
|
|
70
71
|
* What is AnalyticDB for PostgreSQL?
|
|
@@ -74,7 +75,7 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
74
75
|
* @remarks
|
|
75
76
|
* The instance ID.
|
|
76
77
|
*
|
|
77
|
-
* > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to
|
|
78
|
+
* > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to query the details of all AnalyticDB for PostgreSQL instances in a region, including instance IDs.
|
|
78
79
|
*
|
|
79
80
|
* This parameter is required.
|
|
80
81
|
*
|
|
@@ -84,9 +85,9 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
84
85
|
DBInstanceId?: string;
|
|
85
86
|
/**
|
|
86
87
|
* @remarks
|
|
87
|
-
* The
|
|
88
|
+
* The name of the source image file to search in image-to-image search scenarios.
|
|
88
89
|
*
|
|
89
|
-
* > The image file must have a file extension.
|
|
90
|
+
* > The image file must have a file extension. Supported image extensions: bmp, jpg, jpeg, png, and tiff.
|
|
90
91
|
*
|
|
91
92
|
* @example
|
|
92
93
|
* test.jpg
|
|
@@ -94,9 +95,9 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
94
95
|
fileName?: string;
|
|
95
96
|
/**
|
|
96
97
|
* @remarks
|
|
97
|
-
* The publicly accessible URL of the image file
|
|
98
|
+
* The publicly accessible URL of the image file in image-to-image search scenarios.
|
|
98
99
|
*
|
|
99
|
-
* > The image file must have a file extension.
|
|
100
|
+
* > The image file must have a file extension. Supported image extensions: bmp, jpg, jpeg, png, and tiff.
|
|
100
101
|
*
|
|
101
102
|
* @example
|
|
102
103
|
* https://xx/myImage.jpg
|
|
@@ -104,9 +105,10 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
104
105
|
fileUrlObject?: Readable;
|
|
105
106
|
/**
|
|
106
107
|
* @remarks
|
|
107
|
-
*
|
|
108
|
+
* The filter condition for the data to query, in SQL WHERE clause format. The filter is an expression that returns a Boolean value (true or false). Conditions can be simple comparison operators such as equal to (=), not equal to (<> or !=), greater than (>), less than (<), greater than or equal to (>=), and less than or equal to (<=). Conditions can also be more complex expressions combined with logical operators (AND, OR, NOT), as well as conditions using the IN, BETWEEN, and LIKE keywords.
|
|
108
109
|
*
|
|
109
|
-
* >
|
|
110
|
+
* >
|
|
111
|
+
* > - For detailed syntax, refer to: https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-where/.
|
|
110
112
|
*
|
|
111
113
|
* @example
|
|
112
114
|
* title = \\"test\\" AND name like \\"test%\\"
|
|
@@ -114,7 +116,7 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
114
116
|
filter?: string;
|
|
115
117
|
/**
|
|
116
118
|
* @remarks
|
|
117
|
-
* Specifies whether to enable knowledge graph enhancement.
|
|
119
|
+
* Specifies whether to enable knowledge graph enhancement. Default value: false.
|
|
118
120
|
*
|
|
119
121
|
* @example
|
|
120
122
|
* false
|
|
@@ -122,20 +124,18 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
122
124
|
graphEnhance?: boolean;
|
|
123
125
|
/**
|
|
124
126
|
* @remarks
|
|
125
|
-
* The
|
|
127
|
+
* The knowledge graph retrieval parameters.
|
|
126
128
|
*/
|
|
127
129
|
graphSearchArgs?: QueryContentAdvanceRequestGraphSearchArgs;
|
|
128
130
|
/**
|
|
129
131
|
* @remarks
|
|
130
|
-
*
|
|
132
|
+
* The multi-channel recall algorithm. Default value: empty, which indicates that the dense vector and full-text index scores are directly compared and sorted.
|
|
131
133
|
*
|
|
132
134
|
* Valid values:
|
|
133
135
|
*
|
|
134
|
-
* - RRF:
|
|
135
|
-
*
|
|
136
|
-
* -
|
|
137
|
-
*
|
|
138
|
-
* - Cascaded: Performs full-text search first, and then performs vector retrieval on the results.
|
|
136
|
+
* - RRF: Reciprocal Rank Fusion. A parameter k controls the fusion effect. For more information, see the HybridSearchArgs configuration.
|
|
137
|
+
* - Weight: Weighted sorting. Parameters control the score weights of AISearch retrieve and full-text index results before sorting. For more information, see the HybridSearchArgs configuration.
|
|
138
|
+
* - Cascaded: Full-text index retrieve is performed first, followed by AISearch retrieve based on the full-text index results.
|
|
139
139
|
*
|
|
140
140
|
* @example
|
|
141
141
|
* RRF
|
|
@@ -143,10 +143,9 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
143
143
|
hybridSearch?: string;
|
|
144
144
|
/**
|
|
145
145
|
* @remarks
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* - RRF: Specifies the constant `k` in the scoring formula `1/(k+rank_i)`. The value must be an integer greater than 1. Example:
|
|
146
|
+
* The algorithm parameters for multi-channel recall. RRF and Weight are supported. HybridPathsSetting specifies the recall paths: dense vectors (dense), sparse vectors (sparse), and full-text index (fulltext). If this value is empty, dense vectors (dense) and full-text index (fulltext) are used by default.
|
|
149
147
|
*
|
|
148
|
+
* - RRF: Specifies the constant k in the score calculation formula `1/(k+rank_i)`. The value must be a positive integer greater than 1. Format:
|
|
150
149
|
* ```
|
|
151
150
|
* {
|
|
152
151
|
* "HybridPathsSetting": {
|
|
@@ -159,11 +158,8 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
159
158
|
* ```
|
|
160
159
|
*
|
|
161
160
|
* - Weight:
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
* - The score is calculated using the formula: `alpha * dense_score + (1-alpha) * fulltext_score`. The `alpha` parameter represents the score weight of dense vector retrieval relative to full-text search. The value must be in the range of 0 to 1. A value of 0 indicates that only full-text search is used, and a value of 1 indicates that only dense vector retrieval is used.
|
|
166
|
-
*
|
|
161
|
+
* - Dual-path recall (without specifying HybridPathsSetting, only specifying alpha):
|
|
162
|
+
* - Formula: alpha * dense_score + (1-alpha) * fulltext_score. The alpha parameter specifies the score weight between dense vectors and full-text index retrieve. Valid values: 0 to 1, where 0 indicates full-text index only and 1 indicates dense vector only:
|
|
167
163
|
* ```
|
|
168
164
|
* {
|
|
169
165
|
* "Weight": {
|
|
@@ -171,11 +167,8 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
171
167
|
* }
|
|
172
168
|
* }
|
|
173
169
|
* ```
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
* - The score is calculated using the formula: `normalized_dense * dense_score + normalized_sparse * sparse_score + normalized_fulltext * fulltext_score`. The `dense`, `sparse`, and `fulltext` parameters represent the weights for the dense vector, sparse vector, and full-text search results, respectively. Their values must be greater than or equal to 0. The system automatically normalizes the weights to a sum of 1 (for example, `normalized_x = x / (dense + sparse + fulltext)`).
|
|
178
|
-
*
|
|
170
|
+
* - Three-path recall pattern:
|
|
171
|
+
* - Formula: normalized_dense * dense_score + normalized_sparse * sparse_score + normalized_fulltext * fulltext_score. The dense, sparse, and fulltext values represent the weights for dense vectors, sparse vectors, and full-text index retrieve respectively. Valid values: greater than or equal to 0. The system automatically performs normalization of the weights to 0 to 1 (normalized_x = x / (dense + sparse + fulltext)).
|
|
179
172
|
* ```
|
|
180
173
|
* {
|
|
181
174
|
* "HybridPathsSetting": {
|
|
@@ -196,7 +189,7 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
196
189
|
};
|
|
197
190
|
/**
|
|
198
191
|
* @remarks
|
|
199
|
-
* Specifies whether to return the URL of the document.
|
|
192
|
+
* Specifies whether to synchronously return the URL of the document. By default, the URL is not returned.
|
|
200
193
|
*
|
|
201
194
|
* @example
|
|
202
195
|
* false
|
|
@@ -204,7 +197,7 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
204
197
|
includeFileUrl?: boolean;
|
|
205
198
|
/**
|
|
206
199
|
* @remarks
|
|
207
|
-
* The metadata fields to
|
|
200
|
+
* The metadata fields to return. Default value: empty. Separate multiple fields with commas.
|
|
208
201
|
*
|
|
209
202
|
* @example
|
|
210
203
|
* title,page
|
|
@@ -212,11 +205,9 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
212
205
|
includeMetadataFields?: string;
|
|
213
206
|
/**
|
|
214
207
|
* @remarks
|
|
215
|
-
* Specifies whether to
|
|
216
|
-
*
|
|
217
|
-
* > - **
|
|
218
|
-
* >
|
|
219
|
-
* > - **true**: The vector is returned.
|
|
208
|
+
* Specifies whether to return vectors. Default value: false.
|
|
209
|
+
* > - **false**: Does not return vectors.
|
|
210
|
+
* > - **true**: Returns vectors.
|
|
220
211
|
*
|
|
221
212
|
* @example
|
|
222
213
|
* true
|
|
@@ -224,14 +215,11 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
224
215
|
includeVector?: boolean;
|
|
225
216
|
/**
|
|
226
217
|
* @remarks
|
|
227
|
-
* The similarity algorithm used for retrieval. If this
|
|
218
|
+
* The similarity algorithm used for retrieval. If this value is empty, the algorithm specified when the knowledge base was created is used. Leave this parameter empty unless you have specific requirements.
|
|
228
219
|
*
|
|
229
220
|
* > Valid values:
|
|
230
|
-
* >
|
|
231
221
|
* > - **l2**: Euclidean distance.
|
|
232
|
-
* >
|
|
233
|
-
* > - **ip**: dot product (inner product) distance.
|
|
234
|
-
* >
|
|
222
|
+
* > - **ip**: inner product distance.
|
|
235
223
|
* > - **cosine**: cosine similarity.
|
|
236
224
|
*
|
|
237
225
|
* @example
|
|
@@ -240,9 +228,9 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
240
228
|
metrics?: string;
|
|
241
229
|
/**
|
|
242
230
|
* @remarks
|
|
243
|
-
* The namespace.
|
|
231
|
+
* The namespace. Default value: public.
|
|
244
232
|
*
|
|
245
|
-
* > You can
|
|
233
|
+
* > You can create a namespace by calling the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation and query namespaces by calling the [ListNamespaces](https://help.aliyun.com/document_detail/2401502.html) operation.
|
|
246
234
|
*
|
|
247
235
|
* @example
|
|
248
236
|
* mynamespace
|
|
@@ -250,9 +238,9 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
250
238
|
namespace?: string;
|
|
251
239
|
/**
|
|
252
240
|
* @remarks
|
|
253
|
-
* The password
|
|
241
|
+
* The password of the namespace.
|
|
254
242
|
*
|
|
255
|
-
* > This
|
|
243
|
+
* > This value is specified by the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation.
|
|
256
244
|
*
|
|
257
245
|
* This parameter is required.
|
|
258
246
|
*
|
|
@@ -262,7 +250,7 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
262
250
|
namespacePassword?: string;
|
|
263
251
|
/**
|
|
264
252
|
* @remarks
|
|
265
|
-
* The offset for
|
|
253
|
+
* The offset for paged query. Used for paging through results.
|
|
266
254
|
*
|
|
267
255
|
* @example
|
|
268
256
|
* 0
|
|
@@ -270,9 +258,13 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
270
258
|
offset?: number;
|
|
271
259
|
/**
|
|
272
260
|
* @remarks
|
|
273
|
-
* The field
|
|
261
|
+
* The field used for sorting. Default value: empty.
|
|
274
262
|
*
|
|
275
|
-
* The field must
|
|
263
|
+
* The field must belong to metadata or a default field in the table, such as id. Supported formats:
|
|
264
|
+
*
|
|
265
|
+
* A single field, such as chunk_id.
|
|
266
|
+
* Multiple fields separated by commas, such as block_id, chunk_id.
|
|
267
|
+
* Descending order, such as block_id DESC, chunk_id DESC.
|
|
276
268
|
*
|
|
277
269
|
* @example
|
|
278
270
|
* created_at
|
|
@@ -281,11 +273,9 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
281
273
|
ownerId?: number;
|
|
282
274
|
/**
|
|
283
275
|
* @remarks
|
|
284
|
-
* The recall window.
|
|
285
|
-
*
|
|
286
|
-
* > -
|
|
287
|
-
* >
|
|
288
|
-
* > - Reranking is prioritized over windowing. The system first applies reranking and then processes the window.
|
|
276
|
+
* The recall window. When this value is not empty, additional context around the retrieval results is returned. The format is a two-element array: List<A, B>, where -10<=A<=0 and 0<=B<=10.
|
|
277
|
+
* > - Use this parameter when documents are split into overly small chunks and retrieval may lose contextual information.
|
|
278
|
+
* > - Reranking takes priority over windowing. Reranking is performed first, followed by windowing.
|
|
289
279
|
*/
|
|
290
280
|
recallWindow?: number[];
|
|
291
281
|
/**
|
|
@@ -300,11 +290,9 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
300
290
|
regionId?: string;
|
|
301
291
|
/**
|
|
302
292
|
* @remarks
|
|
303
|
-
* The factor
|
|
304
|
-
*
|
|
305
|
-
* > -
|
|
306
|
-
* >
|
|
307
|
-
* > - For best performance, the number of items to be reranked (`TopK` \\* `RerankFactor`, rounded up) should not exceed 50.
|
|
293
|
+
* The reranking factor. When this value is not empty, the AISearch retrieve results are reranked. Valid values: 1 < RerankFactor <= 5.
|
|
294
|
+
* > - Reranking is slow when documents are sparsely chunked.
|
|
295
|
+
* > - The total number of reranked results (TopK × Factor, rounded up) should not exceed 50.
|
|
308
296
|
*
|
|
309
297
|
* @example
|
|
310
298
|
* 2
|
|
@@ -312,7 +300,7 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
312
300
|
rerankFactor?: number;
|
|
313
301
|
/**
|
|
314
302
|
* @remarks
|
|
315
|
-
* The
|
|
303
|
+
* The rerank model parameters.
|
|
316
304
|
*/
|
|
317
305
|
rerankModel?: QueryContentAdvanceRequestRerankModel;
|
|
318
306
|
/**
|
|
@@ -327,11 +315,10 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
327
315
|
* @remarks
|
|
328
316
|
* The validity period of the returned image URL.
|
|
329
317
|
*
|
|
330
|
-
* >
|
|
331
|
-
* >
|
|
332
|
-
* > -
|
|
333
|
-
* >
|
|
334
|
-
* > - Default value: `7200s` (2 hours).
|
|
318
|
+
* > Valid values:
|
|
319
|
+
* > - Supports seconds (s) and days (d) as units. For example, 300s indicates a validity period of 300 seconds, and 60d indicates a validity period of 60 days.
|
|
320
|
+
* > - Valid values: 60s to 365d.
|
|
321
|
+
* > - Default value: 7200s (2 hours).
|
|
335
322
|
*
|
|
336
323
|
* @example
|
|
337
324
|
* 7200s
|
|
@@ -339,7 +326,7 @@ export declare class QueryContentAdvanceRequest extends $dara.Model {
|
|
|
339
326
|
urlExpiration?: string;
|
|
340
327
|
/**
|
|
341
328
|
* @remarks
|
|
342
|
-
* (Deprecated) Specifies whether to use full-text
|
|
329
|
+
* (Deprecated) Specifies whether to use full-text retrieval (dual-path recall). Default value: false, which indicates that only vector retrieval is used.
|
|
343
330
|
*
|
|
344
331
|
* @example
|
|
345
332
|
* true
|
|
@@ -59,12 +59,14 @@ class QueryContentAdvanceRequestRerankModel extends $dara.Model {
|
|
|
59
59
|
return {
|
|
60
60
|
instruct: 'Instruct',
|
|
61
61
|
name: 'Name',
|
|
62
|
+
rerankMetadataFields: 'RerankMetadataFields',
|
|
62
63
|
};
|
|
63
64
|
}
|
|
64
65
|
static types() {
|
|
65
66
|
return {
|
|
66
67
|
instruct: 'string',
|
|
67
68
|
name: 'string',
|
|
69
|
+
rerankMetadataFields: 'string',
|
|
68
70
|
};
|
|
69
71
|
}
|
|
70
72
|
validate() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryContentAdvanceRequest.js","sourceRoot":"","sources":["../../src/models/QueryContentAdvanceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,6DAA+C;AAG/C,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IASxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,8FA4BC;AAED,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"QueryContentAdvanceRequest.js","sourceRoot":"","sources":["../../src/models/QueryContentAdvanceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,6DAA+C;AAG/C,MAAa,yCAA0C,SAAQ,KAAK,CAAC,KAAK;IASxE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,8FA4BC;AAED,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;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