joehoover / staging-all-mpnet-base-v2

  • Public
  • 172 runs

Run joehoover/staging-all-mpnet-base-v2 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.
profile_memory
boolean
False
Whether to profile memory usage. If 'True', memory usage will be printed to logs.

Output schema

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

Schema
{
  "type": "array",
  "items": {
    "type": "object",
    "title": "Embedding",
    "required": [
      "embedding"
    ],
    "properties": {
      "embedding": {
        "type": "array",
        "items": {
          "type": "number"
        },
        "title": "Embedding"
      }
    }
  },
  "title": "Output"
}