A stateless application which reranks results obtained from another Vespa application. While this does not result in good performance and is not recommended for production, it is useful when you want to quickly do ranking experiments without rewriting application data.
- Make sure the application to rerank has a token endpoint.
vespa clone examples/reranker- Add your endpoint to the reranker config in
src/main/application/services.xmland optionally change reranker parameters (these can also be passed in the request). - Add the model(s) to use for reranking to the
modelsdirectory. vespa config set application my-tenant.reranker.defaultvespa auth certmvn install && vespa deploy- Issue queries. All request parameters including the token header will be passed through to the application to be reranked.
Example requests:
Minimal:
vespa query "select * from sources * where album contains 'to'" --header "Authorization: Bearer [your token]"
Passing all reranking parameters:
vespa query "select * from sources * where album contains 'to'" --header "Authorization: Bearer [your token]" rerank.model=xgboost_model_example rerank.hits=100 profile=firstPhase