Skip to content

Use LLM-based scoring for platform handler queries#71

Merged
prasjaiswal merged 1 commit intomainfrom
fix/platform-handler-llm-scoring
Feb 17, 2026
Merged

Use LLM-based scoring for platform handler queries#71
prasjaiswal merged 1 commit intomainfrom
fix/platform-handler-llm-scoring

Conversation

@prasjaiswal
Copy link
Collaborator

Summary

  • Platform-retrieved items (Shopify/Wix MCP) were all scoring below the min_score=51 threshold with the default Pi Labs scorer, resulting in empty results
  • Override to GPT-4.1-mini scorer for KeywordRetrievalHandler queries using the existing override_scoring_provider context manager (same pattern as aajtak.py)
  • Pi Labs remains the default scorer for all vector DB queries (aajtak, yoast, etc.)

Test plan

  • izzywheels.com (Wix): 9 results, scores 85-90 with 4.1-mini override
  • hashipottery.com (Shopify): 9 results, scores 70-85 with 4.1-mini override
  • aajtak.in (vector DB): 5 results, scores 100 with Pi Labs default (unaffected)

🤖 Generated with Claude Code

Platform-retrieved items (Shopify/Wix MCP) were all scoring below
the min_score=51 threshold with the default Pi Labs scorer, resulting
in empty results. Override to 4.1-mini scorer for KeywordRetrievalHandler
queries using the existing override_scoring_provider context manager
(same pattern as aajtak.py).

Pi Labs remains the default scorer for vector DB queries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@prasjaiswal prasjaiswal merged commit a2a6d7d into main Feb 17, 2026
5 checks passed
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.

1 participant