You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.Net: [MEVD] IVectorStore implementations should return the concrete collection types #11759
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.
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
Activity
[-][MEVD] IVectorStore implementations should return the concrete collection types[/-][+].Net: [MEVD] IVectorStore implementations should return the concrete collection types[/+]Add covariant return types to VectorStore.GetCollection() implementat…
Add covariant return types to VectorStore.GetCollection() implementat…
Add covariant return types to VectorStore.GetCollection() implementat…
Add covariant return types to VectorStore.GetCollection() implementat…
.Net: Add covariant return types to VectorStore.GetCollection() imple…
adamsitnik commentedon May 5, 2025
Fixed with #11883