forked from kubeflow/hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatalog.yaml
More file actions
1063 lines (1044 loc) · 34.5 KB
/
catalog.yaml
File metadata and controls
1063 lines (1044 loc) · 34.5 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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Model Catalog REST API
version: v1alpha1
description: REST API for Model Registry to create and manage ML model metadata
license:
name: Apache 2.0
url: "https://www.apache.org/licenses/LICENSE-2.0"
servers:
- url: "https://localhost:8080"
- url: "http://localhost:8080"
paths:
/api/model_catalog/v1alpha1/labels:
summary: Path used to get the list of catalog labels.
description: >-
The REST endpoint/path used to list zero or more `CatalogLabel` entities.
get:
summary: List All CatalogLabels
tags:
- ModelCatalogService
parameters:
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/labelOrderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
responses:
"200":
$ref: "#/components/responses/CatalogLabelListResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findLabels
description: Gets a list of all `CatalogLabel` entities.
/api/model_catalog/v1alpha1/models:
description: >-
The REST endpoint/path used to list zero or more `CatalogModel` entities from all `CatalogSources`.
get:
summary: Search catalog models across sources.
tags:
- ModelCatalogService
parameters:
- name: source
description: |-
Filter models by source. Multiple values can be separated by commas
to filter by multiple sources (OR logic). For example:
?source=huggingface,local will return models from either
huggingface OR local sources.
schema:
type: array
items:
type: string
style: form
explode: true
in: query
required: false
- name: q
description: Free-form keyword search used to filter the response.
schema:
type: string
in: query
required: false
- name: sourceLabel
description: |-
Filter models by the label associated with the source. Multiple
values can be separated by commas. If one of the values is the
string `null`, then models from every source without a label will
be returned.
schema:
type: array
items:
type: string
in: query
required: false
- $ref: "#/components/parameters/filterQuery"
- $ref: "#/components/parameters/pageSize"
- name: orderBy
style: form
explode: true
examples:
orderBy:
value: ID
description: |-
Specifies the order by criteria for listing entities.
Supported values are:
- CREATE_TIME
- LAST_UPDATE_TIME
- ID
- NAME
- ACCURACY
The `ACCURACY` sort will sort by the `overall_average` property in any linked metrics artifact.
In addition, models can be sorted by properties. For example:
- `provider.string_value` sorts by provider name
- `artifacts.ifeval.double_value` sorts by the min/max value a property called ifeval across all associated artifacts
schema:
$ref: "#/components/schemas/OrderByField"
in: query
required: false
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
responses:
"200":
$ref: "#/components/responses/CatalogModelListResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findModels
/api/model_catalog/v1alpha1/models/filter_options:
description: Lists options for `filterQuery` when listing models.
get:
summary: Lists fields and available options that can be used in `filterQuery` on the list models endpoint.
tags:
- ModelCatalogService
responses:
"200":
$ref: "#/components/responses/FilterOptionsResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findModelsFilterOptions
/api/model_catalog/v1alpha1/sources:
summary: Path used to get the list of catalog sources.
description: >-
The REST endpoint/path used to list zero or more `CatalogSource` entities.
get:
summary: List All CatalogSources
tags:
- ModelCatalogService
parameters:
- $ref: "#/components/parameters/name"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/orderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
responses:
"200":
$ref: "#/components/responses/CatalogSourceListResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findSources
description: Gets a list of all `CatalogSource` entities.
/api/model_catalog/v1alpha1/sources/{source_id}/models/{model_name+}:
description: >-
The REST endpoint/path used to get a `CatalogModel`.
get:
summary: Get a `CatalogModel`.
tags:
- ModelCatalogService
responses:
"200":
$ref: "#/components/responses/CatalogModelResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getModel
parameters:
- name: source_id
description: A unique identifier for a `CatalogSource`.
schema:
type: string
in: path
required: true
- name: model_name+
description: A unique identifier for the model.
schema:
type: string
in: path
required: true
/api/model_catalog/v1alpha1/sources/{source_id}/models/{model_name}/artifacts:
description: >-
The REST endpoint/path used to list `CatalogArtifacts`.
get:
summary: List CatalogArtifacts.
tags:
- ModelCatalogService
responses:
"200":
$ref: "#/components/responses/CatalogArtifactListResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getAllModelArtifacts
parameters:
- name: source_id
description: A unique identifier for a `CatalogSource`.
schema:
type: string
in: path
required: true
- name: model_name
description: A unique identifier for the model.
schema:
type: string
in: path
required: true
- $ref: "#/components/parameters/artifactType"
- $ref: "#/components/parameters/artifact_type"
- $ref: "#/components/parameters/artifactFilterQuery"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/artifactOrderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
components:
schemas:
ArtifactTypeQueryParam:
description: Supported artifact types for querying.
enum:
- model-artifact
- metrics-artifact
type: string
BaseModel:
type: object
properties:
description:
type: string
description: Human-readable description of the model.
readme:
type: string
description: Model documentation in Markdown.
maturity:
type: string
description: Maturity level of the model.
example: Generally Available
language:
type: array
description: List of supported languages (https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes).
items:
type: string
example:
- en
- es
- cz
tasks:
type: array
description: List of tasks the model is designed for.
items:
type: string
example:
- text-generation
provider:
type: string
description: Name of the organization or entity that provides the model.
example: IBM
logo:
type: string
format: uri
description: |-
URL to the model's logo. A [data
URL](https://developer.mozilla.org/en-US/docs/Web/URI/Schemes/data)
is recommended.
license:
type: string
description: Short name of the model's license.
example: apache-2.0
licenseLink:
type: string
format: uri
description: URL to the license text.
libraryName:
type: string
example: transformers
customProperties:
description: User provided custom properties which are not defined by its type.
type: object
additionalProperties:
$ref: "#/components/schemas/MetadataValue"
BaseResource:
allOf:
- type: object
properties:
customProperties:
description: User provided custom properties which are not defined by its type.
type: object
additionalProperties:
$ref: "#/components/schemas/MetadataValue"
description:
description: |-
An optional description about the resource.
type: string
externalId:
description: |-
The external id that come from the clients’ system. This field is optional.
If set, it must be unique among all resources within a database instance.
type: string
name:
description: |-
The client provided name of the artifact. This field is optional. If set,
it must be unique among all the artifacts of the same artifact type within
a database instance and cannot be changed once set.
type: string
id:
format: int64
description: The unique server generated id of the resource.
type: string
- $ref: "#/components/schemas/BaseResourceDates"
BaseResourceDates:
description: Common timestamp fields for resources
type: object
properties:
createTimeSinceEpoch:
format: int64
description: Output only. Create time of the resource in millisecond since epoch.
type: string
readOnly: true
lastUpdateTimeSinceEpoch:
format: int64
description: Output only. Last update time of the resource since epoch in millisecond since epoch.
type: string
readOnly: true
BaseResourceList:
required:
- nextPageToken
- pageSize
- size
type: object
properties:
nextPageToken:
description: Token to use to retrieve next page of results.
type: string
pageSize:
format: int32
description: Maximum number of resources to return in the result.
type: integer
size:
format: int32
description: Number of items in result list.
type: integer
CatalogArtifact:
description: A single artifact in the catalog API.
oneOf:
- $ref: "#/components/schemas/CatalogModelArtifact"
- $ref: "#/components/schemas/CatalogMetricsArtifact"
discriminator:
propertyName: artifactType
mapping:
model-artifact: "#/components/schemas/CatalogModelArtifact"
metrics-artifact: "#/components/schemas/CatalogMetricsArtifact"
CatalogArtifactList:
description: List of CatalogModel entities.
allOf:
- type: object
properties:
items:
description: Array of `CatalogArtifact` entities.
type: array
items:
$ref: "#/components/schemas/CatalogArtifact"
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
CatalogLabel:
description: A catalog label. Labels are used to categorize catalog sources. Represented as a flexible map of string key-value pairs with a required 'name' field.
type: object
required:
- name
properties:
name:
type: string
nullable: true
description: The unique name identifier for the label.
displayName:
type: string
description: An optional human-readable name to show in place of `name`.
additionalProperties:
type: string
example:
name: huggingface
displayName: HuggingFace Hub
description: HuggingFace models with full support and legal indemnification.
CatalogLabelList:
description: List of CatalogLabel entities.
allOf:
- type: object
properties:
items:
description: Array of `CatalogLabel` entities.
type: array
items:
$ref: "#/components/schemas/CatalogLabel"
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
CatalogMetricsArtifact:
description: A metadata Artifact Entity.
allOf:
- type: object
required:
- artifactType
- metricsType
properties:
artifactType:
type: string
default: metrics-artifact
metricsType:
type: string
enum:
- performance-metrics
- accuracy-metrics
customProperties:
description: User provided custom properties which are not defined by its type.
type: object
additionalProperties:
$ref: "#/components/schemas/MetadataValue"
- $ref: "#/components/schemas/BaseResource"
CatalogModel:
description: A model in the model catalog.
allOf:
- type: object
required:
- name
properties:
name:
type: string
description: Name of the model. Must be unique within a source.
example: ibm-granite/granite-3.1-8b-base
source_id:
type: string
description: ID of the source this model belongs to.
- $ref: "#/components/schemas/BaseModel"
- $ref: "#/components/schemas/BaseResource"
CatalogModelArtifact:
description: A Catalog Model Artifact Entity.
allOf:
- type: object
required:
- artifactType
- uri
properties:
artifactType:
type: string
default: model-artifact
uri:
type: string
format: uri
description: URI where the model can be retrieved.
customProperties:
description: User provided custom properties which are not defined by its type.
type: object
additionalProperties:
$ref: "#/components/schemas/MetadataValue"
- $ref: "#/components/schemas/BaseResource"
CatalogModelList:
description: List of CatalogModel entities.
allOf:
- type: object
properties:
items:
description: Array of `CatalogModel` entities.
type: array
items:
$ref: "#/components/schemas/CatalogModel"
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
CatalogSource:
description: A catalog source. A catalog source has CatalogModel children.
required:
- id
- name
- labels
type: object
properties:
id:
description: A unique identifier for a `CatalogSource`.
type: string
name:
description: The name of the catalog source.
type: string
enabled:
description: Whether the catalog source is enabled.
type: boolean
default: true
labels:
description: Labels for the catalog source.
type: array
items:
type: string
includedModels:
description: |-
Optional allow-list of models that are eligible for this source. Entries can be
exact model names or patterns that use `*` as a wildcard. When provided, only
models matching at least one pattern are considered.
Pattern matching is case-insensitive, so `Granite/*` will match `granite/model`,
`Granite/model`, and `GRANITE/model`.
type: array
items:
type: string
excludedModels:
description: |-
Optional block-list of models that should be removed from the catalog even if
they match `includedModels`. Patterns support the `*` wildcard.
Pattern matching is case-insensitive, so `*-beta` will match `Model-Beta`,
`model-beta`, and `MODEL-BETA`.
type: array
items:
type: string
CatalogSourceList:
description: List of CatalogSource entities.
allOf:
- type: object
properties:
items:
description: Array of `CatalogSource` entities.
type: array
items:
$ref: "#/components/schemas/CatalogSource"
- $ref: "#/components/schemas/BaseResourceList"
Error:
description: Error code and message.
required:
- code
- message
type: object
properties:
code:
description: Error code
type: string
message:
description: Error message
type: string
FilterOption:
type: object
required:
- type
properties:
type:
type: string
description: The data type of the filter option
enum:
- string
- number
values:
type: array
description: Known values of the property for string types with a small number of possible options.
items: {}
range:
$ref: "#/components/schemas/FilterOptionRange"
FilterOptionRange:
type: object
description: Min and max values for number types.
properties:
min:
type: number
format: double
max:
type: number
format: double
FilterOptionsList:
description: List of FilterOptions
type: object
properties:
filters:
type: object
description: A single filter option.
additionalProperties:
$ref: "#/components/schemas/FilterOption"
MetadataBoolValue:
description: A bool property value.
type: object
required:
- metadataType
- bool_value
properties:
bool_value:
type: boolean
metadataType:
type: string
example: MetadataBoolValue
default: MetadataBoolValue
MetadataDoubleValue:
description: A double property value.
type: object
required:
- metadataType
- double_value
properties:
double_value:
format: double
type: number
metadataType:
type: string
example: MetadataDoubleValue
default: MetadataDoubleValue
MetadataIntValue:
description: An integer (int64) property value.
type: object
required:
- metadataType
- int_value
properties:
int_value:
format: int64
type: string
metadataType:
type: string
example: MetadataIntValue
default: MetadataIntValue
MetadataProtoValue:
description: A proto property value.
type: object
required:
- metadataType
- type
- proto_value
properties:
type:
description: url describing proto value
type: string
proto_value:
description: Base64 encoded bytes for proto value
type: string
metadataType:
type: string
example: MetadataProtoValue
default: MetadataProtoValue
MetadataStringValue:
description: A string property value.
type: object
required:
- metadataType
- string_value
properties:
string_value:
type: string
metadataType:
type: string
example: MetadataStringValue
default: MetadataStringValue
MetadataStructValue:
description: A struct property value.
type: object
required:
- metadataType
- struct_value
properties:
struct_value:
description: Base64 encoded bytes for struct value
type: string
metadataType:
type: string
example: MetadataStructValue
default: MetadataStructValue
MetadataValue:
oneOf:
- $ref: "#/components/schemas/MetadataIntValue"
- $ref: "#/components/schemas/MetadataDoubleValue"
- $ref: "#/components/schemas/MetadataStringValue"
- $ref: "#/components/schemas/MetadataStructValue"
- $ref: "#/components/schemas/MetadataProtoValue"
- $ref: "#/components/schemas/MetadataBoolValue"
discriminator:
propertyName: metadataType
mapping:
MetadataBoolValue: "#/components/schemas/MetadataBoolValue"
MetadataDoubleValue: "#/components/schemas/MetadataDoubleValue"
MetadataIntValue: "#/components/schemas/MetadataIntValue"
MetadataProtoValue: "#/components/schemas/MetadataProtoValue"
MetadataStringValue: "#/components/schemas/MetadataStringValue"
MetadataStructValue: "#/components/schemas/MetadataStructValue"
description: A value in properties.
example:
string_value: my_value
metadataType: MetadataStringValue
OrderByField:
description: |-
Supported fields for ordering result entities.
enum:
- CREATE_TIME
- LAST_UPDATE_TIME
- ID
- NAME
type: string
SortOrder:
description: Supported sort direction for ordering result entities.
enum:
- ASC
- DESC
type: string
responses:
BadRequest:
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Bad Request parameters
CatalogArtifactListResponse:
content:
application/json:
schema:
$ref: "#/components/schemas/CatalogArtifactList"
description: A response containing a list of CatalogArtifact entities.
CatalogLabelListResponse:
content:
application/json:
schema:
$ref: "#/components/schemas/CatalogLabelList"
description: A response containing a list of CatalogLabel entities.
CatalogModelListResponse:
content:
application/json:
schema:
$ref: "#/components/schemas/CatalogModelList"
description: A response containing a list of CatalogModel entities.
CatalogModelResponse:
content:
application/json:
schema:
$ref: "#/components/schemas/CatalogModel"
description: A response containing a `CatalogModel` entity.
CatalogSourceListResponse:
content:
application/json:
schema:
$ref: "#/components/schemas/CatalogSourceList"
description: A response containing a list of CatalogSource entities.
CatalogSourceResponse:
content:
application/json:
schema:
$ref: "#/components/schemas/CatalogSource"
description: A response containing a `CatalogSource` entity.
Conflict:
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Conflict with current state of target resource
FilterOptionsResponse:
content:
application/json:
schema:
$ref: "#/components/schemas/FilterOptionsList"
description: A response containing options for a `filterQuery` parameter.
InternalServerError:
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Unexpected internal server error
NotFound:
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: The specified resource was not found
ServiceUnavailable:
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Service is unavailable
Unauthorized:
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Unauthorized
UnprocessableEntity:
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Unprocessable Entity error
parameters:
filterQuery:
examples:
filterQuery:
value: "name='my-model' AND state='LIVE'"
name: filterQuery
description: |
A SQL-like query string to filter the list of entities. The query supports rich filtering capabilities with automatic type inference.
**Supported Operators:**
- Comparison: `=`, `!=`, `<>`, `>`, `<`, `>=`, `<=`
- Pattern matching: `LIKE`, `ILIKE` (case-insensitive)
- Set membership: `IN`
- Logical: `AND`, `OR`
- Grouping: `()` for complex expressions
**Data Types:**
- Strings: `"value"` or `'value'`
- Numbers: `42`, `3.14`, `1e-5`
- Booleans: `true`, `false` (case-insensitive)
**Property Access:**
- Standard properties: `name`, `id`, `state`, `createTimeSinceEpoch`
- Custom properties: Any user-defined property name
- Escaped properties: Use backticks for special characters: `` `custom-property` ``
- Type-specific access: `property.string_value`, `property.double_value`, `property.int_value`, `property.bool_value`
**Examples:**
- Basic: `name = "my-model"`
- Comparison: `accuracy > 0.95`
- Pattern: `name LIKE "%tensorflow%"`
- Complex: `(name = "model-a" OR name = "model-b") AND state = "LIVE"`
- Custom property: `framework.string_value = "pytorch"`
- Escaped property: `` `mlflow.source.type` = "notebook" ``
schema:
type: string
in: query
required: false
artifactFilterQuery:
examples:
artifactFilterQuery:
value: "name='my-artifact' AND uri LIKE '%s3%'"
name: filterQuery
description: |
A SQL-like query string to filter catalog artifacts. The query supports rich filtering capabilities with automatic type inference.
**Supported Operators:**
- Comparison: `=`, `!=`, `<>`, `>`, `<`, `>=`, `<=`
- Pattern matching: `LIKE`, `ILIKE` (case-insensitive)
- Set membership: `IN`
- Logical: `AND`, `OR`
- Grouping: `()` for complex expressions
**Data Types:**
- Strings: `"value"` or `'value'`
- Numbers: `42`, `3.14`, `1e-5`
- Booleans: `true`, `false` (case-insensitive)
**Property Access (Artifacts):**
- Standard properties: `name`, `id`, `uri`, `artifactType`, `createTimeSinceEpoch`
- Custom properties: Any user-defined property name in `customProperties`
- Escaped properties: Use backticks for special characters: `` `custom-property` ``
- Type-specific access: `property.string_value`, `property.double_value`, `property.int_value`, `property.bool_value`
**Examples:**
- Basic: `name = "my-artifact"`
- Comparison: `ttft_mean > 90`
- Pattern: `uri LIKE "%s3.amazonaws.com%"`
- Complex: `(artifactType = "model-artifact" OR artifactType = "metrics-artifact") AND name LIKE "%pytorch%"`
- Custom property: `format.string_value = "pytorch"`
- Escaped property: `` `custom-key` = "value" ``
schema:
type: string
in: query
required: false
orderBy:
style: form
explode: true
examples:
orderBy:
value: ID
name: orderBy
description: Specifies the order by criteria for listing entities.
schema:
$ref: "#/components/schemas/OrderByField"
in: query
required: false
artifactOrderBy:
style: form
explode: true
examples:
standardField:
value: ID
summary: Order by standard field
customPropertyDouble:
value: mmlu.double_value
summary: Order by custom double property
customPropertyString:
value: framework_type.string_value
summary: Order by custom string property
customPropertyInt:
value: hardware_count.int_value
summary: Order by custom integer property
name: orderBy
description: |
Specifies the order by criteria for listing artifacts.
**Standard Fields:**
- `ID` - Order by artifact ID
- `NAME` - Order by artifact name
- `CREATE_TIME` - Order by creation timestamp
- `LAST_UPDATE_TIME` - Order by last update timestamp
**Custom Property Ordering:**
Artifacts can be ordered by custom properties using the format: `<property_name>.<value_type>`
Supported value types:
- `double_value` - For numeric (floating-point) properties
- `int_value` - For integer properties
- `string_value` - For string properties
Examples:
- `mmlu.double_value` - Order by the 'mmlu' benchmark score
- `accuracy.double_value` - Order by accuracy metric
- `framework_type.string_value` - Order by framework type
- `hardware_count.int_value` - Order by hardware count
- `ttft_mean.double_value` - Order by time-to-first-token mean
**Behavior:**
- If an invalid value type is specified (e.g., `accuracy.invalid_type`), an error is returned
- If an invalid format is used (e.g., `accuracy` without `.value_type`), it falls back to ID ordering
- If a property doesn't exist, it falls back to ID ordering
- Artifacts with the specified property are ordered first (by the property value), followed by artifacts without the property (ordered by ID)
- Empty property names (e.g., `.double_value`) return an error
schema:
type: string
in: query
required: false
labelOrderBy:
style: form
explode: true
examples:
labelOrderBy:
value: name
name: orderBy
description: |
Specifies the key to order catalog labels by. You can provide any string key
that may exist in the label maps. Labels that contain the specified key will
be sorted by that key's value. Labels that don't contain the key will maintain
their original order and appear after labels that do contain the key.
schema:
type: string
in: query
required: false
artifactType:
style: form
explode: true
examples:
artifactType:
value: model-artifact
name: artifactType
description: "Specifies the artifact type for listing artifacts."
schema:
type: array
items:
$ref: "#/components/schemas/ArtifactTypeQueryParam"
in: query
required: false
artifact_type:
deprecated: true
style: form
explode: true
examples:
artifact_type:
value: model-artifact
name: artifact_type
description: "Specifies the artifact type for listing artifacts."
schema:
type: array
items:
$ref: "#/components/schemas/ArtifactTypeQueryParam"
in: query
required: false
id:
name: id
description: The ID of resource.
schema:
type: string
in: path
required: true
name:
examples:
name:
value: entity-name
name: name
description: Name of entity to search.
schema:
type: string
in: query
required: false
externalId:
examples:
externalId:
value: "10"
name: externalId
description: External ID of entity to search.
schema: