diff --git a/output/schema/schema.json b/output/schema/schema.json index f9757b7ce8..1a8faf8c4b 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -127832,7 +127832,7 @@ "specLocation": "indices/validate_query/IndicesValidateQueryResponse.ts#L23-L30" }, { - "description": "Text Embedding results are represented as Dense Vectors\nof floats or signed bytes.", + "description": "Text Embedding results are represented as Dense Vectors\nof floats.", "kind": "type_alias", "name": { "name": "DenseVector", @@ -127840,29 +127840,14 @@ }, "specLocation": "inference/_types/Results.ts#L29-L33", "type": { - "items": [ - { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "float", - "namespace": "_types" - } - } - }, - { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "byte", - "namespace": "_types" - } - } + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "float", + "namespace": "_types" } - ], - "kind": "union_of" + } } }, { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index f9712b46fe..487c9294f8 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11464,7 +11464,7 @@ export interface IndicesValidateQueryResponse { error?: string } -export type InferenceDenseVector = float[] | byte[] +export type InferenceDenseVector = float[] export interface InferenceInferenceResult { text_embedding?: InferenceTextEmbeddingResult[] diff --git a/specification/inference/_types/Results.ts b/specification/inference/_types/Results.ts index c966b50a0e..e16d49ee9b 100644 --- a/specification/inference/_types/Results.ts +++ b/specification/inference/_types/Results.ts @@ -17,7 +17,7 @@ * under the License. */ -import { float, byte } from '@_types/Numeric' +import { float } from '@_types/Numeric' import { Dictionary } from '@spec_utils/Dictionary' /** @@ -28,9 +28,9 @@ export type SparseVector = Dictionary /** * Text Embedding results are represented as Dense Vectors - * of floats or signed bytes. + * of floats. */ -export type DenseVector = Array | Array +export type DenseVector = Array export class SparseEmbeddingResult { embedding: SparseVector