You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Allow passing a tracking ID for API requests with side-effects (#2)
Extend API to accept a tracking ID as an optional query parameter,
allowing upstream systems to track training requests. Validate
received IDs to ensure they're alphanumeric strings of length 1-256,
following MLflow's internal run ID validation model. Extend serving
tests to check that the ID (if provided) is included in the API's response.
Signed-off-by: Phoevos Kalemkeris <[email protected]>
trainer_export: Annotated[List[UploadFile], File(description="A list of trainer export files to be uploaded")],
103
107
annotator_a_project_id: Annotated[int, Query(description="The project ID from one annotator")],
104
108
annotator_b_project_id: Annotated[int, Query(description="The project ID from another annotator")],
105
-
scope: Annotated[str, Query(enum=[s.valueforsinScope], description="The scope for which the score will be calculated, e.g., per_concept, per_document or per_span")]) ->StreamingResponse:
109
+
scope: Annotated[str, Query(enum=[s.valueforsinScope], description="The scope for which the score will be calculated, e.g., per_concept, per_document or per_span")],
multi_text_file: Annotated[UploadFile, File(description="A file containing a list of plain texts, in the format of [\"text_1\", \"text_2\", ..., \"text_n\"]")],
trainer_export: Annotated[List[UploadFile], File(description="One or more trainer export files to be uploaded")] = [],
48
51
trainer_export_str: Annotated[str, Form(description="The trainer export raw JSON string")] ="{\"projects\": []}",
49
52
project_id: Annotated[Union[int, None], Query(description="The target project ID, and if not provided, all projects will be included")] =None,
50
-
document_id: Annotated[Union[int, None], Query(description="The target document ID, and if not provided, all documents of the target project(s) will be included")] =None) ->Response:
53
+
document_id: Annotated[Union[int, None], Query(description="The target document ID, and if not provided, all documents of the target project(s) will be included")] =None,
test_size: Annotated[Union[float, None], Query(description="The override of the test size in percentage. (For a 'huggingface-ner' model, a negative value can be used to apply the train-validation-test split if implicitly defined in trainer export: 'projects[0]' is used for training, 'projects[1]' for validation, and 'projects[2]' for testing)")] =0.2,
33
34
log_frequency: Annotated[int, Query(description="The number of processed documents after which training metrics will be logged", ge=1)] =1,
34
35
description: Annotated[Union[str, None], Form(description="The description of the training or change logs")] =None,
0 commit comments