diff --git a/semantic_router/encoders/cohere.py b/semantic_router/encoders/cohere.py index b49769eb4c1b32c36467d299f4905477b522bb1a..6f90e61e68646c7100b8f94225c4c3d7201aff0e 100644 --- a/semantic_router/encoders/cohere.py +++ b/semantic_router/encoders/cohere.py @@ -42,7 +42,7 @@ class CohereEncoder(BaseEncoder): raise ValueError("Cohere client is not initialized.") try: embeds = self.client.embed( - docs, input_type=self.input_type, model=self.name + texts=docs, input_type=self.input_type, model=self.name ) return embeds.embeddings except Exception as e: