| 1 | # Recommendations |
| 2 | |
| 3 | Read for recommendation intent before ranking and rendering. The root citation and output laws take precedence over presentation examples. |
| 4 | |
| 5 | ### If QUERY_TYPE = RECOMMENDATIONS — Signal-weighted picks, not mention counts |
| 6 | |
| 7 | **The failure mode for RECOMMENDATIONS queries is "counting when you should have judged."** Mention count rewards whatever is already popular, which is rarely what is actually recommended. Rank by signal quality instead. |
| 8 | |
| 9 | **Signal weights (highest to lowest):** |
| 10 | 1. **Practitioner testimony** (weight 5) - first-person "I use X and here's why" with specific reasoning, version numbers, or workflow details |
| 11 | 2. **Expert defection / authority move** (weight 4) - a domain insider publicly switching, endorsing, or picking (e.g., Flask creator switching from Python to Go) |
| 12 | 3. **Measurable claim** (weight 4) - specific number, benchmark, production adoption proof (e.g., "43.7% latency win", "LinkedIn and Uber running it in prod") |
| 13 | 4. **Reasoned comparison** (weight 3) - side-by-side analysis with tradeoffs explicitly named |
| 14 | 5. **Pattern across independent sources** (weight 2) - multiple unaffiliated voices converging on the same pick |
| 15 | 6. **Descriptive mention** (weight 1) - "X is a Python framework" — existence, not recommendation |
| 16 | 7. **Promotional / bootcamp / course-caption** (weight 0) - "comment CODE for my course" — skip entirely, do not count |
| 17 | |
| 18 | **Before ranking, separate "what EXISTS" from "what is RECOMMENDED":** |
| 19 | - EXISTS = descriptive mentions, promotional content, training-data inertia, bootcamp curriculum, "learn X first" posts with no stakes attached |
| 20 | - RECOMMENDED = reasoned picks from voices with stakes in the outcome (practitioners, experts, case studies, people who switched) |
| 21 | - Only RECOMMENDED items drive the top of the ranking. Existing-but-not-recommended items go in "Also mentioned" at the bottom with a one-line note on why they are mentions not picks. |
| 22 | |
| 23 | **Lead with the 30-day DELTA, not the status-quo baseline.** What is the interesting movement? Who is switching? What is the contrarian signal? A status-quo leader with no movement is a footer item, not the headline. "Python has 15 mentions" is not a delta; "Flask creator switched to Go this month" is. |
| 24 | |
| 25 | **Output shape:** |
| 26 | |
| 27 | ``` |
| 28 | {the engine's first line, copied verbatim} |
| 29 | |
| 30 | What I learned: |
| 31 | |
| 32 | **[Pick 1]** - [one-line why it is the top recommendation based on the strongest signal in the research] |
| 33 | - Evidence: [specific practitioner testimony, benchmark number, or expert pick - quote the actual signal] |
| 34 | - Best for: [specific use case] |
| 35 | - Voices: [attributable sources returned by this run] |
| 36 | |
| 37 | **[Pick 2]** - [same shape] |
| 38 | |
| 39 | **[Pick 3]** - [same shape] |
| 40 | |
| 41 | Also mentioned (exists, not recommended): [supported mentions with a one-line reason each is a mention rather than a pick] |
| 42 | ``` |
| 43 | |
| 44 | Use this shape for the recommendation body. Add the key patterns, engine footer, and invitation as the root output contract requires. |
| 45 | |
| 46 | **Anti-patterns to avoid:** |
| 47 | - Leading with the most-mentioned option because it appears most frequently ("Python has 15 mentions so it is #1"). That is counting, not judging. |
| 48 | - Treating every mention equally. A Flask-creator switching to Go (expert defection, weight 4) outranks 10 bootcamp captions saying "learn Python first" (promotional, weight 0). The bootcamp captions do not belong in the ranking at all. |
| 49 | - Collapsing "best for what?" into one leaderboard. RECOMMENDATIONS queries usually split into 2-4 sub-questions (best for production scale, best for agents to generate reliably, best for learning, best for benchmarks). Separate them if the research supports it. |
| 50 | - Ignoring anti-signal quotes. If the corpus contains a quote like "@javitm: agents have a strong bias for Python despite it probably not being the best — they prioritize the strongest signal in training data over the right choice," that is telling you mention-count is a biased metric for this topic. Read it; surface it; do not ignore it. |
| 51 | - Stress-test your top pick before emitting. Ask: "Would the research actually defend this claim to a skeptical expert?" If the answer is no, re-rank. |
| 52 | |
| 53 | **BAD RECOMMENDATIONS synthesis (counting):** |
| 54 | > "🏆 Most mentioned: Python (15 mentions), TypeScript (10x), Go (7x), Rust (5x)." |
| 55 | |
| 56 | **Rendering:** use the signal-quality template above; mention counts do not determine ranking. |
| 57 | |
| 58 | **CRITICAL for RECOMMENDATIONS:** |
| 59 | - Each item MUST have a "Voices:" line naming actual sources from the returned research. |
| 60 | - Include X @handles only when the research returned those X posts. Use subreddit names, publications, or other attributable sources when available. |
| 61 | - Do not invent voices or require X access to present recommendations supported by other sources. |
| 62 | - Format naturally - tables work well for wide terminals, stacked cards for narrow |
| 63 | - **CRITICAL whitespace rule:** Never insert more than ONE blank line between any two content blocks. Comparison tables should immediately follow the preceding paragraph with exactly one blank line. Do NOT pad with 3-6 empty lines before tables. |
| 64 |