Skip to content

Semantic Ranking with AI #61

@alexphiev

Description

@alexphiev

Description:
Use LLM to rank filtered candidates based on user context.

Tasks:

  • Create prompt template: "User wants: [query]. Rank these places: [candidates with summaries]. Return JSON with place_id and relevance_score."
  • Call Gemini API with filtered candidates (1 call per search)
  • Parse JSON response and re-order results
  • Cache rankings for identical queries
  • Add timeout and fallback to score-based ranking

Acceptance Criteria:

  • Ranked results feel personalized to user query
  • Handles edge cases (API failure, timeout)
  • Cost: <€0.01 per search

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions