@maschinenlesbar.org/openka-cli
    Preparing search index...

    Interface ExtractRequest

    interface ExtractRequest {
        documents: FetchedDocument[];
        documentType: "kleine_anfrage" | "schriftliche_anfrage" | "grosse_anfrage";
        env?: ProcessEnv;
        metadata: SourceMetadata;
        parliament:
            | "bund"
            | "baden-wuerttemberg"
            | "bayern"
            | "berlin"
            | "brandenburg"
            | "bremen"
            | "hamburg"
            | "hessen"
            | "mecklenburg-vorpommern"
            | "niedersachsen"
            | "nordrhein-westfalen"
            | "rheinland-pfalz"
            | "saarland"
            | "sachsen"
            | "sachsen-anhalt"
            | "schleswig-holstein"
            | "thueringen";
        perceiver?: Perceiver;
        ruleSets?: readonly SegmentationRules[];
        tier: "structured"
        | "text_layer"
        | "ocr";
    }
    Index
    documents: FetchedDocument[]
    documentType: "kleine_anfrage" | "schriftliche_anfrage" | "grosse_anfrage"
    env?: ProcessEnv
    metadata: SourceMetadata
    parliament:
        | "bund"
        | "baden-wuerttemberg"
        | "bayern"
        | "berlin"
        | "brandenburg"
        | "bremen"
        | "hamburg"
        | "hessen"
        | "mecklenburg-vorpommern"
        | "niedersachsen"
        | "nordrhein-westfalen"
        | "rheinland-pfalz"
        | "saarland"
        | "sachsen"
        | "sachsen-anhalt"
        | "schleswig-holstein"
        | "thueringen"
    perceiver?: Perceiver

    Only consulted by the ocr tier. Defaults to strict mode (abstain).

    ruleSets?: readonly SegmentationRules[]

    Rule sets to try, in order. Defaults to the shared set.

    tier: "structured" | "text_layer" | "ocr"