Skip to content

.Net: Collection typing with custom schemas #10877

Closed as not planned
Closed as not planned
@markwallace-microsoft

Description

@markwallace-microsoft

In my scenarios, schemas are always built programmatically based on configuration or user input. This means collections cannot be strongly typed to a specific class.
Currently, I use:

→ var collection = vectorStore.GetCollection<ulong, object>("name", definition);

Setting TRecord to object seems to work but feels hacky. A class extension to abstract/hide this would improve usability, something like this:

→ var collection = vectorStore.GetCollection("name", definition);

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET codeNextSemestermsft.ext.vectordataRelated to Microsoft.Extensions.VectorData

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions