Smarter chatbot + support matching by meaning (Marty 2026-11-16): the hub's semantic match (free core2 embeddings)
Chatbot (chatbot.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). Support desk: while a signed-in member types a new ticket, POST /api/my/support/suggest shows the closest help answers (KB entries only, incl. ones written from past tickets, never another member's ticket; BM25 when the hub is down); Send is never blocked. help-screen.js?v=20261116sg. Tests: qa/netkb-semantic.test.mjs (route/suggest decisions, fail soft, shared-file parity; run.sh kb) and qa/support-suggest.mjs (run.sh member). netkb.js is the same file in all eight network sites. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -19,6 +19,7 @@
|
||||
.hf textarea.field{font:500 14px var(--body, Manrope, system-ui);line-height:1.5;resize:vertical}
|
||||
.acts{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
|
||||
.hmsg{font-size:12.5px;color:var(--muted)} .hmsg.bad{color:var(--bad)}
|
||||
.hsg{border:1px solid var(--line);border-radius:12px;padding:10px 14px;font-size:13.5px}.hsg-h{margin:0 0 6px}.hsg-h span,.hsg-s{color:var(--muted);font-weight:500}.hsg details{margin:4px 0}.hsg summary{cursor:pointer;font-weight:700}.hsg-b{white-space:pre-wrap;word-wrap:break-word;line-height:1.5;margin:6px 0 8px}
|
||||
.sup-msg{border:1px solid var(--line);border-radius:8px;padding:12px 14px;background:var(--panel-2)}
|
||||
.sup-msg.admin{border-color:var(--accent-dim, #7CB2FF);background:var(--accent-soft, #E1ECFC)}
|
||||
.sup-msg .sm-head{font-size:12px;color:var(--muted);margin:0 0 6px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
|
||||
@@ -31,6 +32,6 @@
|
||||
<div class="body" id="helpBody"><div class="panel"><span class="muted">loading</span></div></div>
|
||||
</div>
|
||||
<script src="/assets/cr-shell.js?v=20261115hub"></script>
|
||||
<script src="/assets/help-screen.js?v=20261016a"></script>
|
||||
<script src="/assets/help-screen.js?v=20261116sg"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user