diff --git a/libs/agentc_core/agentc_core/analytics/ddls/llm_generations.sqlpp b/libs/agentc_core/agentc_core/analytics/ddls/llm_generations.sqlpp new file mode 100644 index 00000000..f5f7104f --- /dev/null +++ b/libs/agentc_core/agentc_core/analytics/ddls/llm_generations.sqlpp @@ -0,0 +1,15 @@ +CREATE OR REPLACE ANALYTICS VIEW LlmGenerations AS +SELECT + session, + llm_generations +FROM ( + SELECT + session, + grouping AS grouping_id, + documents + FROM `[BUCKET_NAME]`.`[SCOPE_NAME]`.`[LOG_COLLECTION_NAME]` + GROUP BY session, grouping + GROUP AS documents +) AS msg_group +GROUP BY session +GROUP AS llm_generations; \ No newline at end of file