forked from microsoft/chat-copilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
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 @@ | ||
select | ||
m.dt, | ||
count(m.dt) as n, | ||
sum(m.audienceExtraction) as audienceExtraction, | ||
sum(m.userIntentExtraction) as userIntentExtraction, | ||
sum(m.metaPromptTemplate) as metaPromptTemplate, | ||
sum(m.responseCompletion) as responseCompletion, | ||
sum(m.workingMemoryExtraction) as workingMemoryExtraction, | ||
sum(m.longTermMemoryExtraction) as longTermMemoryExtraction | ||
from ( | ||
select | ||
substring(m.timestamp, 0, 10) as dt, | ||
m.tokenUsage.audienceExtraction as audienceExtraction, | ||
m.tokenUsage.userIntentExtraction as userIntentExtraction, | ||
m.tokenUsage.metaPromptTemplate as metaPromptTemplate, | ||
m.tokenUsage.responseCompletion as responseCompletion, | ||
m.tokenUsage.workingMemoryExtraction as workingMemoryExtraction, | ||
m.tokenUsage.longTermMemoryExtraction as longTermMemoryExtraction | ||
from | ||
chatmessages as m | ||
) as m | ||
group by | ||
m.dt |