2 Commits

Author SHA1 Message Date
martbost be7cbc03cf Smarter chatbot matching by meaning (Marty 2026-11-16): the hub's semantic match (free core2 embeddings)
chatcore.js + netkb.js (route): a hand-off pattern still answers first; then the hub's POST /v1/kb/match answers with this
site's entry when it is sure, keeps or overrules the CANNED regex hit, and picks the AI prompt context, this site's own entries
first. 1.5 s timeout, then the hub is skipped for 30 s and the old pattern + BM25 path answers (NETKB_MATCH=0 = off).
netkb.js also has suggest() for the support desk (used by InstantAdPay and LinkSpin). Same chatcore.js in the six rebuilt
sites, same netkb.js in all eight. Test: node qa/netkb-semantic.test.mjs (decisions, fail soft, shared-file parity).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 05:48:35 -06:00
martbost 0aaea45a5c Site assistant (Marty 2026-11-15): chat widget in the Downline Banners ultraviolet + lime look on every page, CANNED + FACTS from this repo's code and the BannerLine contract ($5 spot, 300 views in 30 days, 30% sponsor + 55% as $0.275 x 10 + 10% company + 5% momentum fund, fund buys after 4 h quiet, max 12 a day, 7-day gift cooldown, look-around tour, buy for someone, refuel spots, 468x60 up to 150 KB), retrieval over the shared network knowledge base on the hub (netkb.js, home entries boosted, another site named = its answer), reasoning off, account problems hand off to network support. Chat admin routes use a constant-time ADMIN_TOKEN check. chatbot.test 165, smoke 131/131
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:07:32 -06:00