proposit-core
    Preparing search index...

    Function createClaimCanonicalizationStage

    • Builds the claim-canonicalization stage for the supplied extension. The stage's outputSchema carries the extension's per-claim fields, so the LLM's structured-output schema matches the extension's claim shape (e.g. for basics: a discriminated union over type).

      options overrides the stage's internal defaults (CLAIM_CANONICALIZATION_STAGE_DEFAULTS). Threaded through by createScholarPipeline per its TIngestionLlmOptions surface.

      Parameters

      Returns TStage<
          {
              canonicalClaims: {
                  mentionIds: string[];
                  miniId: string;
                  suggestedSymbol: string;
                  type: "normal"
                  | "citation"
                  | "axiomatic";
              }[];
              mentionToClaim: { claimMiniId: string; mentionId: string }[];
          },
      >