Skip to content

Commit 1c9d051

Browse files
authored
Merge pull request #32 from anfredette/db-query
fix: Update postgres-query-traffic to use correct column names
2 parents 5058469 + 3c3c7c9 commit 1c9d051

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,10 @@ postgres-shell: ## Open PostgreSQL shell
361361
postgres-query-traffic: ## Query unique traffic patterns from database
362362
@printf "$(BLUE)Querying unique traffic patterns...$(NC)\n"
363363
@docker exec -i compass-postgres psql -U postgres -d compass -c \
364-
"SELECT DISTINCT mean_input_tokens, mean_output_tokens, COUNT(*) as num_benchmarks \
364+
"SELECT DISTINCT prompt_tokens, output_tokens, COUNT(*) as num_benchmarks \
365365
FROM exported_summaries \
366-
GROUP BY mean_input_tokens, mean_output_tokens \
367-
ORDER BY mean_input_tokens, mean_output_tokens;"
366+
GROUP BY prompt_tokens, output_tokens \
367+
ORDER BY prompt_tokens, output_tokens;"
368368

369369
postgres-query-models: ## Query available models in database
370370
@printf "$(BLUE)Querying available models...$(NC)\n"

0 commit comments

Comments
 (0)