Skip to content

Commit 0878668

Browse files
committed
Support API CreateDBInstanceIPArray.
1 parent b763334 commit 0878668

File tree

146 files changed

+6143
-253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+6143
-253
lines changed

gpdb-20160503/ChangeLog.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
2025-11-28 Version: 4.15.0
2+
- Support API CreateDBInstanceIPArray.
3+
- Support API CreateDatabase.
4+
- Support API DeleteDBInstanceIPArray.
5+
- Support API DeleteDatabase.
6+
- Support API DeletePrivateRAGService.
7+
- Support API DeployPrivateRAGService.
8+
- Support API DescribeDatabase.
9+
- Support API DescribeExtension.
10+
- Support API DescribePrivateRAGService.
11+
- Support API DescribeRebalanceStatus.
12+
- Support API DescribeZonesPrivateRAGService.
13+
- Support API DownloadSlowSQLRecords.
14+
- Support API ListDatabaseExtensions.
15+
- Support API ListInstanceDatabases.
16+
- Support API ListSlowSQLRecords.
17+
18+
119
2025-10-30 Version: 4.14.0
220
- Support API QueryKnowledgeBasesContent.
321
- Update API ChatWithKnowledgeBase: add request parameters RegionId.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '4.14.0'
1+
__version__ = '4.15.0'

gpdb-20160503/alibabacloud_gpdb20160503/client.py

Lines changed: 1398 additions & 98 deletions
Large diffs are not rendered by default.

gpdb-20160503/alibabacloud_gpdb20160503/models/__init__.py

Lines changed: 98 additions & 0 deletions
Large diffs are not rendered by default.

gpdb-20160503/alibabacloud_gpdb20160503/models/_add_ainode_request.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ def __init__(
1414
ainode_spec_infos: List[main_models.AddAINodeRequestAINodeSpecInfos] = None,
1515
dbinstance_id: str = None,
1616
):
17+
# The ID of the resource pool to which the AI node belongs.
1718
self.ainode_pool_id = ainode_pool_id
19+
# The AI node specifications.
20+
#
1821
# This parameter is required.
1922
self.ainode_spec_infos = ainode_spec_infos
23+
# The cluster ID.
24+
#
2025
# This parameter is required.
2126
self.dbinstance_id = dbinstance_id
2227

@@ -68,8 +73,41 @@ def __init__(
6873
node_num: str = None,
6974
node_spec: str = None,
7075
):
76+
# The number of AI nodes.
77+
#
7178
# This parameter is required.
7279
self.node_num = node_num
80+
# The AI node specifications.
81+
#
82+
# ADB.AIStandard.1
83+
# ADB.AIMedium.1
84+
# ADB.AILarge.1
85+
# ADB.AIStandard.2
86+
# ADB.AIMedium.2
87+
# ADB.AILarge.2
88+
# ADB.AIXLarge.2
89+
# ADB.AIStandard.6
90+
# ADB.AIMedium.6
91+
# ADB.AILarge.6
92+
# ADB.AIXLarge.6
93+
# ADB.AIStandard.3
94+
# ADB.AIMedium.3
95+
# ADB.AILarge.3
96+
# ADB.AIXLarge.3
97+
# ADB.AIStandard.4
98+
# ADB.AIMedium.4
99+
# ADB.AILarge.4
100+
# ADB.AIXLarge.4
101+
# ADB.AIStandard.5
102+
# ADB.AIMedium.5
103+
# ADB.AILarge.5
104+
# ADB.AIXLarge.5
105+
# ADB.AIStandard.8
106+
# ADB.AIMedium.8
107+
# ADB.AILarge.8
108+
# ADB.AIXLarge.8
109+
# ADB.AI2XLarge.8
110+
#
73111
# This parameter is required.
74112
self.node_spec = node_spec
75113

gpdb-20160503/alibabacloud_gpdb20160503/models/_cancel_create_index_job_request.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,46 @@ def __init__(
1616
region_id: str = None,
1717
workspace_id: str = None,
1818
):
19+
# The name of the collection.
20+
#
21+
# > You can call the [ListCollections](https://help.aliyun.com/document_detail/2401503.html) operation to query a list of collections.
22+
#
1923
# This parameter is required.
2024
self.collection = collection
25+
# The cluster ID.
26+
#
27+
# > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/196830.html) operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
2128
self.dbinstance_id = dbinstance_id
29+
# The ID of the index creation job, which is returned from the `CreateIndex` operation.
30+
#
2231
# This parameter is required.
2332
self.job_id = job_id
33+
# The namespace name.
34+
#
35+
# > You can call the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation to create a namespace and call the [ListNamespaces](https://help.aliyun.com/document_detail/2401502.html) operation to query a list of namespaces.
36+
#
2437
# This parameter is required.
2538
self.namespace = namespace
39+
# The password of the namespace.
40+
#
41+
# > The value of this parameter is specified when you call the CreateNamespace operation.
42+
#
2643
# This parameter is required.
2744
self.namespace_password = namespace_password
2845
self.owner_id = owner_id
46+
# The region ID of the cluster.
47+
#
48+
# > You can call the [DescribeRegions](https://help.aliyun.com/document_detail/86912.html) operation to query the most recent region list.
49+
#
2950
# This parameter is required.
3051
self.region_id = region_id
52+
# The ID of the workspace that consists of multiple AnalyticDB for PostgreSQL instances. You must specify one of the WorkspaceId and DBInstanceId parameters. If you specify both parameters, the WorkspaceId parameter takes precedence.
53+
#
54+
# Valid values:
55+
#
56+
# * ip
57+
# * l2
58+
# * cosine
3159
self.workspace_id = workspace_id
3260

3361
def validate(self):

gpdb-20160503/alibabacloud_gpdb20160503/models/_cancel_create_index_job_response_body.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ def __init__(
1111
request_id: str = None,
1212
status: str = None,
1313
):
14+
# The returned message.
1415
self.message = message
16+
# The unique ID of the request.
1517
self.request_id = request_id
18+
# The status of the operation. Valid values:
19+
#
20+
# * **success**
21+
# * **fail**
1622
self.status = status
1723

1824
def validate(self):

gpdb-20160503/alibabacloud_gpdb20160503/models/_chat_with_knowledge_base_request.py

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,24 @@ def __init__(
1818
prompt_params: str = None,
1919
region_id: str = None,
2020
):
21+
# The cluster ID.
22+
#
23+
# > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/196830.html) operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
24+
#
2125
# This parameter is required.
2226
self.dbinstance_id = dbinstance_id
27+
# Whether to return the retrieved result. Default value: false.
2328
self.include_knowledge_base_results = include_knowledge_base_results
29+
# The knowledge retrieval parameter object. If you do not specify this parameter, only chat mode is enabled.
2430
self.knowledge_params = knowledge_params
31+
# The Large Language Model (LLM) invocation parameter object.
32+
#
2533
# This parameter is required.
2634
self.model_params = model_params
2735
self.owner_id = owner_id
36+
# The system prompt template, which should include {{ text_chunks }},{{ user_system_prompt }},{{ graph_entities },{{ graph_relations }}. If any of these placeholders are not specified, the corresponding section should have no effect.
2837
self.prompt_params = prompt_params
38+
# 实例所在的地域ID
2939
self.region_id = region_id
3040

3141
def validate(self):
@@ -103,17 +113,29 @@ def __init__(
103113
tools: List[main_models.ChatWithKnowledgeBaseRequestModelParamsTools] = None,
104114
top_p: float = None,
105115
):
116+
# Maximum number of tokens to generate.
106117
self.max_tokens = max_tokens
118+
# Message list.
119+
#
107120
# This parameter is required.
108121
self.messages = messages
122+
# The model name. See [Model Studio Document](https://help.aliyun.com/zh/model-studio/compatibility-of-openai-with-dashscope?spm=a2c4g.11186623.help-menu-2400256.d_2_10_0.45b5516eZIciC8\\&scm=20140722.H_2833609._.OR_help-T_cn~zh-V_1#eadfc13038jd5) for the available models.
123+
#
109124
# This parameter is required.
110125
self.model = model
126+
# The number of candidate responses to generate.
111127
self.n = n
128+
# Presence penalty coefficient (-2.0 to 2.0).
112129
self.presence_penalty = presence_penalty
130+
# The random seed.
113131
self.seed = seed
132+
# Stop words.
114133
self.stop = stop
134+
# Sampling temperature (0~2).
115135
self.temperature = temperature
136+
# Tools
116137
self.tools = tools
138+
# Top-p (nucleus) sampling threshold (0–1).
117139
self.top_p = top_p
118140

119141
def validate(self):
@@ -212,6 +234,7 @@ def __init__(
212234
self,
213235
function: main_models.ChatWithKnowledgeBaseRequestModelParamsToolsFunction = None,
214236
):
237+
# The information about a function.
215238
self.function = function
216239

217240
def validate(self):
@@ -243,8 +266,11 @@ def __init__(
243266
name: str = None,
244267
parameters: Any = None,
245268
):
269+
# The description of the function.
246270
self.description = description
271+
# The name of the function.
247272
self.name = name
273+
# JSON Schema for function parameters.
248274
self.parameters = parameters
249275

250276
def validate(self):
@@ -285,7 +311,13 @@ def __init__(
285311
content: str = None,
286312
role: str = None,
287313
):
314+
# The message content.
288315
self.content = content
316+
# The message role. Valid values:
317+
#
318+
# * system
319+
# * user
320+
# * assistant
289321
self.role = role
290322

291323
def validate(self):
@@ -323,11 +355,26 @@ def __init__(
323355
source_collection: List[main_models.ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollection] = None,
324356
top_k: int = None,
325357
):
358+
# The method used to merge multiple knowledge bases. Default value: RRF. Optional:
359+
#
360+
# * RRF
361+
# * Weight
326362
self.merge_method = merge_method
363+
# Parameters for multi-knowledge-base fusion.
327364
self.merge_method_args = merge_method_args
365+
# The rerank factor. If you specify this parameter, the search result is reranked once again. Valid values: 1\\<RerankFactor<=5.
366+
#
367+
# >
368+
#
369+
# * If the document is segmented into sparse parts, reranking is inefficient.
370+
#
371+
# * We recommend that the number of reranked results (the ceiling of TopK × RerankFactor) not exceed 50.
328372
self.rerank_factor = rerank_factor
373+
# Knowledge base.
374+
#
329375
# This parameter is required.
330376
self.source_collection = source_collection
377+
# Specifies the number of top results to return after merging retrieved results from multiple vector collections.
331378
self.top_k = top_k
332379

333380
def validate(self):
@@ -393,11 +440,21 @@ def __init__(
393440
namespace_password: str = None,
394441
query_params: main_models.ChatWithKnowledgeBaseRequestKnowledgeParamsSourceCollectionQueryParams = None,
395442
):
443+
# The name of the collection to be recalled.
444+
#
396445
# This parameter is required.
397446
self.collection = collection
447+
# The name of the namespace. Default value: public.
448+
#
449+
# > You can call the [CreateNamespace](https://help.aliyun.com/document_detail/2401495.html) operation to create a namespace and call the [ListNamespaces](https://help.aliyun.com/document_detail/2401502.html) operation to query a list of namespaces.
398450
self.namespace = namespace
451+
# The password of the namespace.
452+
#
453+
# > The value of this parameter is specified when you call the CreateNamespace operation.
454+
#
399455
# This parameter is required.
400456
self.namespace_password = namespace_password
457+
# Parameters related to the knowledge base retrieval.
401458
self.query_params = query_params
402459

403460
def validate(self):
@@ -454,15 +511,67 @@ def __init__(
454511
top_k: int = None,
455512
use_full_text_retrieval: bool = None,
456513
):
514+
# The condition that is used to filter the data to be updated. Specify this parameter in a format that is the same as the WHERE clause.
457515
self.filter = filter
516+
# Whether to enable knowledge graph enhancement. Default value: false.
458517
self.graph_enhance = graph_enhance
518+
# Returns the top number of entities and relationship edges. Default value: 60.
459519
self.graph_search_args = graph_search_args
520+
# The dual-path retrieval algorithm. This parameter is empty by default, which specifies that scores of vector retrieval and full-text retrieval are directly compared and sorted together.
521+
#
522+
# Valid values:
523+
#
524+
# * RRF: The reciprocal rank fusion (RRF) algorithm uses a constant k to control the fusion effect. For more information, see the description of the HybridSearchArgs parameter.
525+
# * Weight: This algorithm uses the alpha parameter to specify the proportion of the vector search score and the full-text search score and then sorts by weight. For more information, see the description of the HybridSearchArgs parameter.
526+
# * Cascaded: This algorithm performs first full-text retrieval and then vector retrieval.
460527
self.hybrid_search = hybrid_search
528+
# The parameters of the dual-path retrieval algorithm. RRF and Weight are supported at this time:
529+
#
530+
# * RRF: Specifies the smoothing constant k in the formula to calculate the score: `1/(k + rank_i)`. The k constant must be a positive integer greater than 1. The format:
531+
#
532+
# <!---->
533+
#
534+
# {
535+
# "RRF": {
536+
# "k": 60
537+
# }
538+
# }
539+
#
540+
# * Weight: The score is computed as `alpha * vector_score + (1 - alpha) * text_score`. The parameter alpha controls the weighting between vector search and full-text search scores, with a valid range of [0, 1]. 0 specifies only full-text search score. 1 specifies only vector search score.
541+
#
542+
# <!---->
543+
#
544+
# {
545+
# "Weight": {
546+
# "alpha": 0.5
547+
# }
548+
# }
461549
self.hybrid_search_args = hybrid_search_args
550+
# The method that is used to create vector indexes. Valid values:
551+
#
552+
# * l2: Euclidean distance.
553+
# * ip: Inner product distance.
554+
# * cosine: Cosine similarity.
462555
self.metrics = metrics
556+
# The retrieval window. If you specify this parameter, the context of the retrieved result is added in the output. Format: List\\<A, B>. Valid values: -10<=A<=0 and 0<=B<=10.
557+
#
558+
# >
559+
#
560+
# * We recommend that you specify this parameter if the source document is segmented into large numbers of pieces, which may result in loss of contextual information during retrieval.
561+
#
562+
# * Perform re-ranking before windowing.
463563
self.recall_window = recall_window
564+
# The rerank factor. If you specify this parameter, the search result is reranked once again. Valid values: 1\\<RerankFactor<=5.
565+
#
566+
# >
567+
#
568+
# * If the document is segmented into sparse parts, reranking is inefficient.
569+
#
570+
# * We recommend that the number of reranked results (the ceiling of TopK × RerankFactor) not exceed 50.
464571
self.rerank_factor = rerank_factor
572+
# The number of top results.
465573
self.top_k = top_k
574+
# Specifies whether to use full-text retrieval (dual-path retrieval). The default value is false, which means only vector retrieval is used.
466575
self.use_full_text_retrieval = use_full_text_retrieval
467576

468577
def validate(self):
@@ -546,6 +655,7 @@ def __init__(
546655
self,
547656
graph_top_k: int = None,
548657
):
658+
# Returns the top number of entities and relationship edges. Default value: 60.
549659
self.graph_top_k = graph_top_k
550660

551661
def validate(self):
@@ -574,7 +684,9 @@ def __init__(
574684
rrf: main_models.ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgsRrf = None,
575685
weight: main_models.ChatWithKnowledgeBaseRequestKnowledgeParamsMergeMethodArgsWeight = None,
576686
):
687+
# The parameter that can be configured when the MergeMethod parameter is set to RRF.
577688
self.rrf = rrf
689+
# The parameter that you can configure when you set the MergeMethod parameter to Weight.
578690
self.weight = weight
579691

580692
def validate(self):
@@ -613,6 +725,7 @@ def __init__(
613725
self,
614726
weights: List[float] = None,
615727
):
728+
# An array of weights for each SourceCollection.
616729
self.weights = weights
617730

618731
def validate(self):
@@ -640,6 +753,7 @@ def __init__(
640753
self,
641754
k: int = None,
642755
):
756+
# The smoothing constant k in the formula to calculate the score: 1/(k + rank_i). It must be a positive integer greater than 1.
643757
self.k = k
644758

645759
def validate(self):

0 commit comments

Comments
 (0)