Search::Elasticsearch::Client::8_0::Direct::Inference(3pm)

Search::Elasticsearch::Client::8_0::Direct::Inference3pm

The inference apis enable you to use certain services,

Version

version 8.12

Description

The full documentation for Inference is available here: <https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html>

Follow methods

follow()

    my $response = $es->inference->put_model(
        'task_type' => 'sparse_embedding',
        'model_id' => 'my-elser-model',
        'body'  => {
            'service' => 'elser',
            'service_settings' => {
                'num_allocations' => 1,
                'num_threads' => 1
            },
            'task_settings' => {}
        }
    );

Author

Enrico Zimuel <[email protected]>

From libsearch-elasticsearch-perl 8.12-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.