Search...ference(3pm)
π 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. π
π 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
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
- debian trixie: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu noble: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu resolute: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu stonking: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms