Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding signed byte support from cohere integration #2398

Merged
merged 1 commit into from
Jan 30, 2024
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
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
Loading