Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions specification/inference/text_embedding/TextEmbeddingRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ export interface Request extends RequestBase {
* Either a string or an array of strings.
*/
input: string | Array<string>
/**
* The input data type for the text embedding model. Possible values include:
* * `SEARCH`
* * `INGEST`
* * `CLASSIFICATION`
* * `CLUSTERING`
* Not all services support all values. Unsupported values will trigger a validation exception.
* Accepted values depend on the configured inference service, refer to the relevant service-specific documentation for more info.
*
* > info
* > The `input_type` parameter specified on the root level of the request body will take precedence over the `input_type` parameter specified in `task_settings`.
*/
input_type?: string
/**
* Optional task settings
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ method_request: 'POST _inference/text_embedding/my-cohere-endpoint'
value: |-
{
"input": "The sky above the port was the color of television tuned to a dead channel.",
"task_settings": {
"input_type": "ingest"
}
"input_type": "ingest"
}
Loading