Closed louisoutin closed 1 year ago
Actually, the timeout happened mainly because I was doing a batched query with a batch size quite large. Fixed after reducing it. And I found the rank
operator (https://docs.vespa.ai/en/reference/query-language-reference.html#ranked) which is what I was looking for.
Hello,
I have documents indexed in vespa, with 1 field containing semantic embeddings. In would like to make a query using ANN on vectors ONLY but I want to use the query text on the reranking phase to compute some text similarity score in addition to the closeness vector score. Example:
RankProfile:
Query:
Currently, if I run that query, the returned vector will only be scored using closeness(text_embedding) . But bm25(text) will have his score = 0 always.
To fix it, I have to append
or userQuery()
to the yql query string. However, it slow down the query and raise a Timeout exception. Is there a way to have access to user query in the first_phase ranking without addinguserQuery()
? to only use it for reranking and not 0 phase matching.