# Cohere Reranker not working in APi anymore

**URL:** <https://forum.weaviate.io/t/cohere-reranker-not-working-in-api-anymore/8161>\
**Category:** Support\
**Tags:** bug\
**Created:** [November 25, 2024, 3:25pm UTC](https://forum.weaviate.io/t/cohere-reranker-not-working-in-api-anymore/8161 "2024-11-25T15:25:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kostjanix2](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/kostjanix2/32/2980_2.png) [@Kostjanix2](https://forum.weaviate.io/u/Kostjanix2)\
**Post date:** [November 25, 2024, 3:25pm UTC](https://forum.weaviate.io/t/cohere-reranker-not-working-in-api-anymore/8161/1 "2024-11-25T15:25:29Z")

</div>

### Description

Hello I have used the Cohere reranker with the Rest Api from Weaviate to fetch documents and use them. Suddenly a few Weeks ago, it stopped working for all our collections, classes and calls. We run into this error:

```auto
{
	"errors": [
		{
			"locations": [
				{
					"column": 19600,
					"line": 1
				}
			],
			"message": "Cannot query field \"rerank\" on type \"ClassAdditional\".",
			"path": null
		}
	]
}

```

As before we add the X-Cohere-Api-Key and our JSON Body did not change:

```auto
{
    "query":"{Get{Class(limit:100 nearVector:{vector:}){title url imageUrl description short_description color manufacturer _additional{ distance rerank(property:\"description\",query:\"grill\"){score}}}}}"
}

```

Did something change is the api and how to find out where the Problem is coming from?

### Server Setup Information

- Weaviate Server Version:  
1.24.25
- Deployment Method: Just an api http call

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [November 26, 2024, 8:28pm UTC](https://forum.weaviate.io/t/cohere-reranker-not-working-in-api-anymore/8161/2 "2024-11-26T20:28:28Z")

</div>

hi @Kostjanix2 !! Welcome to our community 🤗

This is probably because you don’t have `rerank-cohere` in your ENABLE\_MODULES.

I was able to create this exact same error message both with client and graphql under this scenario:

Graphql

> {  
> “errors”: [  
> {  
> “locations”: [  
> {  
> “column”: 5,  
> “line”: 6  
> }  
> ],  
> “message”: “Cannot query field "rerank" on type "TestAdditional".”,  
> “path”: null  
> }  
> ]  
> }

python client:

> {grpc\_message:“explorer: get class: extend: unknown capability: rerank”, grpc\_status:2, created\_time:“2024-11-26T17:25:51.248127-03:00”}"

Let me know if this helps!

---

<div class="post-metadata">

**Author:** ![Kostjanix2](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/kostjanix2/32/2980_2.png) [@Kostjanix2](https://forum.weaviate.io/u/Kostjanix2)\
**Post date:** [November 27, 2024, 2:18pm UTC](https://forum.weaviate.io/t/cohere-reranker-not-working-in-api-anymore/8161/3 "2024-11-27T14:18:13Z")

</div>

Thanks for your message @DudaNogueira !  
I think we already have cohere active in our Modules. At least I can see following Enabled Modules:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/2X/7/70d3eb88e1040353737238592b7d0fff0a0e34af.png)  
I am not sure if we actually have the wrong ones active (reranker-cohere instead of rerank-cohere? But I am sure that a few weeks ago it worked without changing anything

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [November 27, 2024, 5:16pm UTC](https://forum.weaviate.io/t/cohere-reranker-not-working-in-api-anymore/8161/4 "2024-11-27T17:16:58Z")

</div>

Ah, ok.

When the issue is with an instance in our cloud, the best place to ask for support is following this for opening a support ticket:

> **[Weaviate Cloud](https://console.weaviate.cloud/signin?callbackUrl=https%3A%2F%2Fconsole.weaviate.cloud%2Fsupport)**
>
> Weaviate Cloud

That way we can know exactly what is the instance you are working with.

Thanks!
