Sandhya Kapoor
Sandhya Kapoor

Reputation: 170

Watson Retrieve and Rank does not return any document though Content and Questions are populated

I am getting Error when asking "What is JUnit? question, Ranker is specified

Retrieve and Rank failed to handle question even though documents and training questions with answers are available as shown follows : enter image description here

and the Questions are as follows : enter image description here

Thank you, Sandhya

Upvotes: 0

Views: 186

Answers (1)

dalelane
dalelane

Reputation: 2765

The full error being returned by the Retrieve and Rank service that is causing this is:

Can not rerank results. Verify your query does not contain any special characters or that your schema has not changed in incompatible ways

(Although this isn't being well handled by the UI. We'll improve that, so thanks for letting us know.)

What it means is that you're using submitting queries and requesting that they be sorted by a ranker that was trained/created with a different collection, with a different configuration and schema. That doesn't work.

It is possible to use a ranker across different collections, but not in such circumstances. As I say, we'll improve the UI to make this clearer in future.

But for now, the reason you're not getting results is because that ranker you're trying to use cannot be used with this particular collection, because they are incompatible. Once you've collected enough of a ground truth to train a ranker for this particular collection, with it's own config and schema, you'll be able to submit queries using that new ranker just fine.

Upvotes: 1

Related Questions