Skip to content

.Net: Convert IVectorStore and IVectorStoreCollection from interfaces to base classes#11860

Merged
roji merged 1 commit intomicrosoft:feature-vector-data-preb3from
roji:AbstractBaseClasses
May 2, 2025
Merged

.Net: Convert IVectorStore and IVectorStoreCollection from interfaces to base classes#11860
roji merged 1 commit intomicrosoft:feature-vector-data-preb3from
roji:AbstractBaseClasses

Conversation

@roji
Copy link
Member

@roji roji commented May 2, 2025

Closes #11775

@roji roji requested a review from a team as a code owner May 2, 2025 12:34
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel memory labels May 2, 2025
@github-actions github-actions bot changed the title Convert IVectorStore and IVectorStoreCollection from interfaces to base classes .Net: Convert IVectorStore and IVectorStoreCollection from interfaces to base classes May 2, 2025
@roji roji temporarily deployed to integration May 2, 2025 12:36 — with GitHub Actions Inactive
#pragma warning disable CA1711 // Identifiers should not have incorrect suffix (Collection)
#pragma warning disable CS0618 // IVectorizedSearch is obsolete
public interface IVectorStoreCollection<TKey, TRecord> : IVectorSearch<TRecord>, IVectorizedSearch<TRecord>
public abstract class VectorStoreCollection<TKey, TRecord> : IVectorSearch<TRecord>, IVectorizedSearch<TRecord>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to update the xml docs for this type too. I see some references to interface above.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks.

where TVector : notnull;

/// <inheritdoc />
[Obsolete("Use either SearchEmbeddingAsync to search directly on embeddings, or SearchAsync to handle embedding generation internally as part of the call.")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe not for this PR, but I suppose we can remove this now anyway, since we obsoleted it in the last release.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, absolutely. This - and some other obsoleted APIs - indeed need to be removed.

@roji roji force-pushed the AbstractBaseClasses branch from 5f8d83e to 823c1c5 Compare May 2, 2025 12:53
@roji roji temporarily deployed to integration May 2, 2025 12:53 — with GitHub Actions Inactive
@roji roji merged commit 8273da3 into microsoft:feature-vector-data-preb3 May 2, 2025
11 checks passed
@roji roji deleted the AbstractBaseClasses branch May 2, 2025 13:13
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