diff options
Diffstat (limited to 'config-model/src/test')
-rw-r--r-- | config-model/src/test/derived/globalphase_token_functions/rank-profiles.cfg | 4 | ||||
-rw-r--r-- | config-model/src/test/derived/globalphase_token_functions/test.sd | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/config-model/src/test/derived/globalphase_token_functions/rank-profiles.cfg b/config-model/src/test/derived/globalphase_token_functions/rank-profiles.cfg index 33381060178..bf47dba9a71 100644 --- a/config-model/src/test/derived/globalphase_token_functions/rank-profiles.cfg +++ b/config-model/src/test/derived/globalphase_token_functions/rank-profiles.cfg @@ -32,9 +32,11 @@ rankprofile[].fef.property[].value "tensor<float>(d0[1],d1[128])" rankprofile[].fef.property[].name "vespa.rank.globalphase" rankprofile[].fef.property[].value "rankingExpression(globalphase)" rankprofile[].fef.property[].name "rankingExpression(globalphase).rankingScript" -rankprofile[].fef.property[].value "onnx(my_ranking_model).score{d0:0}" +rankprofile[].fef.property[].value "onnx(my_ranking_model).score{d0:(attribute(outputidx))}" rankprofile[].fef.property[].name "vespa.match.feature" rankprofile[].fef.property[].value "attribute(tokens)" +rankprofile[].fef.property[].name "vespa.match.feature" +rankprofile[].fef.property[].value "attribute(outputidx)" rankprofile[].fef.property[].name "vespa.globalphase.rerankcount" rankprofile[].fef.property[].value "1000" rankprofile[].fef.property[].name "vespa.type.attribute.tokens" diff --git a/config-model/src/test/derived/globalphase_token_functions/test.sd b/config-model/src/test/derived/globalphase_token_functions/test.sd index f8cc8863ad1..a1d14258aab 100644 --- a/config-model/src/test/derived/globalphase_token_functions/test.sd +++ b/config-model/src/test/derived/globalphase_token_functions/test.sd @@ -8,6 +8,9 @@ schema test { field tokens type tensor(d0[128]) { indexing: attribute } + field outputidx type double { + indexing: attribute + } } fieldset default { fields: title @@ -35,7 +38,7 @@ schema test { } global-phase { rerank-count: 1000 - expression: onnx(my_ranking_model).score{d0:0} + expression: onnx(my_ranking_model).score{d0:attribute(outputidx)} } } |