docs(FN-4223): complete Step 3 — clarify research confidence and run semantics in JSDoc
Fusion-Task-Id: FN-4223 Fusion-Task-Lineage: bc114ff2-ee0f-4e96-b1d2-6ba3112a48e4
This commit is contained in:
@@ -200,6 +200,11 @@ function extractCitations(text: string, sources: ResearchSource[]): string[] {
|
||||
return [...refs];
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts synthesis-emitted confidence (0-1) from model output.
|
||||
* This is an LLM-provided signal for cited-research synthesis,
|
||||
* not a statistical MAD confidence metric.
|
||||
*/
|
||||
function extractConfidence(text: string): number | undefined {
|
||||
const jsonBlock = text.match(/```(?:json)?\s*([\s\S]*?)```/i)?.[1] ?? text;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user