diff --git a/semantic_router/encoders/cohere.py b/semantic_router/encoders/cohere.py index 8b747e9726f2cac813a89fb629b9159ac9773ad9..935195e6d9efd630124d06caa55c4914ed4dc3a7 100644 --- a/semantic_router/encoders/cohere.py +++ b/semantic_router/encoders/cohere.py @@ -57,6 +57,6 @@ class CohereEncoder(BaseEncoder): "Handling of EmbedByTypeResponseEmbeddings is not implemented." ) else: - raise ValueError("Unexpected response type from Cohere API") + raise ValueError(f"Unexpected response type from Cohere API: type(embeds) = {type(embeds)}") except Exception as e: raise ValueError(f"Cohere API call failed. Error: {e}") from e