@alicloud/gpdb20160503 3.6.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 +267 -36
- package/dist/client.js +648 -36
- 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/CreateBranchRequest.d.ts +150 -0
- package/dist/models/CreateBranchRequest.js +104 -0
- package/dist/models/CreateBranchRequest.js.map +1 -0
- package/dist/models/CreateBranchResponse.d.ts +19 -0
- package/dist/models/CreateBranchResponse.js +69 -0
- package/dist/models/CreateBranchResponse.js.map +1 -0
- package/dist/models/CreateBranchResponseBody.d.ts +37 -0
- package/dist/models/CreateBranchResponseBody.js +62 -0
- package/dist/models/CreateBranchResponseBody.js.map +1 -0
- package/dist/models/CreateSnapshotRequest.d.ts +55 -0
- package/dist/models/CreateSnapshotRequest.js +66 -0
- package/dist/models/CreateSnapshotRequest.js.map +1 -0
- package/dist/models/CreateSnapshotResponse.d.ts +19 -0
- package/dist/models/CreateSnapshotResponse.js +69 -0
- package/dist/models/CreateSnapshotResponse.js.map +1 -0
- package/dist/models/CreateSnapshotResponseBody.d.ts +45 -0
- package/dist/models/CreateSnapshotResponseBody.js +64 -0
- package/dist/models/CreateSnapshotResponseBody.js.map +1 -0
- package/dist/models/CreateSupabaseProjectRequest.d.ts +62 -48
- package/dist/models/CreateSupabaseProjectRequest.js.map +1 -1
- package/dist/models/CreateSupabaseProjectResponseBody.d.ts +4 -4
- package/dist/models/DeleteBranchRequest.d.ts +31 -0
- package/dist/models/DeleteBranchRequest.js +60 -0
- package/dist/models/DeleteBranchRequest.js.map +1 -0
- package/dist/models/DeleteBranchResponse.d.ts +19 -0
- package/dist/models/DeleteBranchResponse.js +69 -0
- package/dist/models/DeleteBranchResponse.js.map +1 -0
- package/dist/models/DeleteBranchResponseBody.d.ts +21 -0
- package/dist/models/DeleteBranchResponseBody.js +58 -0
- package/dist/models/DeleteBranchResponseBody.js.map +1 -0
- package/dist/models/DeleteSnapshotRequest.d.ts +34 -0
- package/dist/models/DeleteSnapshotRequest.js +62 -0
- package/dist/models/DeleteSnapshotRequest.js.map +1 -0
- package/dist/models/DeleteSnapshotResponse.d.ts +19 -0
- package/dist/models/DeleteSnapshotResponse.js +69 -0
- package/dist/models/DeleteSnapshotResponse.js.map +1 -0
- package/dist/models/DeleteSnapshotResponseBody.d.ts +18 -0
- package/dist/models/DeleteSnapshotResponseBody.js +58 -0
- package/dist/models/DeleteSnapshotResponseBody.js.map +1 -0
- package/dist/models/DescribeBranchRequest.d.ts +31 -0
- package/dist/models/DescribeBranchRequest.js +60 -0
- package/dist/models/DescribeBranchRequest.js.map +1 -0
- package/dist/models/DescribeBranchResponse.d.ts +19 -0
- package/dist/models/DescribeBranchResponse.js +69 -0
- package/dist/models/DescribeBranchResponse.js.map +1 -0
- package/dist/models/DescribeBranchResponseBody.d.ts +211 -0
- package/dist/models/DescribeBranchResponseBody.js +138 -0
- package/dist/models/DescribeBranchResponseBody.js.map +1 -0
- package/dist/models/GetBranchSchemaRequest.d.ts +51 -0
- package/dist/models/GetBranchSchemaRequest.js +64 -0
- package/dist/models/GetBranchSchemaRequest.js.map +1 -0
- package/dist/models/GetBranchSchemaResponse.d.ts +19 -0
- package/dist/models/GetBranchSchemaResponse.js +69 -0
- package/dist/models/GetBranchSchemaResponse.js.map +1 -0
- package/dist/models/GetBranchSchemaResponseBody.d.ts +29 -0
- package/dist/models/GetBranchSchemaResponseBody.js +60 -0
- package/dist/models/GetBranchSchemaResponseBody.js.map +1 -0
- package/dist/models/ListBranchesRequest.d.ts +106 -0
- package/dist/models/ListBranchesRequest.js +74 -0
- package/dist/models/ListBranchesRequest.js.map +1 -0
- package/dist/models/ListBranchesResponse.d.ts +19 -0
- package/dist/models/ListBranchesResponse.js +69 -0
- package/dist/models/ListBranchesResponse.js.map +1 -0
- package/dist/models/ListBranchesResponseBody.d.ts +138 -0
- package/dist/models/ListBranchesResponseBody.js +190 -0
- package/dist/models/ListBranchesResponseBody.js.map +1 -0
- 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/RestartSupabaseProjectRequest.d.ts +31 -0
- package/dist/models/RestartSupabaseProjectRequest.js +60 -0
- package/dist/models/RestartSupabaseProjectRequest.js.map +1 -0
- package/dist/models/RestartSupabaseProjectResponse.d.ts +19 -0
- package/dist/models/RestartSupabaseProjectResponse.js +69 -0
- package/dist/models/RestartSupabaseProjectResponse.js.map +1 -0
- package/dist/models/RestartSupabaseProjectResponseBody.d.ts +21 -0
- package/dist/models/RestartSupabaseProjectResponseBody.js +58 -0
- package/dist/models/RestartSupabaseProjectResponseBody.js.map +1 -0
- package/dist/models/RestoreSnapshotRequest.d.ts +73 -0
- package/dist/models/RestoreSnapshotRequest.js +70 -0
- package/dist/models/RestoreSnapshotRequest.js.map +1 -0
- package/dist/models/RestoreSnapshotResponse.d.ts +19 -0
- package/dist/models/RestoreSnapshotResponse.js +69 -0
- package/dist/models/RestoreSnapshotResponse.js.map +1 -0
- package/dist/models/RestoreSnapshotResponseBody.d.ts +37 -0
- package/dist/models/RestoreSnapshotResponseBody.js +62 -0
- package/dist/models/RestoreSnapshotResponseBody.js.map +1 -0
- 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 +40 -0
- package/dist/models/model.js +103 -22
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +720 -36
- 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/CreateBranchRequest.ts +200 -0
- package/src/models/CreateBranchResponse.ts +40 -0
- package/src/models/CreateBranchResponseBody.ts +54 -0
- package/src/models/CreateSnapshotRequest.ts +76 -0
- package/src/models/CreateSnapshotResponse.ts +40 -0
- package/src/models/CreateSnapshotResponseBody.ts +64 -0
- package/src/models/CreateSupabaseProjectRequest.ts +62 -48
- package/src/models/CreateSupabaseProjectResponseBody.ts +4 -4
- package/src/models/DeleteBranchRequest.ts +46 -0
- package/src/models/DeleteBranchResponse.ts +40 -0
- package/src/models/DeleteBranchResponseBody.ts +34 -0
- package/src/models/DeleteSnapshotRequest.ts +51 -0
- package/src/models/DeleteSnapshotResponse.ts +40 -0
- package/src/models/DeleteSnapshotResponseBody.ts +31 -0
- package/src/models/DescribeBranchRequest.ts +46 -0
- package/src/models/DescribeBranchResponse.ts +40 -0
- package/src/models/DescribeBranchResponseBody.ts +286 -0
- package/src/models/GetBranchSchemaRequest.ts +70 -0
- package/src/models/GetBranchSchemaResponse.ts +40 -0
- package/src/models/GetBranchSchemaResponseBody.ts +44 -0
- package/src/models/ListBranchesRequest.ts +135 -0
- package/src/models/ListBranchesResponse.ts +40 -0
- package/src/models/ListBranchesResponseBody.ts +247 -0
- 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/RestartSupabaseProjectRequest.ts +46 -0
- package/src/models/RestartSupabaseProjectResponse.ts +40 -0
- package/src/models/RestartSupabaseProjectResponseBody.ts +34 -0
- package/src/models/RestoreSnapshotRequest.ts +98 -0
- package/src/models/RestoreSnapshotResponse.ts +40 -0
- package/src/models/RestoreSnapshotResponseBody.ts +54 -0
- 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 +40 -0
|
@@ -7,7 +7,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
7
7
|
* @remarks
|
|
8
8
|
* The name of the document collection.
|
|
9
9
|
*
|
|
10
|
-
* >
|
|
10
|
+
* > 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.
|
|
11
11
|
*
|
|
12
12
|
* This parameter is required.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
17
17
|
collection?: string;
|
|
18
18
|
/**
|
|
19
19
|
* @remarks
|
|
20
|
-
* The text
|
|
20
|
+
* The text content used for retrieval.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* What is AnalyticDB for PostgreSQL?
|
|
@@ -27,7 +27,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* The instance ID.
|
|
29
29
|
*
|
|
30
|
-
* > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to
|
|
30
|
+
* > 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.
|
|
31
31
|
*
|
|
32
32
|
* This parameter is required.
|
|
33
33
|
*
|
|
@@ -37,9 +37,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
37
37
|
DBInstanceId?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* The
|
|
40
|
+
* The name of the source image file to search in image-to-image search scenarios.
|
|
41
41
|
*
|
|
42
|
-
* > The image file must have a file extension.
|
|
42
|
+
* > The image file must have a file extension. Supported image extensions: bmp, jpg, jpeg, png, and tiff.
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
45
|
* test.jpg
|
|
@@ -47,9 +47,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
47
47
|
fileName?: string;
|
|
48
48
|
/**
|
|
49
49
|
* @remarks
|
|
50
|
-
* The publicly accessible URL of the image file
|
|
50
|
+
* The publicly accessible URL of the image file in image-to-image search scenarios.
|
|
51
51
|
*
|
|
52
|
-
* > The image file must have a file extension.
|
|
52
|
+
* > The image file must have a file extension. Supported image extensions: bmp, jpg, jpeg, png, and tiff.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* https://xx/myImage.jpg
|
|
@@ -57,9 +57,10 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
57
57
|
fileUrl?: string;
|
|
58
58
|
/**
|
|
59
59
|
* @remarks
|
|
60
|
-
*
|
|
60
|
+
* 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.
|
|
61
61
|
*
|
|
62
|
-
* >
|
|
62
|
+
* >
|
|
63
|
+
* > - For detailed syntax, refer to: https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-where/.
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
66
|
* title = \\"test\\" AND name like \\"test%\\"
|
|
@@ -67,7 +68,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
67
68
|
filter?: string;
|
|
68
69
|
/**
|
|
69
70
|
* @remarks
|
|
70
|
-
* Specifies whether to enable knowledge graph enhancement.
|
|
71
|
+
* Specifies whether to enable knowledge graph enhancement. Default value: false.
|
|
71
72
|
*
|
|
72
73
|
* @example
|
|
73
74
|
* false
|
|
@@ -75,20 +76,18 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
75
76
|
graphEnhance?: boolean;
|
|
76
77
|
/**
|
|
77
78
|
* @remarks
|
|
78
|
-
* The
|
|
79
|
+
* The knowledge graph retrieval parameters.
|
|
79
80
|
*/
|
|
80
81
|
graphSearchArgsShrink?: string;
|
|
81
82
|
/**
|
|
82
83
|
* @remarks
|
|
83
|
-
*
|
|
84
|
+
* The multi-channel recall algorithm. Default value: empty, which indicates that the dense vector and full-text index scores are directly compared and sorted.
|
|
84
85
|
*
|
|
85
86
|
* Valid values:
|
|
86
87
|
*
|
|
87
|
-
* - RRF:
|
|
88
|
-
*
|
|
89
|
-
* -
|
|
90
|
-
*
|
|
91
|
-
* - Cascaded: Performs full-text search first, and then performs vector retrieval on the results.
|
|
88
|
+
* - RRF: Reciprocal Rank Fusion. A parameter k controls the fusion effect. For more information, see the HybridSearchArgs configuration.
|
|
89
|
+
* - 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.
|
|
90
|
+
* - Cascaded: Full-text index retrieve is performed first, followed by AISearch retrieve based on the full-text index results.
|
|
92
91
|
*
|
|
93
92
|
* @example
|
|
94
93
|
* RRF
|
|
@@ -96,10 +95,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
96
95
|
hybridSearch?: string;
|
|
97
96
|
/**
|
|
98
97
|
* @remarks
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* - RRF: Specifies the constant `k` in the scoring formula `1/(k+rank_i)`. The value must be an integer greater than 1. Example:
|
|
98
|
+
* 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.
|
|
102
99
|
*
|
|
100
|
+
* - 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:
|
|
103
101
|
* ```
|
|
104
102
|
* {
|
|
105
103
|
* "HybridPathsSetting": {
|
|
@@ -111,12 +109,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
111
109
|
* }
|
|
112
110
|
* ```
|
|
113
111
|
*
|
|
114
|
-
* - Weight:
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* - 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.
|
|
119
|
-
*
|
|
112
|
+
* - Weight:
|
|
113
|
+
* - Dual-path recall (without specifying HybridPathsSetting, only specifying alpha):
|
|
114
|
+
* - 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:
|
|
120
115
|
* ```
|
|
121
116
|
* {
|
|
122
117
|
* "Weight": {
|
|
@@ -124,11 +119,8 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
124
119
|
* }
|
|
125
120
|
* }
|
|
126
121
|
* ```
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* - 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)`).
|
|
131
|
-
*
|
|
122
|
+
* - Three-path recall pattern:
|
|
123
|
+
* - 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)).
|
|
132
124
|
* ```
|
|
133
125
|
* {
|
|
134
126
|
* "HybridPathsSetting": {
|
|
@@ -145,7 +137,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
145
137
|
hybridSearchArgsShrink?: string;
|
|
146
138
|
/**
|
|
147
139
|
* @remarks
|
|
148
|
-
* Specifies whether to return the URL of the document.
|
|
140
|
+
* Specifies whether to synchronously return the URL of the document. By default, the URL is not returned.
|
|
149
141
|
*
|
|
150
142
|
* @example
|
|
151
143
|
* false
|
|
@@ -153,7 +145,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
153
145
|
includeFileUrl?: boolean;
|
|
154
146
|
/**
|
|
155
147
|
* @remarks
|
|
156
|
-
* The metadata fields to
|
|
148
|
+
* The metadata fields to return. Default value: empty. Separate multiple fields with commas.
|
|
157
149
|
*
|
|
158
150
|
* @example
|
|
159
151
|
* title,page
|
|
@@ -161,11 +153,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
161
153
|
includeMetadataFields?: string;
|
|
162
154
|
/**
|
|
163
155
|
* @remarks
|
|
164
|
-
* Specifies whether to
|
|
165
|
-
*
|
|
166
|
-
* > - **
|
|
167
|
-
* >
|
|
168
|
-
* > - **true**: The vector is returned.
|
|
156
|
+
* Specifies whether to return vectors. Default value: false.
|
|
157
|
+
* > - **false**: Does not return vectors.
|
|
158
|
+
* > - **true**: Returns vectors.
|
|
169
159
|
*
|
|
170
160
|
* @example
|
|
171
161
|
* true
|
|
@@ -173,14 +163,11 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
173
163
|
includeVector?: boolean;
|
|
174
164
|
/**
|
|
175
165
|
* @remarks
|
|
176
|
-
* The similarity algorithm used for retrieval. If this
|
|
166
|
+
* 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.
|
|
177
167
|
*
|
|
178
168
|
* > Valid values:
|
|
179
|
-
* >
|
|
180
169
|
* > - **l2**: Euclidean distance.
|
|
181
|
-
* >
|
|
182
|
-
* > - **ip**: dot product (inner product) distance.
|
|
183
|
-
* >
|
|
170
|
+
* > - **ip**: inner product distance.
|
|
184
171
|
* > - **cosine**: cosine similarity.
|
|
185
172
|
*
|
|
186
173
|
* @example
|
|
@@ -189,9 +176,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
189
176
|
metrics?: string;
|
|
190
177
|
/**
|
|
191
178
|
* @remarks
|
|
192
|
-
* The namespace.
|
|
179
|
+
* The namespace. Default value: public.
|
|
193
180
|
*
|
|
194
|
-
* > You can
|
|
181
|
+
* > 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.
|
|
195
182
|
*
|
|
196
183
|
* @example
|
|
197
184
|
* mynamespace
|
|
@@ -199,9 +186,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
199
186
|
namespace?: string;
|
|
200
187
|
/**
|
|
201
188
|
* @remarks
|
|
202
|
-
* The password
|
|
189
|
+
* The password of the namespace.
|
|
203
190
|
*
|
|
204
|
-
* > This
|
|
191
|
+
* > This value is specified by the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation.
|
|
205
192
|
*
|
|
206
193
|
* This parameter is required.
|
|
207
194
|
*
|
|
@@ -211,7 +198,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
211
198
|
namespacePassword?: string;
|
|
212
199
|
/**
|
|
213
200
|
* @remarks
|
|
214
|
-
* The offset for
|
|
201
|
+
* The offset for paged query. Used for paging through results.
|
|
215
202
|
*
|
|
216
203
|
* @example
|
|
217
204
|
* 0
|
|
@@ -219,9 +206,13 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
219
206
|
offset?: number;
|
|
220
207
|
/**
|
|
221
208
|
* @remarks
|
|
222
|
-
* The field
|
|
209
|
+
* The field used for sorting. Default value: empty.
|
|
210
|
+
*
|
|
211
|
+
* The field must belong to metadata or a default field in the table, such as id. Supported formats:
|
|
223
212
|
*
|
|
224
|
-
*
|
|
213
|
+
* A single field, such as chunk_id.
|
|
214
|
+
* Multiple fields separated by commas, such as block_id, chunk_id.
|
|
215
|
+
* Descending order, such as block_id DESC, chunk_id DESC.
|
|
225
216
|
*
|
|
226
217
|
* @example
|
|
227
218
|
* created_at
|
|
@@ -230,11 +221,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
230
221
|
ownerId?: number;
|
|
231
222
|
/**
|
|
232
223
|
* @remarks
|
|
233
|
-
* The recall window.
|
|
234
|
-
*
|
|
235
|
-
* > -
|
|
236
|
-
* >
|
|
237
|
-
* > - Reranking is prioritized over windowing. The system first applies reranking and then processes the window.
|
|
224
|
+
* 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.
|
|
225
|
+
* > - Use this parameter when documents are split into overly small chunks and retrieval may lose contextual information.
|
|
226
|
+
* > - Reranking takes priority over windowing. Reranking is performed first, followed by windowing.
|
|
238
227
|
*/
|
|
239
228
|
recallWindowShrink?: string;
|
|
240
229
|
/**
|
|
@@ -249,11 +238,9 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
249
238
|
regionId?: string;
|
|
250
239
|
/**
|
|
251
240
|
* @remarks
|
|
252
|
-
* The factor
|
|
253
|
-
*
|
|
254
|
-
* > -
|
|
255
|
-
* >
|
|
256
|
-
* > - For best performance, the number of items to be reranked (`TopK` \\* `RerankFactor`, rounded up) should not exceed 50.
|
|
241
|
+
* The reranking factor. When this value is not empty, the AISearch retrieve results are reranked. Valid values: 1 < RerankFactor <= 5.
|
|
242
|
+
* > - Reranking is slow when documents are sparsely chunked.
|
|
243
|
+
* > - The total number of reranked results (TopK × Factor, rounded up) should not exceed 50.
|
|
257
244
|
*
|
|
258
245
|
* @example
|
|
259
246
|
* 2
|
|
@@ -261,7 +248,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
261
248
|
rerankFactor?: number;
|
|
262
249
|
/**
|
|
263
250
|
* @remarks
|
|
264
|
-
* The
|
|
251
|
+
* The rerank model parameters.
|
|
265
252
|
*/
|
|
266
253
|
rerankModelShrink?: string;
|
|
267
254
|
/**
|
|
@@ -276,11 +263,10 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
276
263
|
* @remarks
|
|
277
264
|
* The validity period of the returned image URL.
|
|
278
265
|
*
|
|
279
|
-
* >
|
|
280
|
-
* >
|
|
281
|
-
* > -
|
|
282
|
-
* >
|
|
283
|
-
* > - Default value: `7200s` (2 hours).
|
|
266
|
+
* > Valid values:
|
|
267
|
+
* > - 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.
|
|
268
|
+
* > - Valid values: 60s to 365d.
|
|
269
|
+
* > - Default value: 7200s (2 hours).
|
|
284
270
|
*
|
|
285
271
|
* @example
|
|
286
272
|
* 7200s
|
|
@@ -288,7 +274,7 @@ export class QueryContentShrinkRequest extends $dara.Model {
|
|
|
288
274
|
urlExpiration?: string;
|
|
289
275
|
/**
|
|
290
276
|
* @remarks
|
|
291
|
-
* (Deprecated) Specifies whether to use full-text
|
|
277
|
+
* (Deprecated) Specifies whether to use full-text retrieval (dual-path recall). Default value: false, which indicates that only vector retrieval is used.
|
|
292
278
|
*
|
|
293
279
|
* @example
|
|
294
280
|
* true
|