@konneal/engine 0.2.114 → 0.2.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ask-53QRX3KB.js → ask-RLMNWTHA.js} +2 -2
- package/dist/{chunk-4RQ4X7SA.js → chunk-A6YQYN3O.js} +1 -1
- package/dist/{chunk-VSZBGAEE.js → chunk-MUAY4BXY.js} +1 -1
- package/dist/{chunk-4J3CRJH3.js → chunk-ZD7SNNGW.js} +1 -1
- package/dist/{search-5HDTEMZD.js → search-AH4A4SFJ.js} +2 -2
- package/dist/worker_public/src/index.js +4 -4
- package/package.json +1 -1
- package/workers/worker_public/src/pipeline.ts +5 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleAsk
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MUAY4BXY.js";
|
|
4
4
|
import "./chunk-32UDKBA2.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-A6YQYN3O.js";
|
|
6
6
|
import "./chunk-TH5XGPD5.js";
|
|
7
7
|
import "./chunk-DJ65EF5G.js";
|
|
8
8
|
import "./chunk-A3QHHUN5.js";
|
|
@@ -23474,7 +23474,7 @@ async function retrieve(env, query, opts = {}) {
|
|
|
23474
23474
|
const filter = filters ? toVectorizeFilter(filters) : null;
|
|
23475
23475
|
const folded = retrievalQuery(query, opts.prev);
|
|
23476
23476
|
let rq = opts.queryOverride?.trim() || u?.standalone_query?.trim() || folded;
|
|
23477
|
-
if (u?.process_intent) rq += processExpansion();
|
|
23477
|
+
if (u?.process_intent && !opts.sealScope) rq += processExpansion();
|
|
23478
23478
|
const vectorP = rq === folded && opts.optimisticVec ? Promise.resolve(opts.optimisticVec) : rq === folded && opts.warmEmbed ? opts.warmEmbed.then((w) => w ?? embed(portModelRunner(env), MODELS.embed, rq)) : embed(portModelRunner(env), MODELS.embed, rq);
|
|
23479
23479
|
const lexicalP = lexicalPrefilter(env, opts.lexicalBoost ? `${rq} ${opts.lexicalBoost}` : rq).catch(() => []);
|
|
23480
23480
|
const [vector, lexicalHits0] = await Promise.all([vectorP, lexicalP]);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
handleMemories,
|
|
5
5
|
scoreFaithfulness,
|
|
6
6
|
scoreJudge
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-MUAY4BXY.js";
|
|
8
8
|
import {
|
|
9
9
|
TOOLS_REGISTRY,
|
|
10
10
|
bindModelNode,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "../../chunk-32UDKBA2.js";
|
|
13
13
|
import {
|
|
14
14
|
handleSearch
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-ZD7SNNGW.js";
|
|
16
16
|
import {
|
|
17
17
|
buildMessages,
|
|
18
18
|
citations,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
sessionFrom,
|
|
35
35
|
telemetry,
|
|
36
36
|
understandQuery
|
|
37
|
-
} from "../../chunk-
|
|
37
|
+
} from "../../chunk-A6YQYN3O.js";
|
|
38
38
|
import {
|
|
39
39
|
cfBlobs,
|
|
40
40
|
embed,
|
|
@@ -1000,7 +1000,7 @@ async function callToolOnce(env, ctx, _req, tier, key, name, args, t0) {
|
|
|
1000
1000
|
const r = await runTool({ ...env, DB: env.DB }, { name, args }, "mcp");
|
|
1001
1001
|
payload = r ? { tool: r.name, query: r.query, result: r.output } : { error: { message: `tool ${name} returned nothing for the given arguments` } };
|
|
1002
1002
|
} else {
|
|
1003
|
-
const res = name === "ask" ? await (await import("../../ask-
|
|
1003
|
+
const res = name === "ask" ? await (await import("../../ask-RLMNWTHA.js")).handleAsk(env, ctx, inner, tier, key) : await (await import("../../search-AH4A4SFJ.js")).handleSearch(env, ctx, inner, tier, key);
|
|
1004
1004
|
payload = await res.json().catch(() => ({ error: { message: "tool transport failed", status: res.status } }));
|
|
1005
1005
|
}
|
|
1006
1006
|
telemetry(env, ctx, tier, `mcp:${name}`, null, !payload?.error, JSON.stringify(payload).length, await sha256Hex(`${name}:${JSON.stringify(args ?? {})}`), void 0, void 0, { durationMs: Date.now() - t0 });
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"playwright": "^1.62.1",
|
|
28
28
|
"yaml": "^2.9.1"
|
|
29
29
|
},
|
|
30
|
-
"version": "0.2.
|
|
30
|
+
"version": "0.2.115",
|
|
31
31
|
"description": "The Konneal engine: the publisher-agnostic build pipeline and API plane for standards intelligence (retrieval, answer contract, verdicts, evaluation).",
|
|
32
32
|
"license": "BSD-3-Clause",
|
|
33
33
|
"type": "module",
|
|
@@ -109,7 +109,11 @@ export async function retrieve(
|
|
|
109
109
|
const filter = filters ? toVectorizeFilter(filters) : null;
|
|
110
110
|
const folded = retrievalQuery(query, opts.prev);
|
|
111
111
|
let rq = opts.queryOverride?.trim() || u?.standalone_query?.trim() || folded;
|
|
112
|
-
|
|
112
|
+
// the process expansion widens an UNSCOPED question toward the
|
|
113
|
+
// certification corpus; under a declared seal it poisons the query
|
|
114
|
+
// against the sealed family instead (the pool empties, the refusal
|
|
115
|
+
// follows) — the chip's context note already scopes the ANSWER
|
|
116
|
+
if (u?.process_intent && !opts.sealScope) rq += processExpansion();
|
|
113
117
|
// Dense embed + full-corpus BM25 prefilter in parallel (G-ETSI-1 /
|
|
114
118
|
// arXiv:2604.09868 §II-B5). Lexical must scan the whole corpus — the
|
|
115
119
|
// old keywordRank only re-ordered dense hits and could not recover
|