dsingal0 / mpnet-for-scale

  • Public
  • 9 runs

Run dsingal0/mpnet-for-scale with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
text
string
A single string to encode.
text_batch
string
A JSON-formatted list of strings to encode.
text_file
string
A file containing a JSON array of texts to encode.
batch_size
integer
192
Batch size to use when processing text data.
normalize_embeddings
boolean
True
Whether to normalize embeddings.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "anyOf": [
    {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    {
      "type": "string",
      "format": "uri"
    }
  ],
  "title": "Output"
}