Skip to content

.Net: Remove custom mappers #11530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

roji
Copy link
Member

@roji roji commented Apr 13, 2025

We obsoleted custom mappers in #11366. However, while work on IEmbeddingGenerator integration (#10492),I realized that for proper embedding generation, we need to generate all embeddings for an UpsertAsync batch in one call, rather than one-by-one (which would be many roundtrips). This means that mapping can't happen record by record, but must work on a batch, breaking the current design of IVectorStoreRecordMapper.

As IVectorStoreRecordMapper is getting in the way, and custom mappers is a feature we don't think many people are using, this PR removes support for it (making it obsolete-with-error).

@roji roji requested a review from westey-m April 13, 2025 09:53
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel memory labels Apr 13, 2025
@github-actions github-actions bot changed the title Remove custom mappers .Net: Remove custom mappers Apr 13, 2025
@roji roji force-pushed the ReallyRemoveCustomMappers branch from dcaa9f0 to aadedc9 Compare April 13, 2025 10:15
@roji roji force-pushed the ReallyRemoveCustomMappers branch 3 times, most recently from 588eb83 to a359fcc Compare April 13, 2025 10:26
@roji roji force-pushed the ReallyRemoveCustomMappers branch from a359fcc to e3110ec Compare April 13, 2025 10:34
@roji roji force-pushed the ReallyRemoveCustomMappers branch from e3110ec to a8e0875 Compare April 13, 2025 10:48
@roji roji marked this pull request as ready for review April 13, 2025 11:01
@roji roji requested a review from a team as a code owner April 13, 2025 11:01
@roji roji merged commit d1a8b51 into microsoft:feature-vector-data-preb2 Apr 14, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel memory .NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants