Azure / Azure/azure-sdk-for-python

[azure-ai-evaluation] studio_url returned by evaluate() only works for old Foundry experience, not new Foundry

Aperta
#45,234 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Evaluation Service Attention
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
213

Descrizione

## Description

When using `azure-ai-evaluation`'s `evaluate()` function with an `azure_ai_project` parameter, the `studio_url` in the result dictionary points to the old Azure AI Foundry (AI Studio) experience. This URL does not work for users who have the new Foundry experience toggled on.

## Current behavior

The SDK generates URLs in this format (returned in AiStudioEvaluationUri from upload API):

```
https://ai.azure.com/resource/build/evaluation/{evaluation_id}?wsid=/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.CognitiveServices/accounts/{account}/projects/{project}&tid={tenant_id}
```

## Expected behavior

For users who have the new Foundry experience enabled, the URL should be different, something like?

```
https://ai.azure.com/nextgen/r/{encoded_project_id}/Build/evaluations/list
```

Or ideally, the URL should redirect to the correct experience automatically regardless of which Foundry UX the user has enabled.

## Steps to reproduce

1. Run `evaluate()` from `azure-ai-evaluation` with `azure_ai_project` configured
2. Check the `studio_url` in the returned result
3. Open the URL in a browser with the new Foundry experience toggled on. See that the URL just redirects back to Foundry home. Navigate to Evaluations tab and see NO evaluation runs.

Image

5. Toggle off New Foundry, navigate to URL, and successfully see evaluations:

Image

So there are two issues - one that the new foundry doesnt show evaluations, but second issue that the studio_url should direct users to the right place in new foundry if they're using it.

## Package version

`azure-ai-evaluation` 1.15.0

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Parti dal punto di ingresso evaluate() di azure-ai-evaluation e segui il modo in cui il parametro azure_ai_project produce studio_url, inclusa la AiStudioEvaluationUri restituita dall’API di upload. Confronta l’URL generato con il nuovo percorso Foundry descritto nell’issue e verifica che il link risultante apra l’esecuzione della valutazione nell’esperienza appropriata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, python
Ambito
ai
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.