Repository navigation
fix(prompts): count each keyword once in Similar Topics and retune High Opportunity - #1104
Merged
Merged
Conversation
…gh Opportunity Goes with the median-based prompt volume (fix/prompt-volume-median, migration 00154). - Similar Topics added a keyword's volume once for every prompt that used it, so "seo tools" (110k a month) in 121 prompts read 13.1M; its comment said the opposite. A keyword's volume now counts once, is found whatever its case (google_volumes keeps the provider's spelling), and a prompt listing it twice counts once. Each prompt in a cluster carries its own volumes. - High Opportunity Prompts listed prompts from 5k and called 10k High, which suited the old sum. With the median they are 500 and 1,000 (lib/prompt-volume-opportunity.ts), keeping about the same share of prompts on the list. - Avg. AI Volume is rounded (it read "632.667"), "across N keywords" counts distinct keywords, and the footnote, the Similar Topics totals and the MCP get_prompt_volumes description say how the figures are made. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
ansvisor#1103 raises the default AI adoption rate from 15% to 45%, which triples every estimate. The High Opportunity thresholds move with it, from 500 and 1,000 to 1,500 and 3,000, so the list keeps about the same share of prompts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The web side of #1103's median-based prompt volume: Similar Topics counts each keyword once, and High Opportunity moves to the new scale. Please merge it together with #1103.
Why the thresholds: with #1103 (median per prompt, 45% AI adoption rate) the median prompt on the largest brand goes from ~4.7k to ~1.6k and p90 from ~41k to ~6.7k. 1,500 and 3,000 keep roughly the same share of prompts on the list (about half), with the top third or so High.
Commits: the first set 500 / 1,000 for #1103's median at 15%. The second scales them to 1,500 / 3,000 after #1103 also raised the rate to 45%.
What changes
lib/prompt-volume-clusters.tsvolumecounts once.lib/prompt-volume-opportunity.ts(new):OPPORTUNITY_MIN_VOLUME,OPPORTUNITY_HIGH_VOLUMEandopportunityLevel. The Insights card and its tooltip use them.prompts/page.tsx:prompts/similar-topics/page.tsx: the header totals say they are across prompts.get_prompt_volumes: the description saystotal_google_volumeis the median of the keyword volumes, not their sum.data.ts's doc and thePromptVolumetype say the same.prompt-volume-clusters.test.ts(new) covers the single count, case and duplicates;prompt-volume-opportunity.test.ts(new) covers the thresholds.Left as is: the server's
topicOpportunityImpactthresholds (50k / 10k), as noted in #1103.Related issue
None. Goes with #1103.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): no errors; the 7 warnings are in files this PR does not touchyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
web:yarn test(857) andyarn buildpass.🤖 Generated with Claude Code