Skip to content

Commit dc80ba5

Browse files
szabostevekosabogi
andauthored
Adds new embedding_type values to PUT Cohere inference endpoint (#4403)
* Adds new embedding_type values to PUT Cohere inference endpoint. * Adds values to the CohereEmbeddingType enum --------- Co-authored-by: kosabogi <105062005+kosabogi@users.noreply.github.com> Co-authored-by: kosabogi <boglarka.kosa@elastic.co>
1 parent d20fab7 commit dc80ba5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

specification/inference/_types/CommonTypes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@ export class CohereServiceSettings {
585585
api_key: string
586586
/**
587587
* For a `text_embedding` task, the types of embeddings you want to get back.
588+
* Use `binary` for binary embeddings, which are encoded as bytes with signed int8 precision.
589+
* Use `bit` for binary embeddings, which are encoded as bytes with signed int8 precision (this is a synonym of `binary`).
588590
* Use `byte` for signed int8 embeddings (this is a synonym of `int8`).
589591
* Use `float` for the default float embeddings.
590592
* Use `int8` for signed int8 embeddings.
@@ -625,6 +627,8 @@ export enum CohereServiceType {
625627
}
626628

627629
export enum CohereEmbeddingType {
630+
binary,
631+
bit,
628632
byte,
629633
float,
630634
int8

0 commit comments

Comments
 (0)