Skip to content

.Net: [MEVD] IVectorStore implementations should return the concrete collection types #11759

Closed

Description

@roji

PostgresVectorStore.GetCollection() currently returns the abstraction interface IVectorStoreRecordCollection<TKey, TRecord>; if a user then wishes to use a PG-specific API on the collection, they then must downcast the interface. This makes it awkward to both use the IVectorStore implementation (as a factory for collection instances) and use connector-specific APIs.

We can simply have GetCollection() return a PostgresVectorStoreRecordCollection, and have an explicit interface implementation to implement the required IVectorStore interface method.

Activity

  1. added
    .NETIssue or Pull requests regarding .NET code
    BuildFeatures planned for next Build conference
    msft.ext.vectordataRelated to Microsoft.Extensions.VectorData
    on Apr 27, 2025
  2. moved this to Backlog: Planned in Semantic Kernelon Apr 27, 2025
  3. changed the title [-][MEVD] IVectorStore implementations should return the concrete collection types[/-] [+].Net: [MEVD] IVectorStore implementations should return the concrete collection types[/+] on Apr 27, 2025
  4. added a commit that references this issue on May 4, 2025
    4360b38
  5. moved this from Backlog: Planned to Sprint: In Review in Semantic Kernelon May 4, 2025
  6. added 3 commits that reference this issue on May 4, 2025
    d60fc90
    fe6f603
    955f05f
  7. added a commit that references this issue on May 5, 2025
    280d98b
  8. adamsitnik commented on May 5, 2025

    @adamsitnik
    Member

    Fixed with #11883

  9. moved this from Sprint: In Review to Sprint: Done in Semantic Kernelon May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET codeBuildFeatures planned for next Build conferencemsft.ext.vectordataRelated to Microsoft.Extensions.VectorData

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions