eliaporciani opened a new pull request, #12253:
URL: https://github.com/apache/lucene/pull/12253
### Description
Add function queries for computing similarity scores between knn vectors.
Example:
```java
var v1 = new DenseVectorFloatConstValueSource(List.of(1, 2, 4));
var v2 = new DenseVectorFloatFieldSource("knnFloatField");
var functionQuery = new FunctionQuery(
new
FloatDenseVectorSimilarityFunction(VectorSimilarityFunction.EUCLIDEAN, v1, v2));
```
link to the issue: https://github.com/apache/lucene/issues/12252
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]