@proposit/proposit-core 3.4.1 → 3.4.2
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/extensions/basics/schemata.d.ts.map +1 -1
- package/dist/extensions/basics/schemata.js +1 -1
- package/dist/extensions/basics/schemata.js.map +1 -1
- package/dist/extensions/pipelines/base/finalize-response-v2.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/finalize-response-v2.js +119 -10
- package/dist/extensions/pipelines/base/finalize-response-v2.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/claim-canonicalization.d.ts +1 -1
- package/dist/extensions/pipelines/base/stages/claim-canonicalization.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/claim-canonicalization.js +1 -1
- package/dist/extensions/pipelines/base/stages/conclusion-selection.d.ts +4 -3
- package/dist/extensions/pipelines/base/stages/conclusion-selection.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/conclusion-selection.js +8 -2
- package/dist/extensions/pipelines/base/stages/conclusion-selection.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/relation-extraction.d.ts +1 -1
- package/dist/extensions/pipelines/base/stages/relation-extraction.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/relation-extraction.js +1 -0
- package/dist/extensions/pipelines/base/stages/relation-extraction.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/schemas.d.ts +3 -0
- package/dist/extensions/pipelines/base/stages/schemas.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/schemas.js +18 -0
- package/dist/extensions/pipelines/base/stages/schemas.js.map +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/schemas.d.ts +2 -0
- package/dist/extensions/pipelines/ingestion/scribe/schemas.d.ts.map +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/schemas.js +7 -3
- package/dist/extensions/pipelines/ingestion/scribe/schemas.js.map +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/structure-stage.d.ts +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/structure-stage.d.ts.map +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/structure-stage.js +7 -1
- package/dist/extensions/pipelines/ingestion/scribe/structure-stage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemata.d.ts","sourceRoot":"","sources":["../../../src/extensions/basics/schemata.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAoB3C,eAAO,MAAM,0BAA0B;;;;EAUrC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;EAuBvC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;EAMxC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;IAUhC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,kBAAkB,CAAA;AAEtD,eAAO,MAAM,sBAAsB;;
|
|
1
|
+
{"version":3,"file":"schemata.d.ts","sourceRoot":"","sources":["../../../src/extensions/basics/schemata.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAoB3C,eAAO,MAAM,0BAA0B;;;;EAUrC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;EAuBvC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;EAMxC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;IAUhC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,kBAAkB,CAAA;AAEtD,eAAO,MAAM,sBAAsB;;EAMjC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;EAKlC,CAAA;AAGF,eAAO,MAAM,oBAAoB;;;;;;;;IAG/B,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,uBAAuB;;;;;;;;;;IAGlC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;;;;;IAGpC,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E,eAAO,MAAM,0BAA0B;;;;;;;;;IAGrC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE7E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAI5B,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE3D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;IAG9B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,eAAO,MAAM,mBAAmB,cAI9B,CAAA"}
|
|
@@ -71,7 +71,7 @@ export const BasicsVariableExtension = Type.Object({});
|
|
|
71
71
|
export const BasicsPremiseExtension = Type.Object({
|
|
72
72
|
title: Type.String({
|
|
73
73
|
maxLength: 50,
|
|
74
|
-
description:
|
|
74
|
+
description: 'A short noun phrase naming what this step DOES in the argument — the inferential move, not the proposition. Do not restate the consequent: that claim\'s own title is already shown directly beneath this one. Examples: "Limits of the crowd\'s power", "Residence as tacit consent", "Principle over survival".',
|
|
75
75
|
}),
|
|
76
76
|
});
|
|
77
77
|
export const BasicsArgumentExtension = Type.Object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemata.js","sourceRoot":"","sources":["../../../src/extensions/basics/schemata.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAe,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,EACH,4BAA4B,EAC5B,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3,"file":"finalize-response-v2.d.ts","sourceRoot":"","sources":["../../../../src/extensions/pipelines/base/finalize-response-v2.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAGH,KAAK,6BAA6B,EAQlC,KAAK,mBAAmB,EAE3B,MAAM,qBAAqB,CAAA;AAO5B,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,YAAY,CAAA;AAoEtE,eAAO,MAAM,yBAAyB;;;CAG5B,CAAA;AAoIV;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAA;
|
|
1
|
+
{"version":3,"file":"finalize-response-v2.d.ts","sourceRoot":"","sources":["../../../../src/extensions/pipelines/base/finalize-response-v2.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAGH,KAAK,6BAA6B,EAQlC,KAAK,mBAAmB,EAE3B,MAAM,qBAAqB,CAAA;AAO5B,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,YAAY,CAAA;AAoEtE,eAAO,MAAM,yBAAyB;;;CAG5B,CAAA;AAoIV;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAA;AA8WV,MAAM,MAAM,wBAAwB,GAAG;IACnC,GAAG,EAAE,aAAa,CAAA;IAClB,SAAS,EAAE,mBAAmB,CAAA;IAC9B;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,QAAQ,CAAC,EAAE,6BAA6B,CAAA;CAC3C,CAAA;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,wBAAwB,GAChC,uBAAuB,CAgNzB"}
|
|
@@ -311,6 +311,105 @@ function readMentionIds(record) {
|
|
|
311
311
|
? raw.filter((id) => typeof id === "string")
|
|
312
312
|
: [];
|
|
313
313
|
}
|
|
314
|
+
// **Premise titles read as prose, not formulas.** A premise title is
|
|
315
|
+
// never a serialization of the compiled symbolic `formula`; it is
|
|
316
|
+
// human-facing prose. The machine `formula` field is left untouched.
|
|
317
|
+
//
|
|
318
|
+
// **An authored title is preferred; composition is the fallback.** A
|
|
319
|
+
// premise title names the *inferential move* — what the step does in the
|
|
320
|
+
// argument — which only the model that read the source can say. So the
|
|
321
|
+
// structured output that produces a premise carries a `title`: the
|
|
322
|
+
// relation for a relation-derived premise, the conclusion-selection slot
|
|
323
|
+
// for the conclusion premise. When a usable one is present it is used
|
|
324
|
+
// verbatim (trimmed, and clamped to `AUTHORED_PREMISE_TITLE_CAP`).
|
|
325
|
+
//
|
|
326
|
+
// When it is absent, empty, or whitespace-only, the title is composed
|
|
327
|
+
// from the LLM-authored claim titles that back the premise's variables —
|
|
328
|
+
// mirroring how `buildArgumentTitle` reuses the conclusion claim's
|
|
329
|
+
// title. Composition is lossless but redundant: consumers render the
|
|
330
|
+
// premise's expression tree directly beneath the header, so it restates
|
|
331
|
+
// the rows below it. It is the floor, not the goal — and it means a
|
|
332
|
+
// missing title never fails a run.
|
|
333
|
+
//
|
|
334
|
+
// **The conclusion title is guarded.** The model authors one conclusion
|
|
335
|
+
// title, for `conclusionCandidates[0]`, but the resolved
|
|
336
|
+
// `conclusionMiniId` is the first candidate that is a known normal claim
|
|
337
|
+
// — and may instead come from the relation-graph fallback. Using the
|
|
338
|
+
// authored title when a *different* claim won would label the conclusion
|
|
339
|
+
// premise with a description of some other claim, which is worse than a
|
|
340
|
+
// redundant-but-true composed title. So it is used only when the
|
|
341
|
+
// resolved id is strictly `conclusionCandidates[0]`.
|
|
342
|
+
//
|
|
343
|
+
// **Structure-walk, not string-substitution.** Each relation-derived
|
|
344
|
+
// premise (support / joint-support / derivation) is composed by walking
|
|
345
|
+
// the *relation* that produced it (`antecedents` → `consequent`, both claim
|
|
346
|
+
// miniIds, with the relation `type` giving the connective shape) rather
|
|
347
|
+
// than by parsing the `formula` string. The relation is the semantic
|
|
348
|
+
// origin of the premise and carries the logical structure directly, so
|
|
349
|
+
// composing from it avoids any fragile re-parse of the symbol string.
|
|
350
|
+
// The conclusion premise has no source relation (it is synthesized from
|
|
351
|
+
// a bare symbol), so it is composed by resolving that symbol to its
|
|
352
|
+
// claim title.
|
|
353
|
+
//
|
|
354
|
+
// **No role prefix.** The display layer renders a separate "Conclusion"
|
|
355
|
+
// chip, so a textual `Conclusion:` / `Support:` prefix on the prose is
|
|
356
|
+
// redundant; titles are pure prose.
|
|
357
|
+
//
|
|
358
|
+
// **No truncation of composed titles.** The pre-prose implementation
|
|
359
|
+
// capped titles at 50 chars, which mangled multi-claim premises
|
|
360
|
+
// mid-symbol. Composed prose titles are emitted in full. Only an
|
|
361
|
+
// authored title is clamped, and generously: it is a short phrase by
|
|
362
|
+
// instruction, so the cap is a backstop against a runaway generation,
|
|
363
|
+
// not a second opinion on the model's phrasing.
|
|
364
|
+
/**
|
|
365
|
+
* Length cap for an authored premise title. The prompts ask for under
|
|
366
|
+
* 60 characters; this leaves slack above that so a slightly long but
|
|
367
|
+
* well-formed phrase survives intact.
|
|
368
|
+
*/
|
|
369
|
+
const AUTHORED_PREMISE_TITLE_CAP = 80;
|
|
370
|
+
/**
|
|
371
|
+
* Normalize a model-authored title: trim it, treat empty or
|
|
372
|
+
* whitespace-only as absent, and clamp an over-long one rather than
|
|
373
|
+
* rejecting it. Returns `undefined` when there is nothing usable, which
|
|
374
|
+
* is the caller's cue to compose a title instead.
|
|
375
|
+
*
|
|
376
|
+
* Clamping lives here rather than in the schema because strict
|
|
377
|
+
* structured output ignores JSON-Schema `maxLength`: making the length a
|
|
378
|
+
* validation gate would let one long string discard a completed
|
|
379
|
+
* pipeline run. The value is typed `unknown` because a caller-composed
|
|
380
|
+
* pipeline can populate these slots itself, with no schema check between
|
|
381
|
+
* it and this read.
|
|
382
|
+
*/
|
|
383
|
+
function resolveAuthoredTitle(authored) {
|
|
384
|
+
if (typeof authored !== "string")
|
|
385
|
+
return undefined;
|
|
386
|
+
const trimmed = authored.trim();
|
|
387
|
+
if (trimmed.length === 0)
|
|
388
|
+
return undefined;
|
|
389
|
+
return trimmed.length <= AUTHORED_PREMISE_TITLE_CAP
|
|
390
|
+
? trimmed
|
|
391
|
+
: trimmed.slice(0, AUTHORED_PREMISE_TITLE_CAP - 1) + "…";
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* The conclusion title the model authored, when it is safe to use.
|
|
395
|
+
*
|
|
396
|
+
* The model authors exactly one, describing `conclusionCandidates[0]`.
|
|
397
|
+
* The resolved `conclusionMiniId` is the first candidate that is a known
|
|
398
|
+
* normal claim, or a relation-graph fallback — so it is not necessarily
|
|
399
|
+
* that first candidate. Anything but a strict match falls through to
|
|
400
|
+
* composition, which can be redundant but is never about the wrong
|
|
401
|
+
* claim.
|
|
402
|
+
*/
|
|
403
|
+
function resolveAuthoredConclusionTitle(conclusion) {
|
|
404
|
+
if (conclusion === undefined)
|
|
405
|
+
return undefined;
|
|
406
|
+
const { conclusionMiniId, conclusionCandidates } = conclusion;
|
|
407
|
+
if (conclusionMiniId === null)
|
|
408
|
+
return undefined;
|
|
409
|
+
if (conclusionMiniId !== conclusionCandidates[0])
|
|
410
|
+
return undefined;
|
|
411
|
+
return resolveAuthoredTitle(conclusion.title);
|
|
412
|
+
}
|
|
314
413
|
/**
|
|
315
414
|
* Resolve a claim miniId to its quoted display title, falling back to
|
|
316
415
|
* the claim's assigned variable symbol (quoted) when no title is
|
|
@@ -324,25 +423,34 @@ function quotedClaimTitle(claimMiniId, maps) {
|
|
|
324
423
|
claimMiniId;
|
|
325
424
|
return `"${title}"`;
|
|
326
425
|
}
|
|
327
|
-
function buildPremiseTitle(premise, maps
|
|
426
|
+
function buildPremiseTitle(premise, maps,
|
|
427
|
+
/** Guard-resolved authored conclusion title, if one is usable. */
|
|
428
|
+
authoredConclusionTitle) {
|
|
328
429
|
if (premise.roleHint === "conclusion") {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
//
|
|
430
|
+
if (authoredConclusionTitle !== undefined) {
|
|
431
|
+
return authoredConclusionTitle;
|
|
432
|
+
}
|
|
433
|
+
// No usable authored title: the conclusion premise is a bare
|
|
434
|
+
// symbol, so compose its prose title from the conclusion claim's
|
|
435
|
+
// title (unquoted — the whole title is the proposition, not an
|
|
436
|
+
// embedded clause). Fall back to the symbol when the claim title
|
|
437
|
+
// is unresolvable.
|
|
333
438
|
const symbol = premise.formula.trim();
|
|
334
439
|
const claimMiniId = maps.claimMiniIdBySymbol.get(symbol);
|
|
335
440
|
return ((claimMiniId !== undefined
|
|
336
441
|
? maps.claimTitleByMiniId.get(claimMiniId)
|
|
337
442
|
: undefined) ?? symbol);
|
|
338
443
|
}
|
|
339
|
-
// Relation-derived premise:
|
|
340
|
-
// <consequent>` by walking
|
|
341
|
-
// the
|
|
342
|
-
// target claim title.
|
|
444
|
+
// Relation-derived premise: prefer the title the relation carries;
|
|
445
|
+
// otherwise compose `If <antecedent> then <consequent>` by walking
|
|
446
|
+
// the source relation. The antecedent is the `and`-joined source
|
|
447
|
+
// claim titles; the consequent is the target claim title.
|
|
343
448
|
const relation = premise.sourceRelationId !== null
|
|
344
449
|
? maps.relationById.get(premise.sourceRelationId)
|
|
345
450
|
: undefined;
|
|
451
|
+
const authored = resolveAuthoredTitle(relation?.title);
|
|
452
|
+
if (authored !== undefined)
|
|
453
|
+
return authored;
|
|
346
454
|
if (relation === undefined) {
|
|
347
455
|
// No resolvable source relation — fall back to the raw formula
|
|
348
456
|
// so the title is never empty. (Should not occur in practice:
|
|
@@ -512,11 +620,12 @@ export function finalizeResponseV2(input) {
|
|
|
512
620
|
symbolByClaimMiniId: new Map(variables.map((v) => [v.claimMiniId, v.symbol])),
|
|
513
621
|
relationById: new Map(relations.map((r) => [r.relationId, r])),
|
|
514
622
|
};
|
|
623
|
+
const authoredConclusionTitle = resolveAuthoredConclusionTitle(conclusion);
|
|
515
624
|
const finalPremises = compilation.premises.map((p) => {
|
|
516
625
|
const premise = {
|
|
517
626
|
miniId: p.premiseMiniId,
|
|
518
627
|
formula: p.formula,
|
|
519
|
-
title: buildPremiseTitle(p, titleComposerMaps),
|
|
628
|
+
title: buildPremiseTitle(p, titleComposerMaps, authoredConclusionTitle),
|
|
520
629
|
};
|
|
521
630
|
// The conclusion premise is synthesized from a bare symbol and
|
|
522
631
|
// has no source relation, so it has no evidence quote to anchor.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finalize-response-v2.js","sourceRoot":"","sources":["../../../../src/extensions/pipelines/base/finalize-response-v2.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,iEAAiE;AACjE,qBAAqB;AACrB,EAAE;AACF,iEAAiE;AACjE,wBAAwB;AACxB,EAAE;AACF,8DAA8D;AAC9D,oEAAoE;AACpE,iDAAiD;AACjD,2DAA2D;AAC3D,EAAE;AACF,iEAAiE;AACjE,mEAAmE;AACnE,yDAAyD;AACzD,sEAAsE;AACtE,EAAE;AACF,sEAAsE;AACtE,gEAAgE;AAChE,yEAAyE;AACzE,4EAA4E;AAC5E,kEAAkE;AAClE,yBAAyB;AACzB,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,yEAAyE;AACzE,uEAAuE;AACvE,sEAAsE;AACtE,uEAAuE;AACvE,uDAAuD;AAIvD,OAAO,EACH,SAAS,GAYZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACH,kBAAkB,EAClB,iBAAiB,GAGpB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAA;AAMzE,qEAAqE;AACrE,wEAAwE;AACxE,8DAA8D;AAC9D,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAA6B;IACpE,GAAG,oBAAoB;IACvB,SAAS;CACZ,CAAC,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AS,EAAE,CAAC;YACvB,OAAO,CAAC,aAAa,GAAG,CAAC,MAAM,CAAC,CAAA;QACpC,CAAC;QACD,OAAO,OAAO,CAAA;IAClB,CAAC,CAAC,CAAA;IAEF,MAAM,QAAQ,GAAuB;QACjC,MAAM;QACN,SAAS,EAAE,cAAc;QACzB,QAAQ,EAAE,aAAa;QACvB,uBAAuB,EAAE,WAAW,CAAC,uBAAuB;QAC5D,+DAA+D;QAC/D,iEAAiE;QACjE,iBAAiB,EAAE,WAAW,CAAC,iBAAiB;QAChD,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC,eAAe,EAAE,gBAAgB,CAAC;KACrE,CAAA;IAED,OAAO;QACH,QAAQ,EAAE,QAA0D;QACpE,WAAW,EAAE,IAAI;QACjB,GAAG,YAAY;QAEf,kBAAkB;KACM,CAAA;AAChC,CAAC"}
|
|
1
|
+
{"version":3,"file":"finalize-response-v2.js","sourceRoot":"","sources":["../../../../src/extensions/pipelines/base/finalize-response-v2.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,iEAAiE;AACjE,qBAAqB;AACrB,EAAE;AACF,iEAAiE;AACjE,wBAAwB;AACxB,EAAE;AACF,8DAA8D;AAC9D,oEAAoE;AACpE,iDAAiD;AACjD,2DAA2D;AAC3D,EAAE;AACF,iEAAiE;AACjE,mEAAmE;AACnE,yDAAyD;AACzD,sEAAsE;AACtE,EAAE;AACF,sEAAsE;AACtE,gEAAgE;AAChE,yEAAyE;AACzE,4EAA4E;AAC5E,kEAAkE;AAClE,yBAAyB;AACzB,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,yEAAyE;AACzE,uEAAuE;AACvE,sEAAsE;AACtE,uEAAuE;AACvE,uDAAuD;AAIvD,OAAO,EACH,SAAS,GAYZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACH,kBAAkB,EAClB,iBAAiB,GAGpB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC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0D;QACpE,WAAW,EAAE,IAAI;QACjB,GAAG,YAAY;QAEf,kBAAkB;KACM,CAAA;AAChC,CAAC"}
|
|
@@ -4,7 +4,7 @@ import type { TStage } from "../../../../lib/pipelines/types.js";
|
|
|
4
4
|
import type { TIngestionExtension, TLlmStageOptionsOverride } from "../types.js";
|
|
5
5
|
export declare const CLAIM_CANONICALIZATION_MODEL = "gpt-5.5";
|
|
6
6
|
export declare const CLAIM_CANONICALIZATION_REASONING: "minimal" | "low" | "medium" | "high";
|
|
7
|
-
export declare const CLAIM_CANONICALIZATION_SYSTEM_PROMPT = "You merge raw claim mentions into a single canonical set of claims for an argument-ingestion pipeline.\n\nYou are given:\n- the raw input text (for full context)\n- the segmented breakdown of the text\n- the list of every claim mention extracted from those segments\n- optionally, the detected citation sources + axiom indicators\n\nYour output has two parts:\n\n1. `canonicalClaims` \u2014 an array of canonical claims, one entry per distinct proposition the author makes. Two mentions that assert the same proposition (even when phrased differently across the text) merge into a single canonical claim. Each canonical claim carries:\n - `miniId` \u2014 assign in canonicalization order: c1, c2, c3, ...\n - `mentionIds` \u2014 list of the mention ids that resolved to this claim\n - `type` \u2014 one of \"normal\", \"citation\", or \"axiomatic\" (see below)\n - `suggestedSymbol` \u2014 a short PascalCase-or-snake_case identifier summarizing the claim (e.g. \"Rain_Wets_Ground\", \"NASA_Temp_Rise\", \"Socrates_Mortal\"). Use letters, digits, and underscores only; start with a letter or underscore; keep under 32 characters; aim for under 20. AVOID single letters and generic names like \"Claim1\".\n - the extension fields described in your output schema (title, body, url, axiom \u2014 whichever apply to the claim's `type`)\n\n2. `mentionToClaim` \u2014 an array of `{ \"mentionId\": \"...\", \"claimMiniId\": \"...\" }` entries, one per input mention. Every input mentionId must appear in exactly one entry; the mapping is total. (We surface this as a list rather than a map because the response schema does not allow arbitrary string keys.)\n\n## Claim types\n\n- `\"normal\"` \u2014 a primary proposition the argument argues for or from.\n- `\"citation\"` \u2014 a claim whose content is \"the cited source asserts X\". Use this type when one of the citation sources covers the same span(s) as the mention. Populate `url` (the URL if present), `title` (a short human-readable label), and `citationTypeGuess` (your best guess at the source's IEEE reference type, chosen from the allowed values in your output schema \u2014 e.g. \"JournalArticle\", \"NewspaperArticle\", \"Book\", \"Website\", \"GovernmentPublication\", \u2026 \u2014 or \"unknown\" when no IEEE type fits or you cannot tell).\n- `\"axiomatic\"` \u2014 a claim invoked as self-evident truth. Use this type when an axiom indicator (e.g. \"by definition\") covers or precedes the mention. Populate `axiom` with the gist of the self-evident proposition.\n\nWhen a mention is the antecedent of \"according to X, P\", split it into two claims: a citation-typed claim for the source itself + a normal-typed claim for the proposition. The two are connected via a relation in a later stage, not here
|
|
7
|
+
export declare const CLAIM_CANONICALIZATION_SYSTEM_PROMPT = "You merge raw claim mentions into a single canonical set of claims for an argument-ingestion pipeline.\n\nYou are given:\n- the raw input text (for full context)\n- the segmented breakdown of the text\n- the list of every claim mention extracted from those segments\n- optionally, the detected citation sources + axiom indicators\n\nYour output has two parts:\n\n1. `canonicalClaims` \u2014 an array of canonical claims, one entry per distinct proposition the author makes. Two mentions that assert the same proposition (even when phrased differently across the text) merge into a single canonical claim. Each canonical claim carries:\n - `miniId` \u2014 assign in canonicalization order: c1, c2, c3, ...\n - `mentionIds` \u2014 list of the mention ids that resolved to this claim\n - `type` \u2014 one of \"normal\", \"citation\", or \"axiomatic\" (see below)\n - `suggestedSymbol` \u2014 a short PascalCase-or-snake_case identifier summarizing the claim (e.g. \"Rain_Wets_Ground\", \"NASA_Temp_Rise\", \"Socrates_Mortal\"). Use letters, digits, and underscores only; start with a letter or underscore; keep under 32 characters; aim for under 20. AVOID single letters and generic names like \"Claim1\".\n - the extension fields described in your output schema (title, body, url, axiom \u2014 whichever apply to the claim's `type`)\n\n2. `mentionToClaim` \u2014 an array of `{ \"mentionId\": \"...\", \"claimMiniId\": \"...\" }` entries, one per input mention. Every input mentionId must appear in exactly one entry; the mapping is total. (We surface this as a list rather than a map because the response schema does not allow arbitrary string keys.)\n\n## Claim types\n\n- `\"normal\"` \u2014 a primary proposition the argument argues for or from.\n- `\"citation\"` \u2014 a claim whose content is \"the cited source asserts X\". Use this type when one of the citation sources covers the same span(s) as the mention. Populate `url` (the URL if present), `title` (a short human-readable label), and `citationTypeGuess` (your best guess at the source's IEEE reference type, chosen from the allowed values in your output schema \u2014 e.g. \"JournalArticle\", \"NewspaperArticle\", \"Book\", \"Website\", \"GovernmentPublication\", \u2026 \u2014 or \"unknown\" when no IEEE type fits or you cannot tell).\n- `\"axiomatic\"` \u2014 a claim invoked as self-evident truth. Use this type when an axiom indicator (e.g. \"by definition\") covers or precedes the mention. Populate `axiom` with the gist of the self-evident proposition.\n\nWhen a mention is the antecedent of \"according to X, P\", split it into two claims: a citation-typed claim for the source itself + a normal-typed claim for the proposition. The two are connected via a relation in a later stage, not here. BOTH claims list that mention in their `mentionIds` \u2014 the split is one span giving rise to two claims, and a claim with no `mentionIds` loses its link back to the source text entirely. (`mentionToClaim` is unaffected: it still maps that mention to exactly one claim \u2014 the normal-typed one.)\n\n## Style\n\n- Claim titles + bodies are written in third-person, present-tense, active voice.\n- State the proposition itself \u2014 never prepend an author-attributive reporting frame such as \"The author claims that\u2026\", \"The author argues\u2026\", \"The writer believes\u2026\", or \"According to the author\u2026\". Write *what is asserted*, not *that someone asserts it*: emit \"Rain wets the ground,\" not \"The author claims that rain wets the ground.\" This applies to the `title`, `body`, and `axiom` prose for the argument's own (normal / axiomatic) claims.\n- Titles are short (\u2264 50 characters); bodies fill in the detail.\n- For citation claims, the title summarizes what the source asserts (e.g. \"NASA reports temperature rise\"); the URL goes in `url`. This source attribution is intentional and is NOT removed by the rule above \u2014 that rule targets only author-attribution of the argument's own claims, never the cited-source framing of a citation claim.\n- For axiomatic claims, the `axiom` field captures the self-evident proposition as a bare declarative statement (e.g. \"A bachelor is an unmarried man by definition.\").\n\nOutput ONLY the schema-shaped object. No prose.";
|
|
8
8
|
/**
|
|
9
9
|
* Build the per-extension canonicalization output schema: an object of
|
|
10
10
|
* `canonicalClaims` (each carrying the canonicalizer fields merged with
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim-canonicalization.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-canonicalization.ts"],"names":[],"mappings":"AAgBA,OAAa,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAMH,KAAK,4BAA4B,EACpC,MAAM,cAAc,CAAA;AAGrB,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,KAAK,EACR,mBAAmB,EAEnB,wBAAwB,EAC3B,MAAM,aAAa,CAAA;AAEpB,eAAO,MAAM,4BAA4B,YAAY,CAAA;AACrD,eAAO,MAAM,gCAAgC,EACvC,SAAS,GACT,KAAK,GACL,QAAQ,GACR,MAAiB,CAAA;AAEvB,eAAO,MAAM,oCAAoC,
|
|
1
|
+
{"version":3,"file":"claim-canonicalization.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-canonicalization.ts"],"names":[],"mappings":"AAgBA,OAAa,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAMH,KAAK,4BAA4B,EACpC,MAAM,cAAc,CAAA;AAGrB,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,KAAK,EACR,mBAAmB,EAEnB,wBAAwB,EAC3B,MAAM,aAAa,CAAA;AAEpB,eAAO,MAAM,4BAA4B,YAAY,CAAA;AACrD,eAAO,MAAM,gCAAgC,EACvC,SAAS,GACT,KAAK,GACL,QAAQ,GACR,MAAiB,CAAA;AAEvB,eAAO,MAAM,oCAAoC,ssIAmCD,CAAA;AAEhD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,mBAAmB,GAAG,OAAO,CAc3E;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CA6CpE;AA+CD,mEAAmE;AACnE,eAAO,MAAM,qCAAqC,EAAE,wBAGnD,CAAA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gCAAgC,CAC5C,SAAS,EAAE,mBAAmB,EAC9B,OAAO,CAAC,EAAE,wBAAwB,GACnC,MAAM,CAAC,4BAA4B,CAAC,CAgBtC"}
|
|
@@ -44,7 +44,7 @@ Your output has two parts:
|
|
|
44
44
|
- \`"citation"\` — a claim whose content is "the cited source asserts X". Use this type when one of the citation sources covers the same span(s) as the mention. Populate \`url\` (the URL if present), \`title\` (a short human-readable label), and \`citationTypeGuess\` (your best guess at the source's IEEE reference type, chosen from the allowed values in your output schema — e.g. "JournalArticle", "NewspaperArticle", "Book", "Website", "GovernmentPublication", … — or "unknown" when no IEEE type fits or you cannot tell).
|
|
45
45
|
- \`"axiomatic"\` — a claim invoked as self-evident truth. Use this type when an axiom indicator (e.g. "by definition") covers or precedes the mention. Populate \`axiom\` with the gist of the self-evident proposition.
|
|
46
46
|
|
|
47
|
-
When a mention is the antecedent of "according to X, P", split it into two claims: a citation-typed claim for the source itself + a normal-typed claim for the proposition. The two are connected via a relation in a later stage, not here.
|
|
47
|
+
When a mention is the antecedent of "according to X, P", split it into two claims: a citation-typed claim for the source itself + a normal-typed claim for the proposition. The two are connected via a relation in a later stage, not here. BOTH claims list that mention in their \`mentionIds\` — the split is one span giving rise to two claims, and a claim with no \`mentionIds\` loses its link back to the source text entirely. (\`mentionToClaim\` is unaffected: it still maps that mention to exactly one claim — the normal-typed one.)
|
|
48
48
|
|
|
49
49
|
## Style
|
|
50
50
|
|
|
@@ -4,7 +4,7 @@ import type { TLlmStageOptionsOverride } from "../types.js";
|
|
|
4
4
|
export declare const CONCLUSION_SELECTION_MODEL = "gpt-5.5";
|
|
5
5
|
export declare const CONCLUSION_SELECTION_REASONING: "minimal" | "low" | "medium" | "high";
|
|
6
6
|
export declare const CONCLUSION_SELECTION_NO_CONCLUSION_FAILURE_CODE = "NO_SINGLE_CONCLUSION";
|
|
7
|
-
export declare const CONCLUSION_SELECTION_SYSTEM_PROMPT = "You select the conclusion claim of an argument from the canonical claim set and the relation graph.\n\nYou receive:\n- the per-claim type map (normal / citation / axiomatic)\n- the inference relation graph from `relation-extraction` (each relation's antecedents jointly imply its consequent)\n\nEmit:\n- `conclusionCandidates` \u2014 an array of canonical claim miniIds ordered by DECREASING confidence: the first element is your single best pick for the conclusion. Return exactly one when the conclusion is clear; return several (best first) only when multiple claims are genuinely plausible conclusions. Return an empty array ONLY when the input has no argument structure at all.\n- `rationale` \u2014 a one-sentence explanation of your ordering and best pick (or, for an empty array, why no claim is a conclusion)\n\n## Selection rules\n\n1. The conclusion is the claim that no other claim is meant to support but is itself the terminus of one or more support edges. In a clean argument it's the \"therefore X\" claim \u2014 list it first.\n2. When several distinct claims are each terminal and plausibly the point, include them all, ordered best first. Do not abstain just because more than one is plausible.\n3. Citation-typed and axiomatic-typed claims are never conclusions \u2014 never include them as candidates; they are always sources of support.\n4. If no claim is supported by any relation (a single-statement input), return an empty array; there is no argument to select a conclusion from.\n\nAlways name your best candidate first rather than abstaining. Only an input with no argument structure yields an empty array.";
|
|
7
|
+
export declare const CONCLUSION_SELECTION_SYSTEM_PROMPT = "You select the conclusion claim of an argument from the canonical claim set and the relation graph.\n\nYou receive:\n- the per-claim type map (normal / citation / axiomatic)\n- the inference relation graph from `relation-extraction` (each relation's antecedents jointly imply its consequent)\n\nEmit:\n- `conclusionCandidates` \u2014 an array of canonical claim miniIds ordered by DECREASING confidence: the first element is your single best pick for the conclusion. Return exactly one when the conclusion is clear; return several (best first) only when multiple claims are genuinely plausible conclusions. Return an empty array ONLY when the input has no argument structure at all.\n- `rationale` \u2014 a one-sentence explanation of your ordering and best pick (or, for an empty array, why no claim is a conclusion)\n- `title` \u2014 for your FIRST candidate only: a short noun phrase naming what this step DOES in the argument \u2014 the inferential move, not the proposition. Do not restate the consequent: that claim's own title is already shown directly beneath this one. Aim for under 60 characters. Examples: \"Limits of the crowd's power\", \"Residence as tacit consent\", \"Principle over survival\". Return an empty string when `conclusionCandidates` is empty.\n\n## Selection rules\n\n1. The conclusion is the claim that no other claim is meant to support but is itself the terminus of one or more support edges. In a clean argument it's the \"therefore X\" claim \u2014 list it first.\n2. When several distinct claims are each terminal and plausibly the point, include them all, ordered best first. Do not abstain just because more than one is plausible.\n3. Citation-typed and axiomatic-typed claims are never conclusions \u2014 never include them as candidates; they are always sources of support.\n4. If no claim is supported by any relation (a single-statement input), return an empty array; there is no argument to select a conclusion from.\n\nAlways name your best candidate first rather than abstaining. Only an input with no argument structure yields an empty array.";
|
|
8
8
|
/** Internal default knobs for the conclusion-selection stage. */
|
|
9
9
|
export declare const CONCLUSION_SELECTION_STAGE_DEFAULTS: TLlmStageOptionsOverride;
|
|
10
10
|
/**
|
|
@@ -35,8 +35,9 @@ export declare function selectFallbackConclusion(classifications: readonly TClai
|
|
|
35
35
|
* `NO_SINGLE_CONCLUSION` `ProcessingFailure` (severity `warning`) that
|
|
36
36
|
* drives finalize's `{ argument: null, failureText: "No single
|
|
37
37
|
* conclusion could be selected." }`. The resolved id flows downstream to
|
|
38
|
-
* `formula-compilation`; the model's raw ranked list
|
|
39
|
-
*
|
|
38
|
+
* `formula-compilation`; the model's raw ranked list — and the title it
|
|
39
|
+
* authored for the first candidate — are preserved on the output, the
|
|
40
|
+
* latter usable only when the resolved id is that same candidate.
|
|
40
41
|
*/
|
|
41
42
|
export declare function createConclusionSelectionStage(options?: TLlmStageOptionsOverride): TStage<TConclusionSelectionOutput>;
|
|
42
43
|
/** Backward-compatible default-options stage. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conclusion-selection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/conclusion-selection.ts"],"names":[],"mappings":"AAgBA,OAAO,EAIH,KAAK,6BAA6B,EAGlC,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EAE1B,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAE3D,eAAO,MAAM,0BAA0B,YAAY,CAAA;AACnD,eAAO,MAAM,8BAA8B,EACrC,SAAS,GACT,KAAK,GACL,QAAQ,GACR,MAAiB,CAAA;AAEvB,eAAO,MAAM,+CAA+C,yBAClC,CAAA;AAE1B,eAAO,MAAM,kCAAkC,
|
|
1
|
+
{"version":3,"file":"conclusion-selection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/conclusion-selection.ts"],"names":[],"mappings":"AAgBA,OAAO,EAIH,KAAK,6BAA6B,EAGlC,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EAE1B,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAE3D,eAAO,MAAM,0BAA0B,YAAY,CAAA;AACnD,eAAO,MAAM,8BAA8B,EACrC,SAAS,GACT,KAAK,GACL,QAAQ,GACR,MAAiB,CAAA;AAEvB,eAAO,MAAM,+CAA+C,yBAClC,CAAA;AAE1B,eAAO,MAAM,kCAAkC,4iEAkB+E,CAAA;AA8B9H,iEAAiE;AACjE,eAAO,MAAM,mCAAmC,EAAE,wBAGjD,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,wBAAwB,CACpC,eAAe,EAAE,SAAS,6BAA6B,EAAE,EACzD,SAAS,EAAE,SAAS,kBAAkB,EAAE,GACzC,MAAM,GAAG,IAAI,CA4Cf;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,8BAA8B,CAC1C,OAAO,CAAC,EAAE,wBAAwB,GACnC,MAAM,CAAC,0BAA0B,CAAC,CAyEpC;AAED,iDAAiD;AACjD,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CACpC,CAAA"}
|
|
@@ -27,6 +27,7 @@ You receive:
|
|
|
27
27
|
Emit:
|
|
28
28
|
- \`conclusionCandidates\` — an array of canonical claim miniIds ordered by DECREASING confidence: the first element is your single best pick for the conclusion. Return exactly one when the conclusion is clear; return several (best first) only when multiple claims are genuinely plausible conclusions. Return an empty array ONLY when the input has no argument structure at all.
|
|
29
29
|
- \`rationale\` — a one-sentence explanation of your ordering and best pick (or, for an empty array, why no claim is a conclusion)
|
|
30
|
+
- \`title\` — for your FIRST candidate only: a short noun phrase naming what this step DOES in the argument — the inferential move, not the proposition. Do not restate the consequent: that claim's own title is already shown directly beneath this one. Aim for under 60 characters. Examples: "Limits of the crowd's power", "Residence as tacit consent", "Principle over survival". Return an empty string when \`conclusionCandidates\` is empty.
|
|
30
31
|
|
|
31
32
|
## Selection rules
|
|
32
33
|
|
|
@@ -121,8 +122,9 @@ export function selectFallbackConclusion(classifications, relations) {
|
|
|
121
122
|
* `NO_SINGLE_CONCLUSION` `ProcessingFailure` (severity `warning`) that
|
|
122
123
|
* drives finalize's `{ argument: null, failureText: "No single
|
|
123
124
|
* conclusion could be selected." }`. The resolved id flows downstream to
|
|
124
|
-
* `formula-compilation`; the model's raw ranked list
|
|
125
|
-
*
|
|
125
|
+
* `formula-compilation`; the model's raw ranked list — and the title it
|
|
126
|
+
* authored for the first candidate — are preserved on the output, the
|
|
127
|
+
* latter usable only when the resolved id is that same candidate.
|
|
126
128
|
*/
|
|
127
129
|
export function createConclusionSelectionStage(options) {
|
|
128
130
|
const innerStage = llmStage({
|
|
@@ -171,6 +173,10 @@ export function createConclusionSelectionStage(options) {
|
|
|
171
173
|
return {
|
|
172
174
|
conclusionMiniId,
|
|
173
175
|
conclusionCandidates: llmOutput.conclusionCandidates,
|
|
176
|
+
// Carried verbatim: it belongs to the model's first
|
|
177
|
+
// candidate, and only a reader that knows which
|
|
178
|
+
// candidate won can tell whether it applies.
|
|
179
|
+
title: llmOutput.title,
|
|
174
180
|
rationale: usedGraphFallback
|
|
175
181
|
? `Auto-selected ${conclusionMiniId} from the relation graph (the model named no usable candidate).`
|
|
176
182
|
: llmOutput.rationale,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conclusion-selection.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/conclusion-selection.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,sEAAsE;AACtE,wEAAwE;AACxE,iEAAiE;AACjE,qEAAqE;AACrE,yEAAyE;AACzE,sEAAsE;AACtE,uDAAuD;AACvD,wEAAwE;AACxE,gEAAgE;AAChE,wEAAwE;AACxE,2CAA2C;AAC3C,EAAE;AACF,0EAA0E;AAE1E,OAAO,EACH,SAAS,EACT,kCAAkC,EAClC,+BAA+B,GAOlC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAIrE,MAAM,CAAC,MAAM,0BAA0B,GAAG,SAAS,CAAA;AACnD,MAAM,CAAC,MAAM,8BAA8B,GAI5B,QAAQ,CAAA;AAEvB,MAAM,CAAC,MAAM,+CAA+C,GACxD,sBAAsB,CAAA;AAE1B,MAAM,CAAC,MAAM,kCAAkC,GAAG
|
|
1
|
+
{"version":3,"file":"conclusion-selection.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/conclusion-selection.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,sEAAsE;AACtE,wEAAwE;AACxE,iEAAiE;AACjE,qEAAqE;AACrE,yEAAyE;AACzE,sEAAsE;AACtE,uDAAuD;AACvD,wEAAwE;AACxE,gEAAgE;AAChE,wEAAwE;AACxE,2CAA2C;AAC3C,EAAE;AACF,0EAA0E;AAE1E,OAAO,EACH,SAAS,EACT,kCAAkC,EAClC,+BAA+B,GAOlC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAIrE,MAAM,CAAC,MAAM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,CAAC,eAAe,EAAE,SAAS,CAAC,CAAA;YACxD,MAAM,iBAAiB,GACnB,SAAS,KAAK,IAAI,IAAI,gBAAgB,KAAK,IAAI,CAAA;YAEnD,IAAI,gBAAgB,KAAK,IAAI,EAAE,CAAC;gBAC5B,GAAG,CAAC,UAAU,CAAC;oBACX,IAAI,EAAE,+CAA+C;oBACrD,OAAO,EACH,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC;wBAC1B,CAAC,CAAC,SAAS,CAAC,SAAS;wBACrB,CAAC,CAAC,yCAAyC;oBACnD,QAAQ,EAAE,SAAS;oBACnB,OAAO,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,SAAS,EAAE;iBAC9C,CAAC,CAAA;YACN,CAAC;YAED,OAAO;gBACH,gBAAgB;gBAChB,oBAAoB,EAAE,SAAS,CAAC,oBAAoB;gBACpD,oDAAoD;gBACpD,gDAAgD;gBAChD,6CAA6C;gBAC7C,KAAK,EAAE,SAAS,CAAC,KAAK;gBACtB,SAAS,EAAE,iBAAiB;oBACxB,CAAC,CAAC,iBAAiB,gBAAgB,iEAAiE;oBACpG,CAAC,CAAC,SAAS,CAAC,SAAS;aAC5B,CAAA;QACL,CAAC;KACJ,CAAA;AACL,CAAC;AAED,iDAAiD;AACjD,MAAM,CAAC,MAAM,wBAAwB,GACjC,8BAA8B,EAAE,CAAA"}
|
|
@@ -3,7 +3,7 @@ import type { TStage } from "../../../../lib/pipelines/types.js";
|
|
|
3
3
|
import type { TLlmStageOptionsOverride } from "../types.js";
|
|
4
4
|
export declare const RELATION_EXTRACTION_MODEL = "gpt-5.5";
|
|
5
5
|
export declare const RELATION_EXTRACTION_REASONING: "minimal" | "low" | "medium" | "high";
|
|
6
|
-
export declare const RELATION_EXTRACTION_SYSTEM_PROMPT = "You identify inference relationships between canonical claims in an argument.\n\nGiven the canonical claim set, the per-claim type map, and the original segments, emit one entry per inference. Return an object with a single key `relations` whose value is the array.\n\nAn `inference` relation says: the claims in `antecedents`, taken together, imply the claim in `consequent`. Use a SINGLE antecedent for an ordinary \"P, therefore Q\" step; use MULTIPLE antecedents when the author commits to a step that requires ALL of them to hold together (e.g. major premise + minor premise \u2192 conclusion).\n\nFor each relation emit:\n- a fresh `relationId` (r1, r2, ...)\n- `type` \u2014 always `\"inference\"`\n- `antecedents` \u2014 an array of the supporting claim miniIds (one or more) whose conjunction implies the consequent\n- `consequent` \u2014 the implied claim's miniId\n- `evidence.segmentIds` \u2014 the segments that ground the relation (often a single segment containing a \"therefore\", \"so\", \"because\")\n- `evidence.quote` \u2014 a short verbatim quote from the input that justifies the relation\n\n`antecedents` and `consequent` are CLAIM miniIds \u2014 NOT source citations. A citation-typed or axiomatic-typed claim may appear in `antecedents` (the pipeline routes it to where it belongs); do not special-case it. A citation/axiomatic claim is never a `consequent`.\n\n## Conservatism rules\n\n- Do not invent relations. If the author doesn't actually argue from the antecedents to the consequent, don't emit a relation.\n- Do not double-count. If several claims share the same backing, emit one relation per consequent, not a redundant pairing.\n- The conclusion of the argument is identified in a separate stage; do NOT emit a special \"conclusion\" relation here. Just emit the inference edges you see; the conclusion stage selects from your output.\n- Avoid attack/rebuttal relations entirely for now \u2014 the pipeline does not yet handle them.\n\nIf there are no relations to emit, return `{ \"relations\": [] }`.";
|
|
6
|
+
export declare const RELATION_EXTRACTION_SYSTEM_PROMPT = "You identify inference relationships between canonical claims in an argument.\n\nGiven the canonical claim set, the per-claim type map, and the original segments, emit one entry per inference. Return an object with a single key `relations` whose value is the array.\n\nAn `inference` relation says: the claims in `antecedents`, taken together, imply the claim in `consequent`. Use a SINGLE antecedent for an ordinary \"P, therefore Q\" step; use MULTIPLE antecedents when the author commits to a step that requires ALL of them to hold together (e.g. major premise + minor premise \u2192 conclusion).\n\nFor each relation emit:\n- a fresh `relationId` (r1, r2, ...)\n- `type` \u2014 always `\"inference\"`\n- `antecedents` \u2014 an array of the supporting claim miniIds (one or more) whose conjunction implies the consequent\n- `consequent` \u2014 the implied claim's miniId\n- `title` \u2014 a short noun phrase naming what this step DOES in the argument \u2014 the inferential move, not the proposition. Do not restate the consequent: that claim's own title is already shown directly beneath this one. Aim for under 60 characters. Examples: \"Limits of the crowd's power\", \"Residence as tacit consent\", \"Principle over survival\".\n- `evidence.segmentIds` \u2014 the segments that ground the relation (often a single segment containing a \"therefore\", \"so\", \"because\")\n- `evidence.quote` \u2014 a short verbatim quote from the input that justifies the relation\n\n`antecedents` and `consequent` are CLAIM miniIds \u2014 NOT source citations. A citation-typed or axiomatic-typed claim may appear in `antecedents` (the pipeline routes it to where it belongs); do not special-case it. A citation/axiomatic claim is never a `consequent`.\n\n## Conservatism rules\n\n- Do not invent relations. If the author doesn't actually argue from the antecedents to the consequent, don't emit a relation.\n- Do not double-count. If several claims share the same backing, emit one relation per consequent, not a redundant pairing.\n- The conclusion of the argument is identified in a separate stage; do NOT emit a special \"conclusion\" relation here. Just emit the inference edges you see; the conclusion stage selects from your output.\n- Avoid attack/rebuttal relations entirely for now \u2014 the pipeline does not yet handle them.\n\nIf there are no relations to emit, return `{ \"relations\": [] }`.";
|
|
7
7
|
/** Internal default knobs for the relation-extraction stage. */
|
|
8
8
|
export declare const RELATION_EXTRACTION_STAGE_DEFAULTS: TLlmStageOptionsOverride;
|
|
9
9
|
/** Build the relation-extraction stage with optional caller overrides. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relation-extraction.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/relation-extraction.ts"],"names":[],"mappings":"AAUA,OAAO,EAMH,KAAK,yBAAyB,EAEjC,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAE3D,eAAO,MAAM,yBAAyB,YAAY,CAAA;AAClD,eAAO,MAAM,6BAA6B,EACpC,SAAS,GACT,KAAK,GACL,QAAQ,GACR,MAAe,CAAA;AAErB,eAAO,MAAM,iCAAiC,
|
|
1
|
+
{"version":3,"file":"relation-extraction.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/relation-extraction.ts"],"names":[],"mappings":"AAUA,OAAO,EAMH,KAAK,yBAAyB,EAEjC,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAE3D,eAAO,MAAM,yBAAyB,YAAY,CAAA;AAClD,eAAO,MAAM,6BAA6B,EACpC,SAAS,GACT,KAAK,GACL,QAAQ,GACR,MAAe,CAAA;AAErB,eAAO,MAAM,iCAAiC,q2EAwBqB,CAAA;AAuCnE,gEAAgE;AAChE,eAAO,MAAM,kCAAkC,EAAE,wBAGhD,CAAA;AAED,0EAA0E;AAC1E,wBAAgB,6BAA6B,CACzC,OAAO,CAAC,EAAE,wBAAwB,GACnC,MAAM,CAAC,yBAAyB,CAAC,CAgBnC;AAED,iDAAiD;AACjD,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,yBAAyB,CACnC,CAAA"}
|
|
@@ -22,6 +22,7 @@ For each relation emit:
|
|
|
22
22
|
- \`type\` — always \`"inference"\`
|
|
23
23
|
- \`antecedents\` — an array of the supporting claim miniIds (one or more) whose conjunction implies the consequent
|
|
24
24
|
- \`consequent\` — the implied claim's miniId
|
|
25
|
+
- \`title\` — a short noun phrase naming what this step DOES in the argument — the inferential move, not the proposition. Do not restate the consequent: that claim's own title is already shown directly beneath this one. Aim for under 60 characters. Examples: "Limits of the crowd's power", "Residence as tacit consent", "Principle over survival".
|
|
25
26
|
- \`evidence.segmentIds\` — the segments that ground the relation (often a single segment containing a "therefore", "so", "because")
|
|
26
27
|
- \`evidence.quote\` — a short verbatim quote from the input that justifies the relation
|
|
27
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relation-extraction.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/relation-extraction.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,wEAAwE;AACxE,mEAAmE;AACnE,sBAAsB;AACtB,EAAE;AACF,qEAAqE;AACrE,oEAAoE;AACpE,uEAAuE;AACvE,mBAAmB;AAEnB,OAAO,EACH,SAAS,EACT,8BAA8B,GAMjC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAIrE,MAAM,CAAC,MAAM,yBAAyB,GAAG,SAAS,CAAA;AAClD,MAAM,CAAC,MAAM,6BAA6B,GAI3B,MAAM,CAAA;AAErB,MAAM,CAAC,MAAM,iCAAiC,GAAG
|
|
1
|
+
{"version":3,"file":"relation-extraction.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/relation-extraction.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,wEAAwE;AACxE,mEAAmE;AACnE,sBAAsB;AACtB,EAAE;AACF,qEAAqE;AACrE,oEAAoE;AACpE,uEAAuE;AACvE,mBAAmB;AAEnB,OAAO,EACH,SAAS,EACT,8BAA8B,GAMjC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAIrE,MAAM,CAAC,MAAM,yBAAyB,GAAG,SAAS,CAAA;AAClD,MAAM,CAAC,MAAM,6BAA6B,GAI3B,MAAM,CAAA;AAErB,MAAM,CAAC,MAAM,iCAAiC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;mEAwBkB,CAAA;AAEnE,SAAS,WAAW,CAAC,GAAkB;IACnC,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CACjB,SAAS,CAAC,qBAAqB,CAClC,CAAA;IACD,MAAM,YAAY,GAAG,GAAG,CAAC,GAAG,CACxB,SAAS,CAAC,uBAAuB,CACpC,CAAA;IACD,MAAM,YAAY,GAAG,IAAI,GAAG,EAAyC,CAAA;IACrE,KAAK,MAAM,KAAK,IAAI,YA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AAM,CAAC,MAAM,kCAAkC,GAA6B;IACxE,KAAK,EAAE,yBAAyB;IAChC,eAAe,EAAE,6BAA6B;CACjD,CAAA;AAED,0EAA0E;AAC1E,MAAM,UAAU,6BAA6B,CACzC,OAAkC;IAElC,OAAO,QAAQ,CAA4B;QACvC,EAAE,EAAE,SAAS,CAAC,kBAAkB;QAChC,SAAS,EAAE;YACP,SAAS,CAAC,qBAAqB;YAC/B,SAAS,CAAC,uBAAuB;YACjC,SAAS,CAAC,YAAY;SACzB;QACD,YAAY,EAAE,8BAA8B;QAC5C,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,yBAAyB;QAClD,eAAe,EAAE,OAAO,EAAE,eAAe;QACzC,eAAe,EACX,OAAO,EAAE,eAAe,IAAI,6BAA6B;QAC7D,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,WAAW;KACd,CAAC,CAAA;AACN,CAAC;AAED,iDAAiD;AACjD,MAAM,CAAC,MAAM,uBAAuB,GAChC,6BAA6B,EAAE,CAAA"}
|
|
@@ -110,6 +110,7 @@ export declare const RelationExtractionOutputSchema: Type.TObject<{
|
|
|
110
110
|
type: Type.TLiteral<"inference">;
|
|
111
111
|
antecedents: Type.TArray<Type.TString>;
|
|
112
112
|
consequent: Type.TString;
|
|
113
|
+
title: Type.TString;
|
|
113
114
|
evidence: Type.TObject<{
|
|
114
115
|
segmentIds: Type.TArray<Type.TString>;
|
|
115
116
|
quote: Type.TString;
|
|
@@ -121,12 +122,14 @@ export type TInferenceRelation = TRelationExtractionOutput["relations"][number];
|
|
|
121
122
|
export declare const ConclusionSelectionLlmOutputSchema: Type.TObject<{
|
|
122
123
|
conclusionCandidates: Type.TArray<Type.TString>;
|
|
123
124
|
rationale: Type.TString;
|
|
125
|
+
title: Type.TString;
|
|
124
126
|
}>;
|
|
125
127
|
export type TConclusionSelectionLlmOutput = Static<typeof ConclusionSelectionLlmOutputSchema>;
|
|
126
128
|
export declare const ConclusionSelectionOutputSchema: Type.TObject<{
|
|
127
129
|
conclusionMiniId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
128
130
|
conclusionCandidates: Type.TArray<Type.TString>;
|
|
129
131
|
rationale: Type.TString;
|
|
132
|
+
title: Type.TString;
|
|
130
133
|
}>;
|
|
131
134
|
export type TConclusionSelectionOutput = Static<typeof ConclusionSelectionOutputSchema>;
|
|
132
135
|
export declare const FormulaPremiseRoleHintSchema: Type.TUnion<[Type.TLiteral<"freeform">, Type.TLiteral<"conclusion">]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/schemas.ts"],"names":[],"mappings":"AAOA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAiB3C,eAAO,MAAM,UAAU;;;EASrB,CAAA;AACF,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA;AAiB7C,eAAO,MAAM,wBAAwB;;;;;;;;;EAQnC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAA;AACzE,MAAM,MAAM,QAAQ,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AAI9D,eAAO,MAAM,kCAAkC;;;;;;;;;;EAS7C,CAAA;AACF,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAC9C,OAAO,kCAAkC,CAC5C,CAAA;AACD,MAAM,MAAM,aAAa,GAAG,6BAA6B,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AAI7E,eAAO,MAAM,mCAAmC;;;;;;;;;;;EAU9C,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,MAAM,CAC/C,OAAO,mCAAmC,CAC7C,CAAA;AACD,MAAM,MAAM,eAAe,GAAG,8BAA8B,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAA;AAI/E,eAAO,MAAM,mCAAm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AACD,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AAO5E,eAAO,MAAM,2BAA2B;;;;GAMvC,CAAA;AACD,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAI/E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CAqBZ,CAAA"}
|
|
@@ -158,6 +158,13 @@ export const RelationExtractionOutputSchema = Type.Object({
|
|
|
158
158
|
type: Type.Literal("inference"),
|
|
159
159
|
antecedents: Type.Array(Type.String()),
|
|
160
160
|
consequent: Type.String(),
|
|
161
|
+
// A short noun phrase naming the inferential move, used as
|
|
162
|
+
// the title of the premise this relation compiles into.
|
|
163
|
+
// Plain `Type.String()` on purpose: strict structured output
|
|
164
|
+
// ignores `maxLength`, so the length cap is applied where the
|
|
165
|
+
// title is read rather than being a validation gate that
|
|
166
|
+
// could discard an otherwise complete run.
|
|
167
|
+
title: Type.String(),
|
|
161
168
|
evidence: Type.Object({
|
|
162
169
|
segmentIds: Type.Array(Type.String()),
|
|
163
170
|
quote: Type.String(),
|
|
@@ -172,16 +179,27 @@ export const RelationExtractionOutputSchema = Type.Object({
|
|
|
172
179
|
export const ConclusionSelectionLlmOutputSchema = Type.Object({
|
|
173
180
|
conclusionCandidates: Type.Array(Type.String()),
|
|
174
181
|
rationale: Type.String(),
|
|
182
|
+
// A short noun phrase naming the concluding move, authored for the
|
|
183
|
+
// FIRST candidate only. Whether it is usable depends on which
|
|
184
|
+
// candidate resolution actually picks — see the output schema below.
|
|
185
|
+
title: Type.String(),
|
|
175
186
|
});
|
|
176
187
|
// The stage's downstream-visible output: `conclusionMiniId` is the
|
|
177
188
|
// resolved single pick (the first viable candidate, a relation-graph
|
|
178
189
|
// fallback when the model returns none, or null when no claim
|
|
179
190
|
// qualifies), while `conclusionCandidates` carries the model's full
|
|
180
191
|
// ranked list for consumers that want to offer alternates.
|
|
192
|
+
// `title` is the model's authored title for `conclusionCandidates[0]`,
|
|
193
|
+
// carried verbatim (empty when none was authored). It describes that
|
|
194
|
+
// candidate and no other, so a reader must only use it when
|
|
195
|
+
// `conclusionMiniId` is that same candidate — the check
|
|
196
|
+
// `finalizeResponseV2` performs before preferring it over a composed
|
|
197
|
+
// title.
|
|
181
198
|
export const ConclusionSelectionOutputSchema = Type.Object({
|
|
182
199
|
conclusionMiniId: Type.Union([Type.String(), Type.Null()]),
|
|
183
200
|
conclusionCandidates: Type.Array(Type.String()),
|
|
184
201
|
rationale: Type.String(),
|
|
202
|
+
title: Type.String(),
|
|
185
203
|
});
|
|
186
204
|
// -- Stage 11: formula-compilation --
|
|
187
205
|
export const FormulaPremiseRoleHintSchema = Type.Union([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/schemas.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,uEAAuE;AACvE,2EAA2E;AAC3E,sEAAsE;AACtE,sEAAsE;AAEtE,OAAO,IAAI,EAAE,EAAe,MAAM,SAAS,CAAA;AAE3C,kEAAkE;AAClE,2DAA2D;AAC3D,mEAAmE;AACnE,gEAAgE;AAChE,kEAAkE;AAClE,qEAAqE;AACrE,8DAA8D;AAC9D,gEAAgE;AAChE,mEAAmE;AACnE,kEAAkE;AAClE,gEAAgE;AAChE,sEAAsE;AACtE,6FAA6F;AAC7F,6DAA6D;AAC7D,kDAAkD;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC;QACf,WAAW,EACP,iFAAiF;KACxF,CAAC;IACF,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC;QACb,WAAW,EACP,+EAA+E;KACtF,CAAC;CACL,CAAC,CAAA;AAGF,8BAA8B;AAE9B,oEAAoE;AACpE,sEAAsE;AACtE,sEAAsE;AACtE,oEAA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,IAAI,CAAC,MAAM,EAAE;CAC7B,CAAC,CACL,CAAA;AAMD,qCAAqC;AAErC,MAAM,CAAC,MAAM,8BAA8B,GAAG,IAAI,CAAC,MAAM,CAAC;IACtD,SAAS,EAAE,IAAI,CAAC,KAAK,CACjB,IAAI,CAAC,MAAM,CAAC;QACR,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;QACzB,6DAA6D;QAC7D,0DAA0D;QAC1D,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;QAC/B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACtC,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;QACzB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC;YAClB,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACrC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;SACvB,CAAC;KACL,CAAC,CACL;CACJ,CAAC,CAAA;AAMF,uCAAuC;AAEvC,gEAAgE;AAChE,uEAAuE;AACvE,wEAAwE;AACxE,gDAAgD;AAChD,MAAM,CAAC,MAAM,kCAAkC,GAAG,IAAI,CAAC,MAAM,CAAC;IAC1D,oBAAoB,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IAC/C,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/schemas.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,uEAAuE;AACvE,2EAA2E;AAC3E,sEAAsE;AACtE,sEAAsE;AAEtE,OAAO,IAAI,EAAE,EAAe,MAAM,SAAS,CAAA;AAE3C,kEAAkE;AAClE,2DAA2D;AAC3D,mEAAmE;AACnE,gEAAgE;AAChE,kEAAkE;AAClE,qEAAqE;AACrE,8DAA8D;AAC9D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4B;IACtD,kBAAkB,EAAE,qBAAqB;IACzC,kBAAkB,EAAE,qBAAqB;IACzC,mBAAmB,EAAE,sBAAsB;IAC3C,kBAAkB,EAAE,qBAAqB;IACzC,iBAAiB,EAAE,oBAAoB;IACvC,gEAAgE;IAChE,6DAA6D;IAC7D,kEAAkE;IAClE,sEAAsE;IACtE,kEAAkE;IAClE,aAAa;IACb,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,kBAAkB;CAC7B,CAAA"}
|
|
@@ -29,12 +29,14 @@ export declare const ScribeStructureOutputSchema: Type.TObject<{
|
|
|
29
29
|
type: Type.TLiteral<"inference">;
|
|
30
30
|
antecedents: Type.TArray<Type.TString>;
|
|
31
31
|
consequent: Type.TString;
|
|
32
|
+
title: Type.TString;
|
|
32
33
|
evidence: Type.TObject<{
|
|
33
34
|
segmentIds: Type.TArray<Type.TString>;
|
|
34
35
|
quote: Type.TString;
|
|
35
36
|
}>;
|
|
36
37
|
}>>;
|
|
37
38
|
conclusionCandidates: Type.TArray<Type.TString>;
|
|
39
|
+
conclusionTitle: Type.TString;
|
|
38
40
|
rationale: Type.TString;
|
|
39
41
|
}>;
|
|
40
42
|
export type TScribeStructureOutput = Static<typeof ScribeStructureOutputSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/ingestion/scribe/schemas.ts"],"names":[],"mappings":"AAeA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAA;AAMzD,OAAO,KAAK,EACR,4BAA4B,EAC5B,6BAA6B,EAChC,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAE9D;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,4BAA4B,GAC3D,6BAA6B,CAAA;AAEjC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACpC,SAAS,EAAE,mBAAmB,GAC/B,OAAO,CAWT;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/ingestion/scribe/schemas.ts"],"names":[],"mappings":"AAeA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAA;AAMzD,OAAO,KAAK,EACR,4BAA4B,EAC5B,6BAA6B,EAChC,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAE9D;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,4BAA4B,GAC3D,6BAA6B,CAAA;AAEjC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACpC,SAAS,EAAE,mBAAmB,GAC/B,OAAO,CAWT;AASD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAQvC,CAAA;AACD,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAA"}
|
|
@@ -37,12 +37,16 @@ export function buildExtractOutputSchema(extension) {
|
|
|
37
37
|
}, { additionalProperties: false });
|
|
38
38
|
}
|
|
39
39
|
// `structure` emits the relation graph (same per-relation shape as
|
|
40
|
-
// scholar's `relation-extraction
|
|
41
|
-
// rationale (same fields
|
|
42
|
-
//
|
|
40
|
+
// scholar's `relation-extraction`, each relation carrying its own
|
|
41
|
+
// `title`) plus the conclusion candidates + rationale (same fields
|
|
42
|
+
// scholar's conclusion-selection LLM emits, before the deterministic
|
|
43
|
+
// resolution the adapter reproduces). `conclusionTitle` is the
|
|
44
|
+
// conclusion counterpart of a relation's `title`; it is named
|
|
45
|
+
// distinctly because both live on one object here.
|
|
43
46
|
export const ScribeStructureOutputSchema = Type.Object({
|
|
44
47
|
relations: RelationExtractionOutputSchema.properties.relations,
|
|
45
48
|
conclusionCandidates: Type.Array(Type.String()),
|
|
49
|
+
conclusionTitle: Type.String(),
|
|
46
50
|
rationale: Type.String(),
|
|
47
51
|
}, { additionalProperties: false });
|
|
48
52
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/ingestion/scribe/schemas.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,EAAE;AACF,uEAAuE;AACvE,mEAAmE;AACnE,kEAAkE;AAClE,mEAAmE;AACnE,qCAAqC;AACrC,qEAAqE;AACrE,+DAA+D;AAC/D,wDAAwD;AACxD,EAAE;AACF,kEAAkE;AAClE,qEAAqE;AACrE,6DAA6D;AAE7D,OAAO,IAAI,EAAE,EAA6B,MAAM,SAAS,CAAA;AACzD,OAAO,EACH,kCAAkC,EAClC,8BAA8B,EAC9B,mBAAmB,GACtB,MAAM,4BAA4B,CAAA;AAenC;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,wBAAwB,CACpC,SAA8B;IAE9B,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,SAAS,CAErD,CAAA;IACD,OAAO,IAAI,CAAC,MAAM,CACd;QACI,GAAG,gBAAgB,CAAC,UAAU;QAC9B,QAAQ,EAAE,kCAAkC,CAAC,UAAU,CAAC,QAAQ;KACnE,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAClC,CAAA;AACL,CAAC;AAED,mEAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/ingestion/scribe/schemas.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,EAAE;AACF,uEAAuE;AACvE,mEAAmE;AACnE,kEAAkE;AAClE,mEAAmE;AACnE,qCAAqC;AACrC,qEAAqE;AACrE,+DAA+D;AAC/D,wDAAwD;AACxD,EAAE;AACF,kEAAkE;AAClE,qEAAqE;AACrE,6DAA6D;AAE7D,OAAO,IAAI,EAAE,EAA6B,MAAM,SAAS,CAAA;AACzD,OAAO,EACH,kCAAkC,EAClC,8BAA8B,EAC9B,mBAAmB,GACtB,MAAM,4BAA4B,CAAA;AAenC;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,wBAAwB,CACpC,SAA8B;IAE9B,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,SAAS,CAErD,CAAA;IACD,OAAO,IAAI,CAAC,MAAM,CACd;QACI,GAAG,gBAAgB,CAAC,UAAU;QAC9B,QAAQ,EAAE,kCAAkC,CAAC,UAAU,CAAC,QAAQ;KACnE,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAClC,CAAA;AACL,CAAC;AAED,mEAAmE;AACnE,kEAAkE;AAClE,mEAAmE;AACnE,qEAAqE;AACrE,+DAA+D;AAC/D,8DAA8D;AAC9D,mDAAmD;AACnD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC,MAAM,CAClD;IACI,SAAS,EAAE,8BAA8B,CAAC,UAAU,CAAC,SAAS;IAC9D,oBAAoB,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IAC/C,eAAe,EAAE,IAAI,CAAC,MAAM,EAAE;IAC9B,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;CAC3B,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAClC,CAAA"}
|
|
@@ -5,7 +5,7 @@ import { type TScribeStructureOutput } from "./schemas.js";
|
|
|
5
5
|
export declare const STRUCTURE_MODEL = "gpt-5.4-mini";
|
|
6
6
|
/** Internal default knobs for scribe's `structure` stage. */
|
|
7
7
|
export declare const STRUCTURE_STAGE_DEFAULTS: TLlmStageOptionsOverride;
|
|
8
|
-
export declare const STRUCTURE_SYSTEM_PROMPT = "You read a canonical claim set \u2014 each claim's id, type, and content fields (title/body) \u2014 and emit the argument's structure.\n\nEmit:\n- `relations` \u2014 the inference edges between claims. Each relation: a stable `relationId` (r1, r2, ...), a `type` of \"inference\", an `antecedents` array of the claim miniIds whose conjunction implies the consequent (one or more; citation- or axiomatic-typed claims may appear here, but never as the consequent), a single `consequent` claim miniId, and an `evidence` object, which is always exactly { segmentIds: [], quote: \"\" } \u2014 you are shown the claims, not the text they came from, so you have nothing to quote.\n- `conclusionCandidates` \u2014 the claim miniIds that could be the argument's conclusion, ordered by DECREASING confidence (best first). The conclusion is the claim other claims support but that supports nothing further. Never list a citation- or axiomatic-typed claim. Return an empty array only when there is no argument structure.\n- `rationale` \u2014 one sentence explaining your best pick (or why none qualifies).\n\nOutput ONLY the schema-shaped object. No prose.";
|
|
8
|
+
export declare const STRUCTURE_SYSTEM_PROMPT = "You read a canonical claim set \u2014 each claim's id, type, and content fields (title/body) \u2014 and emit the argument's structure.\n\nEmit:\n- `relations` \u2014 the inference edges between claims. Each relation: a stable `relationId` (r1, r2, ...), a `type` of \"inference\", an `antecedents` array of the claim miniIds whose conjunction implies the consequent (one or more; citation- or axiomatic-typed claims may appear here, but never as the consequent), a single `consequent` claim miniId, a `title`, and an `evidence` object, which is always exactly { segmentIds: [], quote: \"\" } \u2014 you are shown the claims, not the text they came from, so you have nothing to quote.\n- each relation's `title` \u2014 a short noun phrase naming what that step DOES in the argument \u2014 the inferential move, not the proposition. Do not restate the consequent: that claim's own title is already shown directly beneath this one. Aim for under 60 characters. Examples: \"Limits of the crowd's power\", \"Residence as tacit consent\", \"Principle over survival\".\n- `conclusionCandidates` \u2014 the claim miniIds that could be the argument's conclusion, ordered by DECREASING confidence (best first). The conclusion is the claim other claims support but that supports nothing further. Never list a citation- or axiomatic-typed claim. Return an empty array only when there is no argument structure.\n- `conclusionTitle` \u2014 for your FIRST candidate only: a short noun phrase naming what the concluding step DOES in the argument \u2014 the inferential move, not the proposition. Do not restate the consequent: that claim's own title is already shown directly beneath this one. Aim for under 60 characters. Return an empty string when `conclusionCandidates` is empty.\n- `rationale` \u2014 one sentence explaining your best pick (or why none qualifies).\n\nOutput ONLY the schema-shaped object. No prose.";
|
|
9
9
|
/**
|
|
10
10
|
* Build scribe's `structure` LLM stage. Depends on the canonicalization
|
|
11
11
|
* + classification slots (populated by `extract`'s adapters) so the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structure-stage.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/ingestion/scribe/structure-stage.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,EAQH,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EACjC,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,EAEH,KAAK,sBAAsB,EAC9B,MAAM,cAAc,CAAA;AAErB,eAAO,MAAM,eAAe,iBAAiB,CAAA;AAE7C,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,EAAE,wBAEtC,CAAA;AAED,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"structure-stage.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/ingestion/scribe/structure-stage.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,EAQH,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EACjC,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,EAEH,KAAK,sBAAsB,EAC9B,MAAM,cAAc,CAAA;AAErB,eAAO,MAAM,eAAe,iBAAiB,CAAA;AAE7C,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,EAAE,wBAEtC,CAAA;AAED,eAAO,MAAM,uBAAuB,q3DASY,CAAA;AAwChD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAChC,OAAO,CAAC,EAAE,wBAAwB,GACnC,MAAM,CAAC,sBAAsB,CAAC,CAchC;AAED;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,yBAAyB,CAUtE,CAAA;AAEN;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,0BAA0B,CA4DzE,CAAA"}
|
|
@@ -23,8 +23,10 @@ export const STRUCTURE_STAGE_DEFAULTS = {
|
|
|
23
23
|
export const STRUCTURE_SYSTEM_PROMPT = `You read a canonical claim set — each claim's id, type, and content fields (title/body) — and emit the argument's structure.
|
|
24
24
|
|
|
25
25
|
Emit:
|
|
26
|
-
- \`relations\` — the inference edges between claims. Each relation: a stable \`relationId\` (r1, r2, ...), a \`type\` of "inference", an \`antecedents\` array of the claim miniIds whose conjunction implies the consequent (one or more; citation- or axiomatic-typed claims may appear here, but never as the consequent), a single \`consequent\` claim miniId, and an \`evidence\` object, which is always exactly { segmentIds: [], quote: "" } — you are shown the claims, not the text they came from, so you have nothing to quote.
|
|
26
|
+
- \`relations\` — the inference edges between claims. Each relation: a stable \`relationId\` (r1, r2, ...), a \`type\` of "inference", an \`antecedents\` array of the claim miniIds whose conjunction implies the consequent (one or more; citation- or axiomatic-typed claims may appear here, but never as the consequent), a single \`consequent\` claim miniId, a \`title\`, and an \`evidence\` object, which is always exactly { segmentIds: [], quote: "" } — you are shown the claims, not the text they came from, so you have nothing to quote.
|
|
27
|
+
- each relation's \`title\` — a short noun phrase naming what that step DOES in the argument — the inferential move, not the proposition. Do not restate the consequent: that claim's own title is already shown directly beneath this one. Aim for under 60 characters. Examples: "Limits of the crowd's power", "Residence as tacit consent", "Principle over survival".
|
|
27
28
|
- \`conclusionCandidates\` — the claim miniIds that could be the argument's conclusion, ordered by DECREASING confidence (best first). The conclusion is the claim other claims support but that supports nothing further. Never list a citation- or axiomatic-typed claim. Return an empty array only when there is no argument structure.
|
|
29
|
+
- \`conclusionTitle\` — for your FIRST candidate only: a short noun phrase naming what the concluding step DOES in the argument — the inferential move, not the proposition. Do not restate the consequent: that claim's own title is already shown directly beneath this one. Aim for under 60 characters. Return an empty string when \`conclusionCandidates\` is empty.
|
|
28
30
|
- \`rationale\` — one sentence explaining your best pick (or why none qualifies).
|
|
29
31
|
|
|
30
32
|
Output ONLY the schema-shaped object. No prose.`;
|
|
@@ -133,6 +135,10 @@ export const structureConclusionAdapterStage = deterministicStage({
|
|
|
133
135
|
return {
|
|
134
136
|
conclusionMiniId,
|
|
135
137
|
conclusionCandidates: candidates,
|
|
138
|
+
// Carried verbatim: it belongs to the model's first
|
|
139
|
+
// candidate, and only a reader that knows which
|
|
140
|
+
// candidate won can tell whether it applies.
|
|
141
|
+
title: structure?.conclusionTitle ?? "",
|
|
136
142
|
rationale: usedGraphFallback
|
|
137
143
|
? `Auto-selected ${conclusionMiniId} from the relation graph (the model named no usable candidate).`
|
|
138
144
|
: rationale,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structure-stage.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/ingestion/scribe/structure-stage.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,oEAAoE;AACpE,2DAA2D;AAC3D,iEAAiE;AACjE,sDAAsD;AACtD,gEAAgE;AAChE,EAAE;AACF,mEAAmE;AACnE,kEAAkE;AAClE,qEAAqE;AACrE,sEAAsE;AACtE,sEAAsE;AACtE,sCAAsC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AAE/E,OAAO,EACH,SAAS,EACT,8BAA8B,EAC9B,+BAA+B,EAC/B,wBAAwB,EACxB,+CAA+C,GAKlD,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EACH,2BAA2B,GAE9B,MAAM,cAAc,CAAA;AAErB,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAA;AAE7C,6DAA6D;AAC7D,MAAM,CAAC,MAAM,wBAAwB,GAA6B;IAC9D,KAAK,EAAE,eAAe;CACzB,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG
|
|
1
|
+
{"version":3,"file":"structure-stage.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/ingestion/scribe/structure-stage.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,oEAAoE;AACpE,2DAA2D;AAC3D,iEAAiE;AACjE,sDAAsD;AACtD,gEAAgE;AAChE,EAAE;AACF,mEAAmE;AACnE,kEAAkE;AAClE,qEAAqE;AACrE,sEAAsE;AACtE,sEAAsE;AACtE,sCAAsC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AAE/E,OAAO,EACH,SAAS,EACT,8BAA8B,EAC9B,+BAA+B,EAC/B,wBAAwB,EACxB,+CAA+C,GAKlD,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EACH,2BAA2B,GAE9B,MAAM,cAAc,CAAA;AAErB,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAA;AAE7C,6DAA6D;AAC7D,MAAM,CAAC,MAAM,wBAAwB,GAA6B;IAC9D,KAAK,EAAE,eAAe;CACzB,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;gDASS,CAAA;AAEhD,SAAS,oBAAoB,CAAC,GAAkB;IAI5C,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CACjB,SAAS,CAAC,qBAAqB,CAClC,CAAA;IACD,MAAM,YAAY,GAAG,GAAG,CAAC,GAAG,CACxB,SAAS,CAAC,uBAAuB,CACpC,CAAA;IACD,MAAM,YAAY,GAAG,IAAI,GAAG,EAAkB,CAAA;IAC9C,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE,eAAe,IAAI,EAAE,EAAE,CAAC;QACtD,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;IAC9C,CAAC;IACD,oEAAoE;IACpE,qEAAqE;IACrE,sEAAsE;IACtE,kEAA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