-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathNative-SQL-Multimodal-Search.yml
More file actions
357 lines (357 loc) · 9.05 KB
/
Native-SQL-Multimodal-Search.yml
File metadata and controls
357 lines (357 loc) · 9.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 原生 SQL 轻松实现多模态智能检索。
en: Native SQL easily realizes multimodal intelligent retrieval.
Parameters:
CommonName:
Type: String
Default: SmartSearch
BucketName:
AssociationProperty: AutoCompleteInput
AssociationPropertyMetadata:
Length: 6
Prefix: test-bucket-
CharacterClasses:
- Class: lowercase
min: 1
Type: String
Label:
zh-cn: Bucket名称
en: Bucket Name
ZoneId:
Type: String
Label:
zh-cn: 可用区ID
en: Available Zone ID
AssociationProperty: ALIYUN::ECS::Instance::ZoneId
AccountName:
Type: String
Label:
zh-cn: 数据库用户名
en: Account Name
Description:
zh-cn: 长度不超过16个字符。以小写英文字母开头,可包含小写英文字母、数字和下划线(_)。
en: The length should not exceed 16 characters. It begins with a lowercase English letter and can contain lowercase English letters, numbers and underscores (_).
ConstraintDescription:
zh-cn: 长度不超过16个字符。以小写英文字母开头,可包含小写英文字母、数字和下划线(_)。
en: The length should not exceed 16 characters. It begins with a lowercase English letter and can contain lowercase English letters, numbers and underscores (_).
AllowedPattern: '^[a-z][a-z0-9_]{0,30}[a-z0-9]$'
Default: polar_ai
MaxLength: 16
MinLength: 2
AccountPassword:
Type: String
Description:
en: Server login password, Length 8-32, must contain three(Capital letters, lowercase letters, numbers, !@#$%^&*()_+-= Special symbol in)
zh-cn: 数据库访问密码,长度8-32,必须包含三项(大写字母、小写字母、数字、 !@#$%^&*()_+-= 中的特殊符号)
Label:
en: Account Password
zh-cn: 数据库密码
ConstraintDescription:
en: Length 8-32, must contain three(Capital letters, lowercase letters, numbers, !@#$%^&*()_+-=Special symbol in)
zh-cn: 长度8-32,必须包含三项(大写字母、小写字母、数字、 !@#$%^&*()_+-=中的特殊符号)
AllowedPattern: '^[0-9A-Za-z_!@#$%^&*()_+\-=\+]+$'
MinLength: 8
MaxLength: 32
NoEcho: true
DBName:
Type: String
Label:
en: Database Name
zh-cn: 数据库名称
AllowedPattern: ^[a-z][a-z0-9_-]{0,62}[a-z0-9]$
Description:
en: It is composed of lowercase letters, numbers, an underscore (-), and an underscore (_), ending with a lowercase letter or number, beginning with a letter, and ending with a letter or number, with a maximum of 64 characters.
zh-cn: 由小写字母、数字、中划线(-)、下划线(_)组成,小写字母或数字结尾,以字母开头,以字母或数字结尾,最长 64 个字符。
ConstraintDescription:
en: It is composed of lowercase letters, numbers, an underscore (-), and an underscore (_), ending with a lowercase letter or number, beginning with a letter, and ending with a letter or number, with a maximum of 64 characters.
zh-cn: 由小写字母、数字、中划线(-)、下划线(_)组成,小写字母或数字结尾,以字母开头,以字母或数字结尾,最长 64 个字符。
Default: db-test
PolarDBNodeClass:
Type: String
Label:
en: PolarDB Node Specifications
zh-cn: 规格和代理
AssociationProperty: ALIYUN::POLARDB::DBCluster::DBNodeClass
AssociationPropertyMetadata:
ZoneId: ${ZoneId}
DBVersion: "14"
DBType: PostgreSQL
PayType: Postpaid
CommodityCode: polardb_payg
Default: polar.pg.g2.2xlarge.c
Resources:
VPC:
Type: ALIYUN::ECS::VPC
Properties:
VpcName:
Fn::Sub: VPC_${CommonName}
CidrBlock: 192.168.0.0/16
VSwitch:
Type: ALIYUN::ECS::VSwitch
Properties:
VpcId:
Ref: VPC
CidrBlock: 192.168.1.0/24
ZoneId:
Ref: ZoneId
VSwitchName:
Fn::Sub: vsw_001_${CommonName}
PolardbCluster:
Type: ALIYUN::POLARDB::DBCluster
Properties:
VpcId:
Ref: VPC
SecurityIPList: 0.0.0.0/0
DBType: PostgreSQL
ClusterNetworkType: VPC
ZoneId:
Ref: ZoneId
VSwitchId:
Ref: VSwitch
DBVersion: "14"
CreationCategory: SENormal
StorageSpace: 20
HotStandbyCluster: 'OFF'
DBNodeClass:
Ref: PolarDBNodeClass
PayType: Postpaid
DBNodeNum: 2
StorageType: ESSDPL1
Account:
Type: ALIYUN::POLARDB::Account
Properties:
DBClusterId:
Ref: PolardbCluster
AccountName:
Ref: AccountName
AccountPassword:
Ref: AccountPassword
AccountType: Super
Database:
DependsOn: Account
Type: ALIYUN::POLARDB::Database
Properties:
CharacterSetName: utf8
AccountPrivilege: ReadWrite
AccountName:
Ref: AccountName
DBClusterId:
Ref: PolardbCluster
DBName:
Ref: DBName
Collate: C
Ctype: C
DBClusterEndpointAddress:
Type: ALIYUN::POLARDB::DBClusterEndpointAddress
DependsOn: Account
Properties:
DBClusterId:
Ref: PolardbCluster
DBEndpointId:
Fn::GetAtt:
- PolardbCluster
- ClusterEndpointId
OSSBucket:
Type: ALIYUN::OSS::Bucket
Properties:
BucketName:
Ref: BucketName
DeletionForce: true
RedundancyType: ZRS
Outputs:
BucketName:
Description:
en: OSS Bucket Name.
zh-cn: 对象存储存储桶名。
Value:
Ref: BucketName
AccountName:
Description:
en: PolarDB account name.
zh-cn: PolarDB 数据库用户名。
Value:
Ref: AccountName
AccountPassword:
NoEcho: true
Description:
en: PolarDB account password.
zh-cn: PolarDB 数据库密码。
Value:
Ref: AccountPassword
DBName:
Description:
en: PolarDB database name.
zh-cn: PolarDB 数据库名称。
Value:
Ref: DBName
ConnectionString:
Description:
en: PolarDB database connection string.
zh-cn: PolarDB 数据库的公网地址。
Value:
Fn::Sub: ${DBClusterEndpointAddress.ConnectionString}:5432
Metadata:
ALIYUN::ROS::Interface:
Outputs:
- BucketName
- AccountName
- AccountPassword
- DBName
- ConnectionString
ParameterGroups:
- Parameters:
- ZoneId
Label:
default:
en: Network Configuration
zh-cn: 网络基础配置
- Parameters:
- BucketName
Label:
default:
en: OSS Configuration
zh-cn: OSS 础配置
- Parameters:
- PolarDBNodeClass
- DBName
- AccountName
- AccountPassword
Label:
default:
en: PolarDB PostgreSQL Configuration
zh-cn: 云数据库 PolarDB PostgreSQL 配置
TemplateTags:
- acs:technical-solution:internet-application-development:原生 SQL 轻松实现多模态智能检索-tech_solu_262
Hidden:
- CommonName
ALIYUN::ROS::Composer:
'76439745':
Parent: 753c0b31
Edge:
- 63d303bb
- 4f80e0bf
Line: 0:0:0:gray:0
'77439370':
Res:
- VSwitch
Parent: 61b21ac9
Rect:
- 400
- 200
- 120
- 300
- 5
- 0
cc07a2de:
Rect:
- 680
- 540
- 40
- 100
- 1
- 0
ResT: Composer::ROSParameter::AlibabaCloud
753c0b31:
Parent: cc07a2de
Rect:
- 640
- 470
- 60
- 150
- 2
- 0
ResT: Composer::ROSParameter::Region
be46ddfa:
Res:
- VPC
Parent: 753c0b31
Rect:
- 480
- 340
- 80
- 200
- 3
- 0
4cabf82f:
Res:
- Account
Parent: 753c0b31
Rect:
- 40
- 40
- 640
- 200
- 3
- 0
Hidden: true
63d303bb:
Res:
- DBClusterEndpointAddress
Parent: 753c0b31
Rect:
- 40
- 40
- 580
- 560
- 3
- 0
Hidden: true
f4344332:
Res:
- OSSBucket
Parent: 753c0b31
Rect:
- 40
- 40
- 580
- 200
- 3
- 0
Hidden: true
61b21ac9:
Res:
- ZoneId
Parent: be46ddfa
Rect:
- 440
- 270
- 100
- 250
- 4
- 0
ResT: Composer::ROSParameter::Zone
4f80e0bf:
Res:
- PolardbCluster
Parent: '77439370'
Rect:
- 40
- 40
- 210
- 380
- 6
- 0
'832e3166':
Parent: 753c0b31
Edge:
- 4cabf82f
- 4f80e0bf
Line: 0:0:0:gray:0
dcb3e60e:
Parent: 753c0b31
Edge:
- 2f37ccba
- 4f80e0bf
Line: 0:0:0:gray:0
2f37ccba:
Res:
- Database
Parent: 753c0b31
Rect:
- 40
- 40
- 399
- 380
- 11
- 0