Skip to content

Conversation

crwells
Copy link

@crwells crwells commented Sep 4, 2025

Motivation and Context (Why the change? What's the scenario?)

For SQL Server 2025, the PrepareGetSimilarRecordsListQuery() method produces a query that does not account for the index that is being searched. This only happens when NativeVectorSearch is true and the VectorQueryProvider is used. The DefaultQueryProvider does not suffer from the same problem (though may benefit from the same fix performance-wise) because it links to tables that are index-specific, like [{embeddingstable}_{index}] which naturally limits the memories via the inner join.

High level description (Approach, Design)

Simply add in the [collection]=@index criteria.

@crwells crwells requested a review from dluc as a code owner September 4, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant