-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
default eval to true, add app insights queries (#158)
* default eval to true, add app insights queries * update queries
- Loading branch information
1 parent
aec8730
commit e7ca6da
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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,23 @@ | ||
dependencies | ||
| where name == "run_evaluators" | ||
| project timestamp, results = parse_json(tostring(customDimensions["output"])) | ||
| evaluate bag_unpack(results) | ||
| summarize avg_groundedness=avg(gpt_groundedness), avg_coherence=avg(gpt_coherence), avg_fluency=avg(gpt_fluency), avg_relevance=avg(gpt_relevance) by bin(timestamp, 2h) | ||
| render timechart | ||
|
||
|
||
dependencies | ||
| where name == "run_evaluators" | ||
| project timestamp, results = parse_json(tostring(customDimensions["output"])) | ||
| evaluate bag_unpack(results) | ||
| summarize avg_groundedness=avg(gpt_groundedness), avg_coherence=avg(gpt_coherence), avg_fluency=avg(gpt_fluency), avg_relevance=avg(gpt_relevance) | ||
| render barchart | ||
|
||
|
||
dependencies | ||
| extend | ||
total_tokens = toint(customDimensions["inputs.data.usage.total_tokens"]), | ||
prompt_tokens = toint(customDimensions["inputs.data.usage.prompt_tokens"]), | ||
completion_tokens = toint(customDimensions["inputs.data.usage.completion_tokens"]) | ||
| summarize sum(total_tokens), sum(prompt_tokens), sum(completion_tokens) by bin(timestamp, 5m) | ||
| render timechart |
This file contains 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