Skip to content

.Net: Python: API for listing/filtering records without similarity search #9892

Closed
@tlecomte

Description

@tlecomte

Describe the bug
IVectorStoreRecordCollection does not have a method to list all the keys stored in the collection. So we are missing a way to compare the content of the collection with the source to find what keys are to be deleted (when they are no longer in the source data).

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/Connectors/VectorData.Abstractions/VectorStorage/IVectorStoreRecordCollection.cs
  2. Observe that there are methods to get by key, delete by key, upsert by key, but no method to list all keys

Expected behavior
We would expect to have something like IVectorStoreRecordCollection.ListAsync. That would allow to find what keys need to be deleted.

Screenshots
N/A

Platform

  • OS: all
  • IDE: N/A
  • Language: C#
  • Source: main branch of repository

Additional context
N/A

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET codeBuildFeatures planned for next Build conferenceSK-H2-PlanningIssues tagged with this label are listed in SK H2 Planning loopmemorymemory connectorneeds discussionIssues that require discussion by the internal Semantic Kernel team before proceedingpythonPull requests for the Python Semantic Kernel

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions