Skip to content

Commit e76c550

Browse files
authored
Added query for prebuilt analytics
Added query for prebuilt question answering inference call analytics
1 parent 4460d14 commit e76c550

File tree

1 file changed

+14
-0
lines changed
  • articles/cognitive-services/language-service/question-answering/how-to

1 file changed

+14
-0
lines changed

articles/cognitive-services/language-service/question-answering/how-to/analytics.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,20 @@ AzureDiagnostics
9090
| project question_, answer_, score_, kbId_
9191
```
9292

93+
### Prebuilt question answering inference calls
94+
95+
```kusto
96+
// Show logs from AzureDiagnostics table
97+
// Lists the latest logs in AzureDiagnostics table, sorted by time (latest first).
98+
AzureDiagnostics
99+
| where OperationName == "CustomQuestionAnswering QueryText"
100+
| extend answer_ = tostring(parse_json(properties_s).answer)
101+
| extend question_ = tostring(parse_json(properties_s).question)
102+
| extend score_ = tostring(parse_json(properties_s).score)
103+
| extend requestid = tostring(parse_json(properties_s)["apim-request-id"])
104+
| project TimeGenerated, requestid, question_, answer_, score_
105+
```
106+
93107
## Next steps
94108

95109
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)