From 1d09e415fa5e31ec0b8aeceacd67851c90545854 Mon Sep 17 00:00:00 2001 From: Jonathan Buttner Date: Mon, 20 Oct 2025 11:01:53 -0400 Subject: [PATCH 1/4] Adding embedding type --- specification/inference/_types/CommonTypes.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index b1c2eba6ff..02672b7d1e 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -1064,6 +1064,19 @@ export class CustomResponseParams { * } * } * + * # Elasticsearch supports the following embedding types: + * * float + * * byte + * * bit (or binary) + * + * To specify the embedding type for the response, the `embedding_type` field should be added in the `json_parser` object. Here's an example: + * "response":{ + * "json_parser":{ + * "text_embeddings":"$.data[*].embedding[*]", + * "embedding_type":"bit" + * } + * } + * * # sparse_embedding * # For a response like this: * From fa3c49161f4574023c4e5d7067e00e739af26ed0 Mon Sep 17 00:00:00 2001 From: Jonathan Buttner Date: Mon, 20 Oct 2025 11:10:28 -0400 Subject: [PATCH 2/4] Adding default --- specification/inference/_types/CommonTypes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index 02672b7d1e..bdb854fb61 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -1077,6 +1077,8 @@ export class CustomResponseParams { * } * } * + * If `embedding_type` is not specified, it defaults to `float`. + * * # sparse_embedding * # For a response like this: * From 4a24662ec17bfa15a4b531f999600d705dd9ab42 Mon Sep 17 00:00:00 2001 From: Jonathan Buttner Date: Mon, 20 Oct 2025 11:18:55 -0400 Subject: [PATCH 3/4] Trying to fix formating --- specification/inference/_types/CommonTypes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index bdb854fb61..2306044160 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -1069,7 +1069,8 @@ export class CustomResponseParams { * * byte * * bit (or binary) * - * To specify the embedding type for the response, the `embedding_type` field should be added in the `json_parser` object. Here's an example: + * To specify the embedding type for the response, the `embedding_type` + * field should be added in the `json_parser` object. Here's an example: * "response":{ * "json_parser":{ * "text_embeddings":"$.data[*].embedding[*]", From 2ecdfecc34013997d02f15b5c8688d6525195e03 Mon Sep 17 00:00:00 2001 From: Jonathan Buttner Date: Mon, 20 Oct 2025 11:32:35 -0400 Subject: [PATCH 4/4] Trying to fix formatting 2 --- specification/inference/_types/CommonTypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index 2306044160..bdf417e6b1 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -1079,7 +1079,7 @@ export class CustomResponseParams { * } * * If `embedding_type` is not specified, it defaults to `float`. - * + * * # sparse_embedding * # For a response like this: *