Skip to content

Related / Similar Plots #5230

@MarkusNeusinger

Description

@MarkusNeusinger

Feature: Related / Similar Plots

When viewing a spec, show 4-6 similar plots based on tag overlap. Keeps users browsing instead of bouncing back to the homepage.

How it works

  • Flatten spec tags into sets: {"plot_type:scatter", "domain:statistics", ...}
  • Jaccard similarity = |intersection| / |union|
  • Return top N (excluding self) with best preview per spec
  • Show which tags matched

Technical Approach

  • New endpoint: GET /insights/related/{spec_id}?limit=6
  • New component: app/src/components/RelatedSpecs.tsx
  • Horizontal row of thumbnail cards below spec content
  • Cached per spec_id

Inspired by

Spotify "You might also like", YouTube sidebar recommendations

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions