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.
Different storage implementations handle this case differently:
Suggestion: