vespa
vespa copied to clipboard
Add secondPhase/globalPhase ranking features
Is your feature request related to a problem? Please describe. Result from first phase ranking is available as firstPhase ranking feature. But result from second phase and global phase is not.
With global phase, secondPhase score is not necessarily the one output in the results. But getting this value as an output feature, or input to global phase, can be valuable. Same with globalPhase in case the final relevance score is determined by custom result processing code.
Describe the solution you'd like Make these available as secondPhase and globalPhase rank features.
Describe alternatives you've considered Can define the firstPhase or globalPhase expressions in a function and use this.