Repository navigation
Closed
Labels
e-commerceShopping, product catalog, store and marketplace connectorsenhancementNew feature or request
Description
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
- Inputs.
- Product text: the title plus the first 40 words of the description. Use the catalog from the connector framework (feat(integrations): a connector framework for stores and marketplaces, with a catalog model #1263). Until a catalog is connected, use the brand's own products as captured in shopping cards (
prompt_result_shopping_cards.product_title). - Prompts: the brand's shopping prompts (prompts tracked on
chatgpt-shopping, see 00012). Add the fan-out queries recorded for them inprompt_results.search_queries(00021).
- Product text: the title plus the first 40 words of the description. Use the catalog from the connector framework (feat(integrations): a connector framework for stores and marketplaces, with a catalog model #1263). Until a catalog is connected, use the brand's own products as captured in shopping cards (
- 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.
- 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".
- Winner's score. The same score for the product AI showed first for that prompt, from its card's title.
- 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.
- 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.
Metadata
Metadata
Assignees
Labels
e-commerceShopping, product catalog, store and marketplace connectorsenhancementNew feature or request
Activity
feat(shopping): score an own product's keyword match with each prompt…