Search...ference(3pm)

πŸ“¦
version 8.12 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Search::Elasticsearch::Client::8_0::Direct::Inference πŸ’–

okay bestie, so this is a Perl manual page (that's the 3pm vibe, perl module docs, iykyk) for the Search::Elasticsearch::Client::8_0::Direct::Inference module. It's the inference APIs, and they "enable you to use certain services," ✨ (yes the sentence really does end right there, we love a cliffhanger).


🌸 NAME 🌸

Search::Elasticsearch::Client::8_0::Direct::Inference β€” The inference APIs enable you to use certain services,

no cap, that's the whole name line. short. iconic. πŸ’…


⭐ VERSION ⭐

version 8.12

periodt. that's the version.


πŸ¦‹ DESCRIPTION πŸ¦‹

So the full documentation for Inference? It's not all here, it's over on the Elastic site, bestie. The complete docs live right here:

https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html

go read it, it's giving thorough. 🫢


πŸŽ€ FOLLOW METHODS πŸŽ€

✨ follow() ✨

okay so this is the method they're showing off, and the example is literally this:

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' => {}
    }
);

that's it, that's the example. copy it, love it, run it. πŸ’–


πŸ‘‘ AUTHOR πŸ‘‘

Enrico Zimuel <enrico.zimuel@elastic.co>

we stan. 🌟


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

This is free software, licensed under:

The Apache License, Version 2.0, January 2004

and that's the whole page, bestie!! this lil doc came to you courtesy of perl v5.38.2, dated 2024-02-04, and the page is known and loved as Search...ference(3pm). mwah. πŸ’‹ go forth and infer. 🧚

πŸ“¦ where this page comes from