Skip to content

Commit 883138c

Browse files
authored
Merge pull request #97979 from jaydeepn/patch-14
Added query for prebuilt analytics
2 parents 0f40382 + e76c550 commit 883138c

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)