Skip to content

Commit

Permalink
Adding signed byte support from cohere integration (#2398)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner authored Jan 30, 2024
1 parent e66a88c commit 203108f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
31 changes: 23 additions & 8 deletions output/schema/schema.json

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

2 changes: 1 addition & 1 deletion output/typescript/types.ts

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

6 changes: 3 additions & 3 deletions specification/inference/_types/Results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { float } from '@_types/Numeric'
import { float, byte } from '@_types/Numeric'
import { Dictionary } from '@spec_utils/Dictionary'

/**
Expand All @@ -28,9 +28,9 @@ export type SparseVector = Dictionary<string, float>

/**
* Text Embedding results are represented as Dense Vectors
* of floats.
* of floats or signed bytes.
*/
export type DenseVector = Array<float>
export type DenseVector = Array<float> | Array<byte>

export class SparseEmbeddingResult {
embedding: SparseVector
Expand Down

0 comments on commit 203108f

Please sign in to comment.