semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Operators on ScoredValue produce inconsistent answers

Open stephentoub opened this issue 1 year ago • 3 comments

ScoredValue<T> contains both a T and a double. Its == and != operators factor in equality of both the T and the double, but its <, <=, >=, and > operators only factor in the double. That means, for example, <= might return true in situations where == returns false, if the T in the two instances being compared isn't equal.

stephentoub avatar Apr 24 '23 14:04 stephentoub

@awharrison-28 FYI

dluc avatar Apr 25 '23 00:04 dluc

@dmytrostruk

awharrison-28 avatar Apr 26 '23 00:04 awharrison-28

Thanks, I added this issue to our backlog.

dmytrostruk avatar May 02 '23 11:05 dmytrostruk