From a66e76f9d41aa1c58206313ba28ea3bc9d9e12c3 Mon Sep 17 00:00:00 2001 From: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com> Date: Mon, 20 Oct 2025 11:39:12 -0400 Subject: [PATCH] Adding embedding type for custom service (#5522) * Adding embedding type * Adding default * Trying to fix formating * Trying to fix formatting 2 (cherry picked from commit 912d733ea2ab3ef381ca91efe22748a9b2aebb82) --- specification/inference/_types/CommonTypes.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index 25d1be939a..308f8dba0e 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -1064,6 +1064,22 @@ 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" + * } + * } + * + * If `embedding_type` is not specified, it defaults to `float`. + * * # sparse_embedding * # For a response like this: *