@proposit/proposit-core 5.0.0 → 5.2.0
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/README.md +3 -2
- package/dist/cli/builder-repl.js +1 -1
- package/dist/cli/builder-repl.js.map +1 -1
- package/dist/extensions/citations/ieee/citation-claim.d.ts +117 -56
- package/dist/extensions/citations/ieee/citation-claim.d.ts.map +1 -1
- package/dist/extensions/citations/ieee/formatting.d.ts +1 -1
- package/dist/extensions/citations/ieee/formatting.d.ts.map +1 -1
- package/dist/extensions/citations/ieee/formatting.js.map +1 -1
- package/dist/extensions/citations/ieee/origin-document.d.ts +117 -56
- package/dist/extensions/citations/ieee/origin-document.d.ts.map +1 -1
- package/dist/extensions/citations/ieee/references.d.ts +364 -169
- package/dist/extensions/citations/ieee/references.d.ts.map +1 -1
- package/dist/extensions/citations/ieee/references.js +42 -4
- package/dist/extensions/citations/ieee/references.js.map +1 -1
- package/dist/extensions/citations/ieee/relaxed.d.ts +351 -168
- package/dist/extensions/citations/ieee/relaxed.d.ts.map +1 -1
- package/dist/extensions/citations/ieee/segment-builder.d.ts.map +1 -1
- package/dist/extensions/citations/ieee/segment-builder.js +11 -7
- package/dist/extensions/citations/ieee/segment-builder.js.map +1 -1
- package/dist/extensions/citations/ieee/segment-templates.d.ts +2 -0
- package/dist/extensions/citations/ieee/segment-templates.d.ts.map +1 -1
- package/dist/extensions/citations/ieee/segment-templates.js +121 -11
- package/dist/extensions/citations/ieee/segment-templates.js.map +1 -1
- package/dist/extensions/openai/openai-retrieval.d.ts.map +1 -1
- package/dist/extensions/openai/openai-retrieval.js +4 -2
- package/dist/extensions/openai/openai-retrieval.js.map +1 -1
- package/dist/extensions/openai/openai-tools.d.ts +8 -1
- package/dist/extensions/openai/openai-tools.d.ts.map +1 -1
- package/dist/extensions/openai/openai-tools.js +10 -0
- package/dist/extensions/openai/openai-tools.js.map +1 -1
- package/dist/extensions/openai/provider.d.ts.map +1 -1
- package/dist/extensions/openai/provider.js +5 -3
- package/dist/extensions/openai/provider.js.map +1 -1
- package/dist/extensions/openai/types.d.ts +2 -1
- package/dist/extensions/openai/types.d.ts.map +1 -1
- package/dist/extensions/openai/types.js.map +1 -1
- package/dist/extensions/pipelines/base/finalize-response-v2.d.ts +9 -6
- package/dist/extensions/pipelines/base/finalize-response-v2.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/finalize-response-v2.js +101 -20
- package/dist/extensions/pipelines/base/finalize-response-v2.js.map +1 -1
- package/dist/extensions/pipelines/base/index.d.ts +1 -1
- package/dist/extensions/pipelines/base/index.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/index.js.map +1 -1
- package/dist/extensions/pipelines/base/source-anchors.d.ts +33 -2
- package/dist/extensions/pipelines/base/source-anchors.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/source-anchors.js +191 -13
- package/dist/extensions/pipelines/base/source-anchors.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/axiom-indicator-detection.d.ts +1 -1
- package/dist/extensions/pipelines/base/stages/axiom-indicator-detection.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/axiom-indicator-detection.js +1 -1
- package/dist/extensions/pipelines/base/stages/axiom-indicator-detection.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/citation-source-detection.d.ts +1 -1
- package/dist/extensions/pipelines/base/stages/citation-source-detection.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/citation-source-detection.js +1 -1
- package/dist/extensions/pipelines/base/stages/citation-source-detection.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/claim-canonicalization.d.ts +3 -2
- package/dist/extensions/pipelines/base/stages/claim-canonicalization.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/claim-canonicalization.js +2 -2
- package/dist/extensions/pipelines/base/stages/claim-canonicalization.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/claim-mention-extraction.d.ts +1 -1
- package/dist/extensions/pipelines/base/stages/claim-mention-extraction.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/claim-mention-extraction.js +1 -1
- package/dist/extensions/pipelines/base/stages/claim-mention-extraction.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/claim-type-classification.d.ts +1 -1
- package/dist/extensions/pipelines/base/stages/claim-type-classification.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/claim-type-classification.js +1 -1
- package/dist/extensions/pipelines/base/stages/claim-type-classification.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/conclusion-selection.d.ts +26 -3
- package/dist/extensions/pipelines/base/stages/conclusion-selection.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/conclusion-selection.js +40 -2
- package/dist/extensions/pipelines/base/stages/conclusion-selection.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/index.d.ts +1 -1
- package/dist/extensions/pipelines/base/stages/index.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/index.js +1 -1
- package/dist/extensions/pipelines/base/stages/index.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/relation-extraction.d.ts +4 -3
- package/dist/extensions/pipelines/base/stages/relation-extraction.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/relation-extraction.js +6 -4
- package/dist/extensions/pipelines/base/stages/relation-extraction.js.map +1 -1
- package/dist/extensions/pipelines/base/stages/segmentation.d.ts +1 -1
- package/dist/extensions/pipelines/base/stages/segmentation.d.ts.map +1 -1
- package/dist/extensions/pipelines/base/stages/segmentation.js +1 -1
- package/dist/extensions/pipelines/base/stages/segmentation.js.map +1 -1
- package/dist/extensions/pipelines/base/types.d.ts +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/extract-stage.d.ts +61 -10
- package/dist/extensions/pipelines/ingestion/scribe/extract-stage.d.ts.map +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/extract-stage.js +203 -14
- package/dist/extensions/pipelines/ingestion/scribe/extract-stage.js.map +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/schemas.d.ts +15 -2
- package/dist/extensions/pipelines/ingestion/scribe/schemas.d.ts.map +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/schemas.js +14 -2
- package/dist/extensions/pipelines/ingestion/scribe/schemas.js.map +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/scribe.js +2 -2
- package/dist/extensions/pipelines/ingestion/scribe/scribe.js.map +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/source-attachment.d.ts +29 -0
- package/dist/extensions/pipelines/ingestion/scribe/source-attachment.d.ts.map +1 -0
- package/dist/extensions/pipelines/ingestion/scribe/source-attachment.js +200 -0
- package/dist/extensions/pipelines/ingestion/scribe/source-attachment.js.map +1 -0
- package/dist/extensions/pipelines/ingestion/scribe/structure-stage.d.ts +5 -3
- package/dist/extensions/pipelines/ingestion/scribe/structure-stage.d.ts.map +1 -1
- package/dist/extensions/pipelines/ingestion/scribe/structure-stage.js +42 -14
- package/dist/extensions/pipelines/ingestion/scribe/structure-stage.js.map +1 -1
- package/dist/lib/core/parser/formula-gen.js +309 -46
- package/dist/lib/llm/types.d.ts +8 -2
- package/dist/lib/llm/types.d.ts.map +1 -1
- package/dist/lib/llm/types.js.map +1 -1
- package/dist/lib/pipelines/debug-log.js +1 -1
- package/dist/lib/pipelines/debug-log.js.map +1 -1
- package/dist/lib/pipelines/index.d.ts +1 -1
- package/dist/lib/pipelines/index.d.ts.map +1 -1
- package/dist/lib/pipelines/index.js.map +1 -1
- package/dist/lib/pipelines/llm-stage-helpers.d.ts +22 -1
- package/dist/lib/pipelines/llm-stage-helpers.d.ts.map +1 -1
- package/dist/lib/pipelines/llm-stage-helpers.js +21 -9
- package/dist/lib/pipelines/llm-stage-helpers.js.map +1 -1
- package/dist/lib/pipelines/single-stage.d.ts +9 -1
- package/dist/lib/pipelines/single-stage.d.ts.map +1 -1
- package/dist/lib/pipelines/single-stage.js +14 -3
- package/dist/lib/pipelines/single-stage.js.map +1 -1
- package/dist/lib/pipelines/stage-helpers.d.ts +1 -1
- package/dist/lib/pipelines/stage-helpers.d.ts.map +1 -1
- package/dist/lib/pipelines/stage-helpers.js.map +1 -1
- package/dist/lib/schemata/shared.d.ts.map +1 -1
- package/dist/lib/schemata/shared.js +8 -6
- package/dist/lib/schemata/shared.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
// Every anchor returned here satisfies
|
|
17
17
|
// `input.slice(startUtf16, endUtf16) === quote`; a quote that cannot be
|
|
18
18
|
// located yields no anchor at all, never an anchor at an unverified
|
|
19
|
-
// offset.
|
|
19
|
+
// offset. A quote the model reworded or spliced can still be located,
|
|
20
|
+
// conservatively, and the match then says so — its anchor quote is the
|
|
21
|
+
// input's text, not the model's.
|
|
20
22
|
/** Characters of surrounding input carried on either side of a quote. */
|
|
21
23
|
export const SOURCE_ANCHOR_CONTEXT_CHARS = 32;
|
|
22
24
|
/** Escape a literal string for use inside a regular expression. */
|
|
@@ -173,18 +175,165 @@ function nearestRange(ranges, hintUtf16) {
|
|
|
173
175
|
return best;
|
|
174
176
|
}
|
|
175
177
|
/**
|
|
176
|
-
*
|
|
178
|
+
* A word's comparison key: canonical Unicode composition (NFC, so a
|
|
179
|
+
* precomposed "é" equals "e" plus a combining accent), folded punctuation
|
|
180
|
+
* and case, edges stripped.
|
|
181
|
+
*/
|
|
182
|
+
function wordKey(word) {
|
|
183
|
+
const folded = word
|
|
184
|
+
.normalize("NFC")
|
|
185
|
+
.replace(/[\u2018\u2019\u201A\u201B\u2032]/g, "'")
|
|
186
|
+
.replace(/[\u201C\u201D\u201E\u201F\u2033]/g, '"')
|
|
187
|
+
.replace(/[\u2010-\u2015\u2212]/g, "-")
|
|
188
|
+
.replace(/\u2026/g, "...")
|
|
189
|
+
.toLowerCase();
|
|
190
|
+
const stripped = folded.replace(/^[\p{P}\p{S}]+|[\p{P}\p{S}]+$/gu, "");
|
|
191
|
+
return stripped.length > 0 ? stripped : folded;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* The words of `text`, with their ranges in `text` itself. Words are
|
|
195
|
+
* separated by whitespace and by em and en dashes, so "ended—and" is the
|
|
196
|
+
* two words of "ended and"; a dash standing alone, however it is typed
|
|
197
|
+
* ("—", "-", "--"), is no word at all.
|
|
198
|
+
*/
|
|
199
|
+
function wordsOf(text) {
|
|
200
|
+
return [...text.matchAll(/[^\s\u2013\u2014]+/g)]
|
|
201
|
+
.filter((m) => !/^[-\u2010-\u2015\u2212]+$/.test(m[0]))
|
|
202
|
+
.map((m) => ({
|
|
203
|
+
start: m.index,
|
|
204
|
+
end: m.index + m[0].length,
|
|
205
|
+
key: wordKey(m[0]),
|
|
206
|
+
}));
|
|
207
|
+
}
|
|
208
|
+
/** Quotes shorter than this are never matched loosely. */
|
|
209
|
+
const APPROXIMATE_MIN_WORDS = 5;
|
|
210
|
+
/** The shortest word-for-word run a joined quote may be anchored to. */
|
|
211
|
+
const JOINED_MIN_RUN_WORDS = 8;
|
|
212
|
+
/**
|
|
213
|
+
* The input range a non-verbatim quote most plausibly came from;
|
|
214
|
+
* `ambiguousPassages` when several passages tie, or `undefined` when none
|
|
215
|
+
* qualifies. Deliberately conservative, since a wrong highlight is worse
|
|
216
|
+
* than none:
|
|
177
217
|
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
218
|
+
* - **Reworded.** The passage with the fewest changed words (word-level
|
|
219
|
+
* edit distance, over a passage of any start and length). Accepted when
|
|
220
|
+
* the quote has at least five words, at most one word in eight changed
|
|
221
|
+
* and at most three in all, and no passage outside the winner does as
|
|
222
|
+
* well — two equally good passages give no anchor.
|
|
223
|
+
* - **Joined.** Only when no passage qualifies: the quote's longest run of
|
|
224
|
+
* words found word-for-word in the input, if it is at least eight words
|
|
225
|
+
* long, at least half the quote, and found in exactly one place — a run
|
|
226
|
+
* the input repeats, or two different runs of that length, give no
|
|
227
|
+
* anchor. The anchor covers that run alone. A shorter run is too likely
|
|
228
|
+
* to be a stock phrase ("one of the most important") that says nothing
|
|
229
|
+
* about where the quote came from.
|
|
230
|
+
*/
|
|
231
|
+
function approximateRange(input, quote, hintUtf16) {
|
|
232
|
+
const q = wordsOf(quote).map((w) => w.key);
|
|
233
|
+
const t = wordsOf(input);
|
|
234
|
+
const n = q.length;
|
|
235
|
+
if (n < APPROXIMATE_MIN_WORDS || t.length === 0)
|
|
236
|
+
return undefined;
|
|
237
|
+
const allowed = Math.min(3, Math.floor(n / 8));
|
|
238
|
+
// Edit distance of the quote to the best passage ending at each word,
|
|
239
|
+
// with that passage's first word (free start: row 0 is all zeros).
|
|
240
|
+
let dist = new Array(t.length + 1).fill(0);
|
|
241
|
+
let from = Array.from({ length: t.length + 1 }, (_, j) => j);
|
|
242
|
+
for (let i = 1; i <= n; i++) {
|
|
243
|
+
const nextDist = new Array(t.length + 1);
|
|
244
|
+
const nextFrom = new Array(t.length + 1);
|
|
245
|
+
nextDist[0] = i;
|
|
246
|
+
nextFrom[0] = 0;
|
|
247
|
+
for (let j = 1; j <= t.length; j++) {
|
|
248
|
+
// Cheapest step; on a tie the earliest start, so a word the
|
|
249
|
+
// quote dropped stays inside the passage instead of cutting it.
|
|
250
|
+
const steps = [
|
|
251
|
+
{
|
|
252
|
+
cost: dist[j - 1] + (q[i - 1] === t[j - 1].key ? 0 : 1),
|
|
253
|
+
start: from[j - 1],
|
|
254
|
+
},
|
|
255
|
+
{ cost: dist[j] + 1, start: from[j] },
|
|
256
|
+
{ cost: nextDist[j - 1] + 1, start: nextFrom[j - 1] },
|
|
257
|
+
];
|
|
258
|
+
const step = steps.reduce((a, b) => b.cost < a.cost || (b.cost === a.cost && b.start < a.start)
|
|
259
|
+
? b
|
|
260
|
+
: a);
|
|
261
|
+
nextDist[j] = step.cost;
|
|
262
|
+
nextFrom[j] = step.start;
|
|
263
|
+
}
|
|
264
|
+
dist = nextDist;
|
|
265
|
+
from = nextFrom;
|
|
266
|
+
}
|
|
267
|
+
const candidates = [];
|
|
268
|
+
for (let j = 1; j <= t.length; j++) {
|
|
269
|
+
if (dist[j] <= allowed && from[j] < j) {
|
|
270
|
+
candidates.push({ first: from[j], last: j - 1, cost: dist[j] });
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
if (candidates.length > 0) {
|
|
274
|
+
const cost = Math.min(...candidates.map((c) => c.cost));
|
|
275
|
+
const tied = candidates.filter((c) => c.cost === cost);
|
|
276
|
+
// Passages overlapping one another are the same place read with a
|
|
277
|
+
// word more or less; prefer the quote's own length, then the hint.
|
|
278
|
+
const best = tied.reduce((a, b) => {
|
|
279
|
+
const lengthA = Math.abs(a.last - a.first + 1 - n);
|
|
280
|
+
const lengthB = Math.abs(b.last - b.first + 1 - n);
|
|
281
|
+
if (lengthA !== lengthB)
|
|
282
|
+
return lengthA < lengthB ? a : b;
|
|
283
|
+
return Math.abs(t[a.first].start - hintUtf16) <=
|
|
284
|
+
Math.abs(t[b.first].start - hintUtf16)
|
|
285
|
+
? a
|
|
286
|
+
: b;
|
|
287
|
+
});
|
|
288
|
+
const rivals = candidates.filter((c) => (c.last < best.first || c.first > best.last) &&
|
|
289
|
+
c.cost <= best.cost);
|
|
290
|
+
if (rivals.length > 0) {
|
|
291
|
+
return { ambiguousPassages: rivals.length + 1 };
|
|
292
|
+
}
|
|
293
|
+
return {
|
|
294
|
+
start: t[best.first].start,
|
|
295
|
+
end: t[best.last].end,
|
|
296
|
+
rule: cost === 0 ? "normalized" : "reworded",
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
// Longest run of consecutive words shared by quote and input.
|
|
300
|
+
let run = 0;
|
|
301
|
+
let runEnds = [];
|
|
302
|
+
let previous = new Array(t.length + 1).fill(0);
|
|
303
|
+
for (let i = 1; i <= n; i++) {
|
|
304
|
+
const current = new Array(t.length + 1).fill(0);
|
|
305
|
+
for (let j = 1; j <= t.length; j++) {
|
|
306
|
+
if (q[i - 1] !== t[j - 1].key)
|
|
307
|
+
continue;
|
|
308
|
+
current[j] = previous[j - 1] + 1;
|
|
309
|
+
if (current[j] > run) {
|
|
310
|
+
run = current[j];
|
|
311
|
+
runEnds = [j - 1];
|
|
312
|
+
}
|
|
313
|
+
else if (current[j] === run && !runEnds.includes(j - 1)) {
|
|
314
|
+
runEnds.push(j - 1);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
previous = current;
|
|
318
|
+
}
|
|
319
|
+
if (run < JOINED_MIN_RUN_WORDS || 2 * run < n)
|
|
320
|
+
return undefined;
|
|
321
|
+
// Every place a longest run ends, whether the same words repeated or a
|
|
322
|
+
// different run of equal length: more than one is no anchor.
|
|
323
|
+
if (runEnds.length > 1)
|
|
324
|
+
return { ambiguousPassages: runEnds.length };
|
|
325
|
+
const last = runEnds[0];
|
|
326
|
+
return { start: t[last - run + 1].start, end: t[last].end, rule: "joined" };
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Locate `quote` in `input`: a verified match, `ambiguousPassages` when the
|
|
330
|
+
* quote is not in the input as written and several passages resemble it
|
|
331
|
+
* equally, or `undefined` when nothing resembles it.
|
|
182
332
|
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
* approximate: a quote that still does not match yields `undefined`.
|
|
333
|
+
* `locateSourceAnchor` is this without the distinction between the two
|
|
334
|
+
* misses, which only the finalize notes need.
|
|
186
335
|
*/
|
|
187
|
-
export function
|
|
336
|
+
export function resolveSourceAnchor(input, quote, hintUtf16) {
|
|
188
337
|
const trimmed = quote.trim();
|
|
189
338
|
if (trimmed.length === 0)
|
|
190
339
|
return undefined;
|
|
@@ -199,11 +348,40 @@ export function locateSourceAnchor(input, quote, hintUtf16) {
|
|
|
199
348
|
const ranges = candidates.filter((range) => !splitsSurrogatePair(input, range.start) &&
|
|
200
349
|
!splitsSurrogatePair(input, range.end));
|
|
201
350
|
const range = nearestRange(ranges, hintUtf16);
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
: {
|
|
351
|
+
if (range !== undefined) {
|
|
352
|
+
return {
|
|
205
353
|
anchor: buildAnchor(input, range.start, range.end),
|
|
206
354
|
occurrences: ranges.length,
|
|
207
355
|
};
|
|
356
|
+
}
|
|
357
|
+
// Words break only at whitespace and at dashes, which are single code
|
|
358
|
+
// units, so an approximate range can never split a surrogate pair.
|
|
359
|
+
const approximate = approximateRange(input, trimmed, hintUtf16);
|
|
360
|
+
if (approximate === undefined || "ambiguousPassages" in approximate) {
|
|
361
|
+
return approximate;
|
|
362
|
+
}
|
|
363
|
+
// One, truly: an approximate match with a rival is no match at all.
|
|
364
|
+
return {
|
|
365
|
+
anchor: buildAnchor(input, approximate.start, approximate.end),
|
|
366
|
+
occurrences: 1,
|
|
367
|
+
approximate: approximate.rule,
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Locate `quote` in `input`, returning a verified match or `undefined`.
|
|
372
|
+
*
|
|
373
|
+
* `hintUtf16` selects among repeated occurrences — the occurrence whose
|
|
374
|
+
* start sits nearest the hint wins. It never affects *whether* a quote
|
|
375
|
+
* matches, so a wrong hint degrades to "picked another occurrence of the
|
|
376
|
+
* same text", never to a wrong span.
|
|
377
|
+
*
|
|
378
|
+
* The ladder is exact match, then whitespace-insensitive match, then
|
|
379
|
+
* both again with the quote's first character re-cased, and last an
|
|
380
|
+
* approximate match (`approximateRange`), which the result marks. A quote
|
|
381
|
+
* that matches none of them yields `undefined`.
|
|
382
|
+
*/
|
|
383
|
+
export function locateSourceAnchor(input, quote, hintUtf16) {
|
|
384
|
+
const resolved = resolveSourceAnchor(input, quote, hintUtf16);
|
|
385
|
+
return resolved !== undefined && "anchor" in resolved ? resolved : undefined;
|
|
208
386
|
}
|
|
209
387
|
//# sourceMappingURL=source-anchors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-anchors.js","sourceRoot":"","sources":["../../../../src/extensions/pipelines/base/source-anchors.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,EAAE;AACF,wEAAwE;AACxE,yDAAyD;AACzD,EAAE;AACF,oEAAoE;AACpE,uEAAuE;AAC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C5B,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAA;IAE1C,IAAI,UAAU,GAAG,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IAC1C,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,OAAO,GAAG,sBAAsB,CAAC,OAAO,CAAC,CAAA;QAC/C,IAAI,OAAO,KAAK,SAAS;YAAE,UAAU,GAAG,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IACrE,CAAC;IACD,gEAAgE;IAChE,kDAAkD;IAClD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAC5B,CAAC,KAAK,EAAE,EAAE,CACN,CAAC,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACxC,CAAC,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAC7C,CAAA;IAED,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IAC7C,OAAO,KAAK,KAAK,SAAS;QACtB,CAAC,CAAC,SAAS;QACX,CAAC,CAAC;YACI,MAAM,EAAE,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC;YAClD,WAAW,EAAE,MAAM,CAAC,MAAM;SAC7B,CAAA;AACX,CAAC"}
|
|
1
|
+
{"version":3,"file":"source-anchors.js","sourceRoot":"","sources":["../../../../src/extensions/pipelines/base/source-anchors.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,EAAE;AACF,wEAAwE;AACxE,yDAAyD;AACzD,EAAE;AACF,oEAAoE;AACpE,uEAAuE;AACvE,wDAAwD;AACxD,0DAA0D;AAC1D,sEAAsE;AACtE,qEAAqE;AACrE,oEAAoE;AACpE,EAAE;AACF,kEAAkE;AAClE,oEAAoE;AACpE,uCAAuC;AACvC,wEAAwE;AACxE,oEAAoE;AACpE,sEAA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,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAA;AAChF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TAxiomIndicatorDetectionOutput } from "./schemas.js";
|
|
2
2
|
import type { TStage } from "../../../../lib/pipelines/types.js";
|
|
3
3
|
import type { TLlmStageOptionsOverride } from "../types.js";
|
|
4
|
-
export declare const AXIOM_INDICATOR_DETECTION_MODEL = "gpt-
|
|
4
|
+
export declare const AXIOM_INDICATOR_DETECTION_MODEL = "gpt-6-sol";
|
|
5
5
|
export declare const AXIOM_INDICATOR_DETECTION_SYSTEM_PROMPT = "You scan the segments of an argument for axiom indicators \u2014 explicit signals that the author is invoking a self-evident truth as bottom-level support.\n\nRecognized indicator patterns include (non-exhaustive):\n- \"by definition\"\n- \"tautologically\", \"necessarily true\"\n- \"by convention\"\n- \"is true a priori\"\n- \"as a matter of (logic | mathematics | definition)\"\n- \"trivially\"\n\nReturn an object with a single key `axioms` whose value is the array of detected indicators. For each detected indicator emit:\n- a fresh \"axiomId\" (ax1, ax2, ...)\n- the list of \"segmentIds\" the indicator occurs in (usually one; sometimes two when the indicator straddles a clause)\n- the \"indicator\" \u2014 the verbatim trigger phrase\n- the character \"spans\" \u2014 one span object (\"start\" inclusive, \"end\" exclusive) per occurrence, relative to the SEGMENT'S TEXT\n\nHedging phrases (\"clearly\", \"obviously\", \"of course\") are NOT axiom indicators on their own \u2014 they are stylistic emphasis. Return `{ \"axioms\": [] }` when no indicators are present.";
|
|
6
6
|
/** Internal default knobs for the axiom-indicator-detection stage. */
|
|
7
7
|
export declare const AXIOM_INDICATOR_DETECTION_STAGE_DEFAULTS: TLlmStageOptionsOverride;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axiom-indicator-detection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/axiom-indicator-detection.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,KAAK,8BAA8B,EAEtC,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,+BAA+B,
|
|
1
|
+
{"version":3,"file":"axiom-indicator-detection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/axiom-indicator-detection.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,KAAK,8BAA8B,EAEtC,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,+BAA+B,cAAc,CAAA;AAE1D,eAAO,MAAM,uCAAuC,4jCAgBmI,CAAA;AAavL,sEAAsE;AACtE,eAAO,MAAM,wCAAwC,EAAE,wBAGlD,CAAA;AAEL,gFAAgF;AAChF,wBAAgB,kCAAkC,CAC9C,OAAO,CAAC,EAAE,wBAAwB,GACnC,MAAM,CAAC,8BAA8B,CAAC,CAWxC;AAED,iDAAiD;AACjD,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,8BAA8B,CACxC,CAAA"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// "as a matter of logic", "is necessarily true" mark the spots.
|
|
5
5
|
import { STAGE_IDS, AxiomIndicatorDetectionOutputSchema, } from "./schemas.js";
|
|
6
6
|
import { llmStage } from "../../../../lib/pipelines/stage-helpers.js";
|
|
7
|
-
export const AXIOM_INDICATOR_DETECTION_MODEL = "gpt-
|
|
7
|
+
export const AXIOM_INDICATOR_DETECTION_MODEL = "gpt-6-sol";
|
|
8
8
|
export const AXIOM_INDICATOR_DETECTION_SYSTEM_PROMPT = `You scan the segments of an argument for axiom indicators — explicit signals that the author is invoking a self-evident truth as bottom-level support.
|
|
9
9
|
|
|
10
10
|
Recognized indicator patterns include (non-exhaustive):
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axiom-indicator-detection.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/axiom-indicator-detection.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,sEAAsE;AACtE,6DAA6D;AAC7D,gEAAgE;AAEhE,OAAO,EACH,SAAS,EACT,mCAAmC,GAGtC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAIrE,MAAM,CAAC,MAAM,+BAA+B,GAAG,
|
|
1
|
+
{"version":3,"file":"axiom-indicator-detection.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/axiom-indicator-detection.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,sEAAsE;AACtE,6DAA6D;AAC7D,gEAAgE;AAEhE,OAAO,EACH,SAAS,EACT,mCAAmC,GAGtC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAIrE,MAAM,CAAC,MAAM,+BAA+B,GAAG,WAAW,CAAA;AAE1D,MAAM,CAAC,MAAM,uCAAuC,GAAG;;;;;;;;;;;;;;;;uLAgBgI,CAAA;AAEvL,SAAS,WAAW,CAAC,GAAkB;IACnC,MAAM,YAAY,GAAG,GAAG,CAAC,GAAG,CAAsB,SAAS,CAAC,YAAY,CAAC,CAAA;IACzE,MAAM,QAAQ,GAAG,YAAY,EAAE,QAAQ,IAAI,EAAE,CAAA;IAC7C,MAAM,gBAAgB,GAAG,QAAQ;SAC5B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;SACxD,IAAI,CAAC,IAAI,CAAC,CAAA;IACf,MAAM,YAAY,GAAG,kBAAkB,SAAS,CAAC,uBAAuB,SAAS,uCAAuC,EAAE,CAAA;IAC1H,MAAM,IAAI,GAAG,gBAAgB,gBAAgB,mCAAmC,CAAA;IAChF,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,CAAA;AACzC,CAAC;AAED,sEAAsE;AACtE,MAAM,CAAC,MAAM,wCAAwC,GACjD;IACI,KAAK,EAAE,+BAA+B;CACzC,CAAA;AAEL,gFAAgF;AAChF,MAAM,UAAU,kCAAkC,CAC9C,OAAkC;IAElC,OAAO,QAAQ,CAAiC;QAC5C,EAAE,EAAE,SAAS,CAAC,uBAAuB;QACrC,SAAS,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC;QACnC,YAAY,EAAE,mCAAmC;QACjD,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,+BAA+B;QACxD,eAAe,EAAE,OAAO,EAAE,eAAe;QACzC,eAAe,EAAE,OAAO,EAAE,eAAe;QACzC,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,WAAW;KACd,CAAC,CAAA;AACN,CAAC;AAED,iDAAiD;AACjD,MAAM,CAAC,MAAM,4BAA4B,GACrC,kCAAkC,EAAE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TCitationSourceDetectionOutput } from "./schemas.js";
|
|
2
2
|
import type { TStage } from "../../../../lib/pipelines/types.js";
|
|
3
3
|
import type { TLlmStageOptionsOverride } from "../types.js";
|
|
4
|
-
export declare const CITATION_SOURCE_DETECTION_MODEL = "gpt-
|
|
4
|
+
export declare const CITATION_SOURCE_DETECTION_MODEL = "gpt-6-sol";
|
|
5
5
|
export declare const CITATION_SOURCE_DETECTION_SYSTEM_PROMPT = "You scan the segments of an argument for explicit references to external sources of evidence.\n\nA source reference is any of:\n- a Markdown link: `[label](url)`\n- a named source: \"according to X\", \"as reported in Y\", \"the X report\"\n- a bracketed citation marker: `[1]`, `[Smith 2024]`\n- a fully-qualified URL\n\nReturn an object with a single key `sources` whose value is the array of detected source references. For each detected source emit:\n- a fresh \"sourceId\" (src1, src2, ...)\n- the list of \"segmentIds\" the source occurs in (almost always one; multi-segment when one citation spans a clause boundary)\n- a short \"sourceString\" \u2014 the human-readable label (e.g. \"NASA climate report\", \"Smith 2024\")\n- the \"url\" field \u2014 the URL when one is present, otherwise null\n- the character \"spans\" \u2014 one span object (\"start\" inclusive, \"end\" exclusive) per occurrence, relative to the SEGMENT'S TEXT\n\nDo not detect mere mentions of people, organizations, or studies that are not invoked as supporting evidence. Quote attribution alone (\"Bob said X\") is not a citation unless Bob's saying is being used to support a claim. Return `{ \"sources\": [] }` when no sources are present.";
|
|
6
6
|
/** Internal default knobs for the citation-source-detection stage. */
|
|
7
7
|
export declare const CITATION_SOURCE_DETECTION_STAGE_DEFAULTS: TLlmStageOptionsOverride;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation-source-detection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/citation-source-detection.ts"],"names":[],"mappings":"AAMA,OAAO,EAGH,KAAK,8BAA8B,EAEtC,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,+BAA+B,
|
|
1
|
+
{"version":3,"file":"citation-source-detection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/citation-source-detection.ts"],"names":[],"mappings":"AAMA,OAAO,EAGH,KAAK,8BAA8B,EAEtC,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,+BAA+B,cAAc,CAAA;AAE1D,eAAO,MAAM,uCAAuC,6sCAemO,CAAA;AAavR,sEAAsE;AACtE,eAAO,MAAM,wCAAwC,EAAE,wBAGlD,CAAA;AAEL,gFAAgF;AAChF,wBAAgB,kCAAkC,CAC9C,OAAO,CAAC,EAAE,wBAAwB,GACnC,MAAM,CAAC,8BAA8B,CAAC,CAWxC;AAED,iDAAiD;AACjD,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,8BAA8B,CACxC,CAAA"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// to citation-typed records with their `url` / `title` populated.
|
|
6
6
|
import { STAGE_IDS, CitationSourceDetectionOutputSchema, } from "./schemas.js";
|
|
7
7
|
import { llmStage } from "../../../../lib/pipelines/stage-helpers.js";
|
|
8
|
-
export const CITATION_SOURCE_DETECTION_MODEL = "gpt-
|
|
8
|
+
export const CITATION_SOURCE_DETECTION_MODEL = "gpt-6-sol";
|
|
9
9
|
export const CITATION_SOURCE_DETECTION_SYSTEM_PROMPT = `You scan the segments of an argument for explicit references to external sources of evidence.
|
|
10
10
|
|
|
11
11
|
A source reference is any of:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation-source-detection.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/citation-source-detection.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,+DAA+D;AAC/D,kEAAkE;AAClE,qEAAqE;AACrE,kEAAkE;AAElE,OAAO,EACH,SAAS,EACT,mCAAmC,GAGtC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAIrE,MAAM,CAAC,MAAM,+BAA+B,GAAG,
|
|
1
|
+
{"version":3,"file":"citation-source-detection.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/citation-source-detection.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,+DAA+D;AAC/D,kEAAkE;AAClE,qEAAqE;AACrE,kEAAkE;AAElE,OAAO,EACH,SAAS,EACT,mCAAmC,GAGtC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAIrE,MAAM,CAAC,MAAM,+BAA+B,G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AA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type TSchema } from "typebox";
|
|
2
2
|
import { type TClaimCanonicalizationOutput } from "./schemas.js";
|
|
3
|
+
import type { TReasoningEffort } from "../../../../lib/llm/types.js";
|
|
3
4
|
import type { TStage } from "../../../../lib/pipelines/types.js";
|
|
4
5
|
import type { TIngestionExtension, TLlmStageOptionsOverride } from "../types.js";
|
|
5
|
-
export declare const CLAIM_CANONICALIZATION_MODEL = "gpt-
|
|
6
|
-
export declare const CLAIM_CANONICALIZATION_REASONING:
|
|
6
|
+
export declare const CLAIM_CANONICALIZATION_MODEL = "gpt-6-sol";
|
|
7
|
+
export declare const CLAIM_CANONICALIZATION_REASONING: TReasoningEffort;
|
|
7
8
|
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
9
|
/**
|
|
9
10
|
* Build the per-extension canonicalization output schema: an object of
|
|
@@ -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;
|
|
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;AACrB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAGpE,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,KAAK,EACR,mBAAmB,EAEnB,wBAAwB,EAC3B,MAAM,aAAa,CAAA;AAEpB,eAAO,MAAM,4BAA4B,cAAc,CAAA;AACvD,eAAO,MAAM,gCAAgC,EAAE,gBAA2B,CAAA;AAE1E,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"}
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
// canonical claim's miniId — useful for downstream stages (and
|
|
12
12
|
// finalize) that want to trace evidence back to the text.
|
|
13
13
|
//
|
|
14
|
-
// This is a strong-reasoning stage
|
|
14
|
+
// This is a strong-reasoning stage, with
|
|
15
15
|
// `reasoningEffort: 'medium'`.
|
|
16
16
|
import Type, {} from "typebox";
|
|
17
17
|
import { MentionToClaimEntrySchema, STAGE_IDS, } from "./schemas.js";
|
|
18
18
|
import { llmStage } from "../../../../lib/pipelines/stage-helpers.js";
|
|
19
19
|
import { optional } from "../../../../lib/pipelines/types.js";
|
|
20
|
-
export const CLAIM_CANONICALIZATION_MODEL = "gpt-
|
|
20
|
+
export const CLAIM_CANONICALIZATION_MODEL = "gpt-6-sol";
|
|
21
21
|
export const CLAIM_CANONICALIZATION_REASONING = "medium";
|
|
22
22
|
export const CLAIM_CANONICALIZATION_SYSTEM_PROMPT = `You merge raw claim mentions into a single canonical set of claims for an argument-ingestion pipeline.
|
|
23
23
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim-canonicalization.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-canonicalization.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,qDAAqD;AACrD,oDAAoD;AACpD,iCAAiC;AACjC,kEAAkE;AAClE,6DAA6D;AAC7D,6DAA6D;AAC7D,iEAAiE;AACjE,EAAE;AACF,8DAA8D;AAC9D,+DAA+D;AAC/D,0DAA0D;AAC1D,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"claim-canonicalization.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-canonicalization.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,qDAAqD;AACrD,oDAAoD;AACpD,iCAAiC;AACjC,kEAAkE;AAClE,6DAA6D;AAC7D,6DAA6D;AAC7D,iEAAiE;AACjE,EAAE;AACF,8DAA8D;AAC9D,+DAA+D;AAC/D,0DAA0D;AAC1D,EAAE;AACF,yCAAyC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AAI,wBAAwB,YAAY,mCAAmC,aAAa,mCAAmC,UAAU,0DAA0D,CAAA;IACpO,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,CAAA;AACzC,CAAC;AAED,mEAAmE;AACnE,MAAM,CAAC,MAAM,qCAAqC,GAA6B;IAC3E,KAAK,EAAE,4BAA4B;IACnC,eAAe,EAAE,gCAAgC;CACpD,CAAA;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gCAAgC,CAC5C,SAA8B,EAC9B,OAAkC;IAElC,OAAO,QAAQ,CAA+B;QAC1C,EAAE,EAAE,SAAS,CAAC,qBAAqB;QACnC,SAAS,EAAE;YACP,SAAS,CAAC,sBAAsB;YAChC,QAAQ,CAAC,SAAS,CAAC,uBAAuB,CAAC;YAC3C,QAAQ,CAAC,SAAS,CAAC,uBAAuB,CAAC;SAC9C;QACD,YAAY,EAAE,mBAAmB,CAAC,SAAS,CAAC;QAC5C,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,4BAA4B;QACrD,eAAe,EAAE,OAAO,EAAE,eAAe;QACzC,eAAe,EACX,OAAO,EAAE,eAAe,IAAI,gCAAgC;QAChE,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,WAAW;KACd,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TClaimMentionExtractionOutput } from "./schemas.js";
|
|
2
2
|
import type { TStage } from "../../../../lib/pipelines/types.js";
|
|
3
3
|
import type { TLlmStageOptionsOverride } from "../types.js";
|
|
4
|
-
export declare const CLAIM_MENTION_EXTRACTION_MODEL = "gpt-
|
|
4
|
+
export declare const CLAIM_MENTION_EXTRACTION_MODEL = "gpt-6-sol";
|
|
5
5
|
export declare const CLAIM_MENTION_EXTRACTION_SYSTEM_PROMPT = "You extract textual \"claim mentions\" from segments of an argument. A mention is any contiguous span of text that asserts a proposition the author is making \u2014 a sentence-or-clause-sized chunk that a reader would read as a single assertion.\n\nReturn an object with a single key `mentions` whose value is the array of extracted mentions. For each mention emit:\n- a fresh \"mentionId\" (m1, m2, ...; unique across all segments)\n- the \"segmentId\" the mention belongs to\n- the verbatim \"text\" of the mention (copy from the input \u2014 do not rewrite)\n- the character \"span\" (an object with \"start\" inclusive, \"end\" exclusive) relative to the SEGMENT'S TEXT (not the original input)\n\nA single segment can produce multiple mentions when it asserts multiple things. Most segments produce one mention. Do NOT deduplicate \u2014 if the same proposition is reasserted in a later segment, emit it as a separate mention there too. Do NOT classify the mention. Do NOT include connectives, hedges, or discourse markers in the span when they are not part of the asserted proposition.\n\nIf a segment is purely a discourse marker (e.g., \"Therefore,\" or \"Moreover,\"), emit no mention for it. If there are no mentions at all, return `{ \"mentions\": [] }`.";
|
|
6
6
|
/** Internal default knobs for the claim-mention-extraction stage. */
|
|
7
7
|
export declare const CLAIM_MENTION_EXTRACTION_STAGE_DEFAULTS: TLlmStageOptionsOverride;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim-mention-extraction.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-mention-extraction.ts"],"names":[],"mappings":"AAOA,OAAO,EAGH,KAAK,6BAA6B,EAErC,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,8BAA8B,
|
|
1
|
+
{"version":3,"file":"claim-mention-extraction.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-mention-extraction.ts"],"names":[],"mappings":"AAOA,OAAO,EAGH,KAAK,6BAA6B,EAErC,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,8BAA8B,cAAc,CAAA;AAEzD,eAAO,MAAM,sCAAsC,svCAUoH,CAAA;AAavK,qEAAqE;AACrE,eAAO,MAAM,uCAAuC,EAAE,wBAGjD,CAAA;AAEL,+EAA+E;AAC/E,wBAAgB,iCAAiC,CAC7C,OAAO,CAAC,EAAE,wBAAwB,GACnC,MAAM,CAAC,6BAA6B,CAAC,CAWvC;AAED,iDAAiD;AACjD,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,6BAA6B,CACvC,CAAA"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// mention list as context.
|
|
7
7
|
import { STAGE_IDS, ClaimMentionExtractionOutputSchema, } from "./schemas.js";
|
|
8
8
|
import { llmStage } from "../../../../lib/pipelines/stage-helpers.js";
|
|
9
|
-
export const CLAIM_MENTION_EXTRACTION_MODEL = "gpt-
|
|
9
|
+
export const CLAIM_MENTION_EXTRACTION_MODEL = "gpt-6-sol";
|
|
10
10
|
export const CLAIM_MENTION_EXTRACTION_SYSTEM_PROMPT = `You extract textual "claim mentions" from segments of an argument. A mention is any contiguous span of text that asserts a proposition the author is making — a sentence-or-clause-sized chunk that a reader would read as a single assertion.
|
|
11
11
|
|
|
12
12
|
Return an object with a single key \`mentions\` whose value is the array of extracted mentions. For each mention emit:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim-mention-extraction.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-mention-extraction.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,qEAAqE;AACrE,oEAAoE;AACpE,mEAAmE;AACnE,+DAA+D;AAC/D,2BAA2B;AAE3B,OAAO,EACH,SAAS,EACT,kCAAkC,GAGrC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAIrE,MAAM,CAAC,MAAM,8BAA8B,GAAG,
|
|
1
|
+
{"version":3,"file":"claim-mention-extraction.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-mention-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EAAE,OAAO,EAAE,KAAK,IAAI,8BAA8B;QACvD,eAAe,EAAE,OAAO,EAAE,eAAe;QACzC,eAAe,EAAE,OAAO,EAAE,eAAe;QACzC,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,WAAW;KACd,CAAC,CAAA;AACN,CAAC;AAED,iDAAiD;AACjD,MAAM,CAAC,MAAM,2BAA2B,GACpC,iCAAiC,EAAE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TClaimTypeClassificationOutput } from "./schemas.js";
|
|
2
2
|
import type { TStage } from "../../../../lib/pipelines/types.js";
|
|
3
3
|
import type { TLlmStageOptionsOverride } from "../types.js";
|
|
4
|
-
export declare const CLAIM_TYPE_CLASSIFICATION_MODEL = "gpt-
|
|
4
|
+
export declare const CLAIM_TYPE_CLASSIFICATION_MODEL = "gpt-6-sol";
|
|
5
5
|
export declare const CLAIM_TYPE_CLASSIFICATION_SYSTEM_PROMPT = "You confirm or revise the type of each canonical claim in an argument-ingestion pipeline.\n\nReturn an object with a single key `classifications` whose value is an array of per-claim entries. For each canonical claim you receive (id, the canonicalizer's draft `type`, and the claim's body/title/url/axiom fields), emit one entry with:\n- `miniId` \u2014 the canonical claim's miniId (copy verbatim)\n- `type` \u2014 one of \"normal\", \"citation\", \"axiomatic\"\n- `sourceString` \u2014 populate when type is \"citation\" with the source label (or url) the claim is built on; null otherwise\n\nUse the supplied detected citation sources + axiom indicators as evidence. Override the canonicalizer's draft only when the evidence clearly contradicts it. The default is to confirm the draft. Be conservative \u2014 a wrong override here cascades into wrong support edges downstream.\n\nEvery input claim must appear in `classifications` exactly once.\n\n## Type rules\n\n- `\"normal\"` \u2014 primary reasoning content; the default.\n- `\"citation\"` \u2014 content is \"the cited source says/shows X\" AND a citation source covers the claim. The claim's title/body summarizes what the source asserts; the URL (when present) names the source.\n- `\"axiomatic\"` \u2014 content is invoked as self-evidently true AND an axiom indicator (e.g. \"by definition\") covers or precedes the claim.";
|
|
6
6
|
/** Internal default knobs for the claim-type-classification stage. */
|
|
7
7
|
export declare const CLAIM_TYPE_CLASSIFICATION_STAGE_DEFAULTS: TLlmStageOptionsOverride;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim-type-classification.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-type-classification.ts"],"names":[],"mappings":"AAOA,OAAO,EAMH,KAAK,8BAA8B,EACtC,MAAM,cAAc,CAAA;AAGrB,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAE3D,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"claim-type-classification.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-type-classification.ts"],"names":[],"mappings":"AAOA,OAAO,EAMH,KAAK,8BAA8B,EACtC,MAAM,cAAc,CAAA;AAGrB,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAE3D,eAAO,MAAM,+BAA+B,cAAc,CAAA;AAE1D,eAAO,MAAM,uCAAuC,82CAesF,CAAA;AAqD1I,sEAAsE;AACtE,eAAO,MAAM,wCAAwC,EAAE,wBAGlD,CAAA;AAEL,gFAAgF;AAChF,wBAAgB,kCAAkC,CAC9C,OAAO,CAAC,EAAE,wBAAwB,GACnC,MAAM,CAAC,8BAA8B,CAAC,CAexC;AAED,iDAAiD;AACjD,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,8BAA8B,CACxC,CAAA"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { STAGE_IDS, ClaimTypeClassificationOutputSchema, } from "./schemas.js";
|
|
8
8
|
import { llmStage } from "../../../../lib/pipelines/stage-helpers.js";
|
|
9
9
|
import { optional } from "../../../../lib/pipelines/types.js";
|
|
10
|
-
export const CLAIM_TYPE_CLASSIFICATION_MODEL = "gpt-
|
|
10
|
+
export const CLAIM_TYPE_CLASSIFICATION_MODEL = "gpt-6-sol";
|
|
11
11
|
export const CLAIM_TYPE_CLASSIFICATION_SYSTEM_PROMPT = `You confirm or revise the type of each canonical claim in an argument-ingestion pipeline.
|
|
12
12
|
|
|
13
13
|
Return an object with a single key \`classifications\` whose value is an array of per-claim entries. For each canonical claim you receive (id, the canonicalizer's draft \`type\`, and the claim's body/title/url/axiom fields), emit one entry with:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim-type-classification.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-type-classification.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,mEAAmE;AACnE,oEAAoE;AACpE,qEAAqE;AACrE,qEAAqE;AACrE,uEAAuE;AAEvE,OAAO,EACH,SAAS,EACT,mCAAmC,GAKtC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAA;AAI7D,MAAM,CAAC,MAAM,+BAA+B,GAAG,
|
|
1
|
+
{"version":3,"file":"claim-type-classification.js","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/claim-type-classification.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,mEAAmE;AACnE,oEAAoE;AACpE,qEAAqE;AACrE,qEAAqE;AACrE,uEAAuE;AAEvE,OAAO,EACH,SAAS,EACT,mCAAmC,GAKtC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAA;AAI7D,MAAM,CAAC,MAAM,+BAA+B,GAAG,WAAW,CAAA;AAE1D,MAAM,CAAC,MAAM,uCAAuC,GAAG;;;;;;;;;;;;;;;0IAemF,CAAA;AAE1I,SAA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eClassificationEntry, type TConclusionSelectionOutput, type TInferenceRelation } from "./schemas.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { TReasoningEffort } from "../../../../lib/llm/types.js";
|
|
3
|
+
import type { TLlmOutputCheckFailure } from "../../../../lib/pipelines/stage-helpers.js";
|
|
4
|
+
import type { TStage, TStageContext } from "../../../../lib/pipelines/types.js";
|
|
3
5
|
import type { TLlmStageOptionsOverride } from "../types.js";
|
|
4
|
-
export declare const CONCLUSION_SELECTION_MODEL = "gpt-
|
|
5
|
-
export declare const CONCLUSION_SELECTION_REASONING:
|
|
6
|
+
export declare const CONCLUSION_SELECTION_MODEL = "gpt-6-sol";
|
|
7
|
+
export declare const CONCLUSION_SELECTION_REASONING: TReasoningEffort;
|
|
6
8
|
export declare const CONCLUSION_SELECTION_NO_CONCLUSION_FAILURE_CODE = "NO_SINGLE_CONCLUSION";
|
|
9
|
+
/**
|
|
10
|
+
* The failure a stage reports when the model found no structure in claims
|
|
11
|
+
* that must have some, and what a reader is shown when retrying did not
|
|
12
|
+
* help.
|
|
13
|
+
*/
|
|
14
|
+
export declare const NO_ARGUMENT_STRUCTURE_FAILURE: {
|
|
15
|
+
readonly code: "NO_ARGUMENT_STRUCTURE";
|
|
16
|
+
readonly message: "Couldn't work out how these claims connect to a conclusion.";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* `llmStage` content check shared by the stages that propose an argument's
|
|
20
|
+
* structure: once at least two canonical claims are normal, the model must
|
|
21
|
+
* name at least one relation and — when `conclusionCandidates` is given —
|
|
22
|
+
* at least one conclusion candidate. With fewer there is nothing to
|
|
23
|
+
* connect, so an empty answer is accepted. A failure retries the stage;
|
|
24
|
+
* see `llmStage`'s `checkOutput`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function checkArgumentStructure(ctx: TStageContext, output: {
|
|
27
|
+
relations: readonly unknown[];
|
|
28
|
+
conclusionCandidates?: readonly string[];
|
|
29
|
+
}): TLlmOutputCheckFailure | undefined;
|
|
7
30
|
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
31
|
/** Internal default knobs for the conclusion-selection stage. */
|
|
9
32
|
export declare const CONCLUSION_SELECTION_STAGE_DEFAULTS: TLlmStageOptionsOverride;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conclusion-selection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/conclusion-selection.ts"],"names":[],"mappings":"AAgBA,OAAO,
|
|
1
|
+
{"version":3,"file":"conclusion-selection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/pipelines/base/stages/conclusion-selection.ts"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