Skip to content

.Net: Inconsistent results when creating a collection that already exists #10878

@markwallace-microsoft

Description

@markwallace-microsoft

Different storage implementations handle this case differently:

  • Most return OK, without checking if the existing collection matches the required schema.
  • InMemoryVectorStore throws an exception.

Suggestion:

  • Provide an option to fail explicitly if a collection already exists, so the client can handle the scenario and doesn’t risk using incorrect schemas
  • Allow schema validation when reusing an existing collection. This might be hard, the previous point would mitigate the problem.

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

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions