Skip to content

feat(scorer/llmrater): add fallback to SQL logic comparison for empty results#326

Merged
IsmailMehdi merged 3 commits intomainfrom
feat/llmrater-empty-results-fallback
Apr 14, 2026
Merged

feat(scorer/llmrater): add fallback to SQL logic comparison for empty results#326
IsmailMehdi merged 3 commits intomainfrom
feat/llmrater-empty-results-fallback

Conversation

@wangauone
Copy link
Copy Markdown
Collaborator

This change implements a fallback mechanism in LLMRater to handle cases where both the golden and generated queries return empty datasets. Instead of defaulting to a 100% score (false positive), it now invokes the LLM to compare the SQL logic of the queries. It also refactors the hardcoded prompts into file-level constants for better maintainability and adds unit tests to verify the new behavior.

@wangauone wangauone requested a review from IsmailMehdi as a code owner April 14, 2026 22:55
@IsmailMehdi
Copy link
Copy Markdown
Collaborator

/gcbrun

@IsmailMehdi IsmailMehdi merged commit d168ac0 into main Apr 14, 2026
4 of 5 checks passed
@wangauone wangauone deleted the feat/llmrater-empty-results-fallback branch April 15, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants