The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Search::Elasticsearch::Client::8_0::Direct::Inference - 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 <enrico.zimuel@elastic.co>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2024 by Elasticsearch BV.

This is free software, licensed under:

The Apache License, Version 2.0, January 2004