Riksdagsmonitor Intelligence Platform โ€” API Documentation - v0.8.15
    Preparing search index...

    Precomputed values that are expensive to derive and shared across multiple builder functions within a single analyzeDocument() call.

    By computing domains and influenceScore once and threading this context through helpers we avoid 7โ€“11ร— redundant detectPolicyDomains() and calculateInfluenceScore() calls per document.

    interface PrecomputedContext {
    ย ย ย ย domains: string[];
    ย ย ย ย influenceScore: number;
    }
    Index

    Properties

    domains: string[]
    influenceScore: number