diff --git a/llama-index-integrations/embeddings/llama-index-embeddings-cohere/llama_index/embeddings/cohere/base.py b/llama-index-integrations/embeddings/llama-index-embeddings-cohere/llama_index/embeddings/cohere/base.py index 026de4d22b6b654d195e28fc0b65d0d31beb581b..5dbe42feb903dcf3db755ceaa1815565b252ae19 100644 --- a/llama-index-integrations/embeddings/llama-index-embeddings-cohere/llama_index/embeddings/cohere/base.py +++ b/llama-index-integrations/embeddings/llama-index-embeddings-cohere/llama_index/embeddings/cohere/base.py @@ -164,7 +164,7 @@ class CohereEmbedding(BaseEmbedding): async def _aget_query_embedding(self, query: str) -> List[float]: """Get query embedding async. For query embeddings, input_type='search_query'.""" - return self._get_query_embedding(query, input_type="search_query") + return self._get_query_embedding(query) def _get_text_embedding(self, text: str) -> List[float]: """Get text embedding.""" @@ -172,7 +172,7 @@ class CohereEmbedding(BaseEmbedding): async def _aget_text_embedding(self, text: str) -> List[float]: """Get text embedding async.""" - return self._get_text_embedding(text, input_type="search_document") + return self._get_text_embedding(text) def _get_text_embeddings(self, texts: List[str]) -> List[List[float]]: """Get text embeddings.""" diff --git a/llama-index-integrations/embeddings/llama-index-embeddings-cohere/pyproject.toml b/llama-index-integrations/embeddings/llama-index-embeddings-cohere/pyproject.toml index f4f04c0f244c93c888b4209dc86ec5419784f88e..e3829f03b9804e8dd80cb2306e363700b7f79a99 100644 --- a/llama-index-integrations/embeddings/llama-index-embeddings-cohere/pyproject.toml +++ b/llama-index-integrations/embeddings/llama-index-embeddings-cohere/pyproject.toml @@ -27,7 +27,7 @@ exclude = ["**/BUILD"] license = "MIT" name = "llama-index-embeddings-cohere" readme = "README.md" -version = "0.1.3" +version = "0.1.4" [tool.poetry.dependencies] python = ">=3.8.1,<4.0"