Skip to content

Commit bad1107

Browse files
feat(specs): remove content attributes from models [PRED-982] (#1226)
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
1 parent 8894370 commit bad1107

File tree

4 files changed

+4
-36
lines changed

4 files changed

+4
-36
lines changed

specs/predict/common/schemas/modelsParams.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ activateModelParams:
1313
type: array
1414
items:
1515
$ref: '#/modelAttributes'
16-
contentAttributes:
17-
type: array
18-
items:
19-
$ref: '#/contentAttributes'
2016
required:
2117
- type
2218
- name
@@ -32,10 +28,6 @@ updateModelParams:
3228
type: array
3329
items:
3430
$ref: '#/modelAttributes'
35-
contentAttributes:
36-
type: array
37-
items:
38-
$ref: '#/contentAttributes'
3931
modelStatus:
4032
$ref: '#/modelStatus'
4133

@@ -60,10 +52,6 @@ modelAttributes:
6052
type: string
6153
description: List of items attributes that will be used in the model. This param is required if the model `type` needs it (e.g. `affinities`, `funnel_stage`).
6254

63-
contentAttributes:
64-
type: string
65-
description: List of items attributes that will be used for embeddings, for ex. titles or descriptions.
66-
6755
modelStatus:
6856
type: string
6957
enum: [active, inactive]

specs/predict/responses/Models.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ modelInstance:
1919
type: array
2020
items:
2121
$ref: '#/modelAttributes'
22-
contentAttributes:
23-
type: array
24-
items:
25-
type: string
2622
lastTrained:
2723
type: string
2824
description: The date and time this model instance was last trained.

tests/CTS/methods/requests/predict/activateModelInstance.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
"name": "Shopping stage for EU users",
77
"sourceID": "0200030-129930",
88
"index": "Products Production",
9-
"modelAttributes": [],
10-
"contentAttributes": [
11-
"title",
12-
"description"
13-
]
9+
"modelAttributes": []
1410
},
1511
"request": {
1612
"path": "/1/predict/models",
@@ -20,12 +16,8 @@
2016
"name": "Shopping stage for EU users",
2117
"sourceID": "0200030-129930",
2218
"index": "Products Production",
23-
"modelAttributes": [],
24-
"contentAttributes": [
25-
"title",
26-
"description"
27-
]
19+
"modelAttributes": []
2820
}
2921
}
3022
}
31-
]
23+
]

tests/CTS/methods/requests/predict/updateModelInstance.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
"category_level0",
1212
"category_level1"
1313
],
14-
"contentAttributes": [
15-
"title",
16-
"description"
17-
],
1814
"modelStatus": "inactive"
1915
}
2016
},
@@ -29,12 +25,8 @@
2925
"category_level0",
3026
"category_level1"
3127
],
32-
"contentAttributes": [
33-
"title",
34-
"description"
35-
],
3628
"modelStatus": "inactive"
3729
}
3830
}
3931
}
40-
]
32+
]

0 commit comments

Comments
 (0)