-
Notifications
You must be signed in to change notification settings - Fork 3.9k
.Net: Convert IVectorStore and IVectorStoreCollection from interfaces to base classes #11860
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
.Net: Convert IVectorStore and IVectorStoreCollection from interfaces to base classes #11860
Conversation
@@ -18,7 +18,7 @@ namespace Microsoft.Extensions.VectorData; | |||
/// </remarks> | |||
#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> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.")] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Closes #11775