Skip to content
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 MEVD: Allow arbitrary provider-specific schema annotations #10359

Open
roji opened this issue Jan 31, 2025 · 0 comments
Open

.Net MEVD: Allow arbitrary provider-specific schema annotations #10359

roji opened this issue Jan 31, 2025 · 0 comments
Labels
memory connector memory msft.ext.vectordata Related to Microsoft.Extensions.VectorData .NET Issue or Pull requests regarding .NET code sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community) triage

Comments

@roji
Copy link
Member

roji commented Jan 31, 2025

Different databases have different schema configuration options that aren't universal, and therefore cannot be captured by the abstraction. We can have an extensibility mechanism to allow such options to be specified via "annotations" on the abstraction's schema definition objects.

One approach would be to have provider-specific subclasses of e.g. VectorStoreRecordDataProperty; the downside of that approach is that the schema can only be used on a single vector database (applications targeting multiple vector databases - probably rare - would have to have two separate copies of the schema).

The other approach would be a bag-of-properties (e.g. Dictionary<string, object?>, along with some user-facing extension methods which allow nice, strongly-typed management of the data in the bag.

/cc @westey-m

@roji roji added .NET Issue or Pull requests regarding .NET code memory memory connector msft.ext.vectordata Related to Microsoft.Extensions.VectorData labels Jan 31, 2025
@evchaki evchaki added the sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community) label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
memory connector memory msft.ext.vectordata Related to Microsoft.Extensions.VectorData .NET Issue or Pull requests regarding .NET code sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community) triage
Projects
None yet
Development

No branches or pull requests

3 participants