Skip to content

feat(shopping): score how well a product matches each shopping prompt, with the missing words #1282

Closed

Description

@gkhngyk

Summary

In the US, ChatGPT Shopping seems to rank products by keyword match (BM25) and meaning (embeddings) between the question and the product's title and opening text. This comes from public research presented at brightonSEO 2026, based on a few test prompts, and we'll verify it.

We can compute a similar score ourselves, per product and shopping prompt. We can also show which of the prompt's words the product is missing. It is our estimate, not ChatGPT's score, and the UI says so.

Scope

  1. Inputs.
  2. Score, 0 to 100, per product and prompt.
    • BM25: over the product texts competing for that prompt, normalized.
    • Meaning: cosine similarity of embeddings.
    • Combine the two with fixed, documented weights.
    • No embedding helper exists yet. Add one next to ai-provider.js, with the model set by configuration, and cache embeddings by text hash.
  3. Missing words.
    • The prompt's and fan-outs' content words, after stopwords, that the product text lacks.
    • Shown as chips, e.g. "Missing: waterproof, wet rock".
  4. Winner's score. The same score for the product AI showed first for that prompt, from its card's title.
  5. Storage and refresh.
    • Store the latest score per product and prompt, with the missing words.
    • Recompute when the product text, the prompt or its fan-outs change.
  6. Where it shows.
    • Now: the Shopping page's My products tab, with the score per prompt and the missing words.
    • Later: Readiness (average, and products under 40), Products, "Why not your product?" and the Content Editor Shopping tab, as each exists.
    • "Add missing words" becomes an agent suggestion that needs approval, once the Content Editor product mode exists.
    • Every place labels it "Ansvisor estimate".

Acceptance criteria

  • Adding a missing word to a product's title raises its score for that prompt.
  • Missing words never include words already in the product text.
  • The winner's score shows next to the product's own score.
  • The UI labels the score as an Ansvisor estimate.
  • Unit tests cover the BM25 part and the combination with fixed embeddings.

Activity

  1. added
    enhancement
    e-commerce
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    e-commerceenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions