mindee
    Preparing search index...

    Interface InferenceParameters

    Parameters accepted by the asynchronous inference v2 endpoint.

    All fields are optional except modelId.

    const params = {
    modelId: "YOUR_MODEL_ID",
    rag: true,
    alias: "YOUR_ALIAS",
    webhookIds: ["YOUR_WEBHOOK_ID_1", "YOUR_WEBHOOK_ID_2"],
    pollingOptions: {
    initialDelaySec: 2,
    delaySec: 1.5,
    }
    };
    interface InferenceParameters {
        alias?: string;
        closeFile?: boolean;
        modelId: string;
        pollingOptions?: PollingOptions;
        rag?: boolean;
        webhookIds?: string[];
    }
    Index

    Properties

    alias?: string

    Custom alias assigned to the uploaded document.

    closeFile?: boolean

    By default the file is closed once the upload is finished, set to false to keep it open.

    modelId: string

    Identifier of the model that must process the document. Required.

    pollingOptions?: PollingOptions

    Client-side polling configuration (see PollingOptions).

    rag?: boolean

    When true, activates Retrieval-Augmented Generation (RAG).

    webhookIds?: string[]

    List of webhook UUIDs that will receive the final API response.