Skip to content

Bug: SqliteVectorStoreRecordCollection.VectorizedSearchAsync() Filter usage throws exception #11132

@philipag

Description

@philipag

The following code is wrong:

 if (searchOptions.Filter is not null)
        {
            if (searchOptions.Filter is not null)
            {
                throw new ArgumentException("Either Filter or OldFilter can be specified, but not both");
            }

            // Old filter, we translate it to a list of SqliteWhereCondition, and merge these into the conditions we already 

The first line should be:

if (searchOptions.OldFilter is not null)

Otherwise using Filter instead of OldFilter always throws.

Metadata

Metadata

Assignees

Labels

BuildFeatures planned for next Build conferencebugSomething isn't workingmsft.ext.vectordataRelated to Microsoft.Extensions.VectorData

Type

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions