Skip to content

Commit

Permalink
Results are floats not doubles
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle committed Nov 10, 2023
1 parent 7662c98 commit 13b9e8e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 137 deletions.
112 changes: 2 additions & 110 deletions output/schema/schema.json

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

26 changes: 4 additions & 22 deletions output/schema/validation-errors.json

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

4 changes: 2 additions & 2 deletions 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,21 +17,21 @@
* under the License.
*/

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

/**
* Sparse Embedding tokens are represented as a dictionary
* of string to double.
*/

export type SparseVector = Dictionary<string, double>
export type SparseVector = Dictionary<string, float>

/**
* Text Embedding results are represented as Dense Vectors
* of doubles.
*/
export type DenseVector = Array<double>
export type DenseVector = Array<float>

/**
* Inference result is the union of all the result types
Expand Down

0 comments on commit 13b9e8e

Please sign in to comment.