GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenAI::API::Request::Embedding(3) User Contributed Perl Documentation OpenAI::API::Request::Embedding(3)

OpenAI::API::Request::Embedding - embeddings endpoint

    use OpenAI::API::Request::Embedding;
    my $request = OpenAI::API::Request::Embedding->new(
        model => "text-embedding-ada-002",
        input => 'The quick brown fox jumps over the lazy dog.',
    );
    my $res = $request->send();    # or: my $res = $request->send(%args);

This module provides a request class for interacting with the OpenAI API's embedding endpoint. It inherits from OpenAI::API::Request.

Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.

The model to use for generating embeddings.

The input content for which to generate embeddings.

The user identifier for the request.

This module inherits the following methods from OpenAI::API::Request:

OpenAI::API::Request, OpenAI::API::Config

2023-04-09 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.