Cohere Reranker not working in APi anymore

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:

{
	"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:

{
    "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

hi @Kostjanix2 !! Welcome to our community :hugs:

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!

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


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

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:

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

Thanks!