Hello Iram.
The latter one was recently added into Lucene "all vectors within a radius"
https://github.com/apache/lucene/pull/12679
Regarding the former, I suppose it can be achieved with reranking.

On Tue, Dec 26, 2023 at 1:56 AM Iram Tariq <iram.ta...@northbaysolutions.net>
wrote:

> Hi All,
>
> Right now I am using the cosine similarity function for dense vectors.
> Is there any way I can override the existing function or write a
> custom method to give a high score to the latest documents.
>
>
> Also KNN Query Parser returns topK results matched with the input, but is
> there anyway possible we can get all documents for which similarity score
> is greater than a specific number?
>
> Any sort of answer will be helpful. Looking forward for the feedback.
>
> Regards,
>
>
> Iram Tariq | Software Architect
>
> NorthBay
>
> Direct:  +1 (902) 329-7329
>
> iram.ta...@northbaysolutions.net
>
> www.northbaysolutions.com
>


-- 
Sincerely yours
Mikhail Khludnev

Reply via email to