A+B: patterns in main search + compounding bump
A — Patterns surface in main Worker Search:
/intelligence/chat smart_search fallback now calls /patterns in
parallel with hybrid, returns discovered_pattern + matched count.
search.html doSearch renders a green "MEMORY (N playbooks): ..."
chip above results so every recruiter query shows the meta-index
dimension, not just live-contract cards.
B — Compounding proven and default-k bumped:
Direct compounding test on Chicago Electrician:
- Run 0 (no seeds): Carmen Green not in top-5, boost 0
- After 3 seeds of identical operation: boost +0.250 (capped),
3 citations, lifted to #1. Each seed adds 1 citation. Cap
prevents one worker from dominating future searches.
- Required k=200 (not 25 or 50) — embedding band is narrow
(cosines 0.55-0.67 across all playbooks regardless of geo).
- Bumped defaults on /search, permit_contracts, and smart_search
to playbook_memory_k=200. Brute-force sub-ms at this scale.
This commit is contained in:
@@ -724,6 +724,17 @@ function doSearch(){
|
||||
var h=document.createElement('div');h.style.cssText='color:#8b949e;font-size:12px;margin-bottom:10px';
|
||||
h.textContent=(d.sql_matches?d.sql_matches.toLocaleString()+' workers matched — ':'')+'showing best results ('+(d.duration_ms||0)+'ms)';
|
||||
out.appendChild(h);
|
||||
// Meta-index signal — what past similar fills had in common. Only
|
||||
// renders when memory had at least one relevant playbook.
|
||||
if(d.discovered_pattern && d.pattern_playbooks_matched > 0){
|
||||
var mem=document.createElement('div');
|
||||
mem.style.cssText='background:#0d2818;border:1px solid #2ea04360;border-radius:6px;padding:8px 12px;margin-bottom:10px;font-size:11px;color:#86efac;line-height:1.5';
|
||||
var label=document.createElement('span');label.style.cssText='color:#3fb950;font-weight:600;margin-right:6px';
|
||||
label.textContent='MEMORY ('+d.pattern_playbooks_matched+' playbooks):';
|
||||
mem.appendChild(label);
|
||||
mem.appendChild(document.createTextNode(' '+d.discovered_pattern));
|
||||
out.appendChild(mem);
|
||||
}
|
||||
// Render results based on type
|
||||
var workers=d.sql_results||[];
|
||||
if(workers.length){
|
||||
|
||||
Reference in New Issue
Block a user