Create embedding vector

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
required

Input text to embed. Max length depends on model.

string
required

ID of the embedding model.

string
enum

NV-Embed-QA and E5 models operate in passage or query mode, and thus require the input_type parameter. passage is used when generating embeddings during indexing. query is used when generating embeddings during querying. It is very important to use the correct input_type. Failure to do so will result in large drops in retrieval accuracy. As an alternative, it is possible to add the -query or -passage suffix to the model parameter like NV-Embed-QA-query and not use the input_type field at all for OpenAI API compliance. Please note that the GTE model does not accept the input_type parameter since both the query and passage are processed in the same way.

Allowed:
string
enum
Defaults to float

The format to return the embeddings in.

Allowed:
string
enum
Defaults to NONE

Specifies how inputs longer than the maximum token length of the model are handled. Passing START discards the start of the input. END discards the end of the input. In both cases, input is discarded until the remaining input is exactly the maximum input token length for the model. If NONE is selected, when the input exceeds the maximum input token length an error will be returned.

Allowed:
string

Not implemented, but provided for API compliance. This field is ignored.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
country_code