Skip to content

.Net: Obsolete custom mappers #11366

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 3, 2025

This obsoletes the public-facing parts of custom mappers, and suppresses internal warnings around them. After we release the next preview, we'll be removing these.

First step of #11129

@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 3, 2025
@github-actions github-actions bot changed the title Obsolete custom mappers .Net: Obsolete custom mappers Apr 3, 2025
@roji roji temporarily deployed to integration April 3, 2025 21:09 — with GitHub Actions Inactive
@roji roji marked this pull request as ready for review April 3, 2025 21:26
@roji roji requested a review from a team as a code owner April 3, 2025 21:26
@roji roji merged commit 0a1b83c into microsoft:feature-vector-data-preb2 Apr 4, 2025
17 checks passed
roji added a commit that referenced this pull request Apr 14, 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).
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