.Net: Bug: Qdrant Vector Store filtering with Nullable<bool>/bool? fails #11665
Labels
bug
Something isn't working
msft.ext.vectordata
Related to Microsoft.Extensions.VectorData
.NET
Issue or Pull requests regarding .NET code
Describe the bug
When the Filter predicate on
VectorSearchOptions<T>
is a nullable, search fails with an exception.activeOnly
is defined asbool? activeOnly = null
in the methods parameters. Since the if block already ensures its never null, I don't see any issue why that operation should fail.Both
activeOnly
andactiveOnly.Value
result in the exception.Only by changing the method declaration to
bool activeOnly
orbool activeOnly = true
, read non-nullable, the query executes successfully.Imho this is not an expected behaviour and should be fixed, as its a very common way to define predicates that way.
To Reproduce
Throws:
Exception Details
Expected behavior
Operation to succeed.
Platform
The text was updated successfully, but these errors were encountered: