@plust/datasleuth - v0.2.0
    Preparing search index...

    Interface FactCheckOptions

    Options for the fact checking step

    interface FactCheckOptions {
        threshold?: number;
        llm?: LanguageModelV1;
        includeEvidence?: boolean;
        includeInResults?: boolean;
        statements?: string[];
        maxStatements?: number;
        customPrompt?: string;
        temperature?: number;
        retry?: { maxRetries?: number; baseDelay?: number };
        continueOnError?: boolean;
        allowEmptyContent?: boolean;
        [key: string]: any;
    }

    Hierarchy

    • StepOptions
      • FactCheckOptions

    Indexable

    • [key: string]: any
    Index

    Properties

    threshold?: number

    Minimum confidence threshold for validation (0.0 to 1.0)

    llm?: LanguageModelV1

    Model to use for fact checking (from the AI SDK)

    includeEvidence?: boolean

    Whether to include evidence in the output

    includeInResults?: boolean

    Whether to include fact check results in the final results

    statements?: string[]

    Specific statements to check (if empty, will extract from content)

    maxStatements?: number

    Maximum number of statements to check

    customPrompt?: string

    Custom prompt for the fact-checking LLM

    temperature?: number

    Temperature for the LLM (0.0 to 1.0)

    retry?: { maxRetries?: number; baseDelay?: number }

    Retry configuration for LLM calls

    Type declaration

    • OptionalmaxRetries?: number

      Maximum number of retries

    • OptionalbaseDelay?: number

      Base delay between retries in ms

    continueOnError?: boolean

    Whether to continue if some statements fail to check

    allowEmptyContent?: boolean

    Whether to continue even if zero extracted content is available