-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Azure ai projects eval result asset #33544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kseager
merged 16 commits into
feature/azure-ai-projects-1dp
from
azure-ai-projects-eval-result-asset
Mar 29, 2025
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
effa069
upload API for remote evals
kseager ac9a7d0
switch to dictionary of outputs
kseager 7c4ed49
clean-ups
kseager 7c2d61f
all evaluations will have some output structure
kseager 6a539fa
switch to a separate input dto
kseager 15ecafd
modeling where we change the input types for create/upload to unify o…
kseager 2285a7b
make optional
kseager c8cf4d3
remove upload
kseager cb23903
parity with service changes
kseager 37b7e1b
align with the rest of assests: note that startpendinguploadincrement…
kseager 18bb069
fix evaluations
kseager a26cc78
realign eval routes
kseager e70fbe2
Remove 'outputs' property from JSON schema
kseager 4145f7d
Neehars comments
kseager a8670d4
add route
kseager 8574ef2
compile errors
kseager File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
specification/ai/Azure.AI.Projects/evaluation-results/models.tsp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| import "@typespec/rest"; | ||
| import "@azure-tools/typespec-autorest"; | ||
| import "@typespec/versioning"; | ||
| import "@azure-tools/typespec-azure-core"; | ||
| import "../common/models.tsp"; | ||
| import "../main.tsp"; | ||
|
|
||
| using TypeSpec.OpenAPI; | ||
| using TypeSpec.Http; | ||
| using TypeSpec.Rest; | ||
| using TypeSpec.Versioning; | ||
| using Azure.Core; | ||
| using Azure.Core.Traits; | ||
|
|
||
| namespace Azure.AI.Projects; | ||
|
|
||
| @doc("Evaluation Result resource Definition") | ||
| @Rest.resource("evaluationResult") | ||
| model EvaluationResult { | ||
| @doc("Type of Evaluation result") | ||
| ResultType?: ResultType; | ||
|
|
||
| @doc("Model Name") | ||
| ModelName?: string; | ||
|
|
||
| @doc("Model Version") | ||
| ModelVersion?: string; | ||
|
|
||
| @doc("Model Asset ID") | ||
| ModelAssetId?: string; | ||
|
|
||
| @doc("Dataset Family") | ||
| DatasetFamily?: string; | ||
|
|
||
| @doc("Dataset Name") | ||
| DatasetName?: string; | ||
|
|
||
| @doc("Metrics") | ||
| Metrics?: Record<float64>; | ||
|
|
||
| @doc("Blob URI") | ||
| BlobUri?: string; | ||
|
|
||
| ...AssetBase; | ||
| } | ||
|
|
||
| @doc("Type of Evaluation result") | ||
| union ResultType { | ||
| string, | ||
|
|
||
| @doc("Benchmark result") | ||
| Benchmark: "Benchmark"; | ||
|
|
||
| @doc("Evaluations Result") | ||
| Evaluation: "Evaluation"; | ||
|
|
||
| @doc("Red Team Result") | ||
| Redteam: "Redteam"; | ||
|
|
||
| @doc("Simulation Result") | ||
| Simulation: "Simulation"; | ||
| } |
45 changes: 45 additions & 0 deletions
45
specification/ai/Azure.AI.Projects/evaluation-results/routes.tsp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| import "@typespec/http"; | ||
| import "@typespec/rest"; | ||
| import "@azure-tools/typespec-autorest"; | ||
| import "@typespec/versioning"; | ||
| import "@azure-tools/typespec-azure-core"; | ||
| import "../common/models.tsp"; | ||
| import "./models.tsp"; | ||
| import "../servicepatterns.tsp"; | ||
|
|
||
| using TypeSpec.Http; | ||
|
|
||
| namespace Azure.AI.Projects; | ||
|
|
||
| alias ListEvaluationResultsParameters = { | ||
| @doc("Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned") | ||
| @query | ||
| top?: int32; | ||
|
|
||
| @doc("Continuation token for pagination.") | ||
| @query | ||
| skip?: string; | ||
|
|
||
| @doc("Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2") | ||
| @query | ||
| tags?: string; | ||
|
|
||
| @doc("[ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities.") | ||
| @query | ||
| listViewType?: ListViewType; | ||
| }; | ||
|
|
||
| #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We are using service specific operation templates" | ||
| interface EvaluationResults | ||
| extends ServicePatterns.VersionedOperations< | ||
| EvaluationResult, | ||
| ListEvaluationResultsParameters, | ||
| ListEvaluationResultsParameters | ||
| > { | ||
| @doc("Create or start a pending upload of a evaluation results for a specific version.") | ||
| startPendingUpload is ServicePatterns.VersionedResourceAction< | ||
| EvaluationResult, | ||
| PendingUploadRequest, | ||
| PendingUploadResponse | ||
| >; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.