diff --git a/integrations/cohere/src/haystack_integrations/components/embedders/cohere/utils.py b/integrations/cohere/src/haystack_integrations/components/embedders/cohere/utils.py index 7b9c90730..9c16ecee7 100644 --- a/integrations/cohere/src/haystack_integrations/components/embedders/cohere/utils.py +++ b/integrations/cohere/src/haystack_integrations/components/embedders/cohere/utils.py @@ -46,8 +46,6 @@ def get_response( response = cohere_client.embed(batch, model=model_name, input_type=input_type, truncate=truncate) for emb in response.embeddings: all_embeddings.append(emb) - embeddings = [list(map(float, emb)) for emb in response.embeddings] - all_embeddings.extend(embeddings) if response.meta is not None: metadata = response.meta