NAME

Langertha::Role::Embedding - Role for APIs with embedding functionality

VERSION

version 0.305

embedding_model

The model name to use for embedding requests. Lazily defaults to default_embedding_model if the engine provides it, otherwise falls back to the general model attribute from Langertha::Role::Models.

embedding

my $request = $engine->embedding($text);

Builds and returns an embedding HTTP request object for the given $text. Use "simple_embedding" to execute the request and get the result directly.

simple_embedding

my $vector = $engine->simple_embedding($text);

Sends an embedding request for $text and returns the embedding vector. Blocks until the request completes.

SEE ALSO

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/langertha/issues.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <torsten@raudssus.de> https://raudss.us/

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.