fix:storage add collection bug (#2615)

Close #2595 
# Description
fix hybrid memory milvus create collection bug 

# How Has This Been Tested?

switch milvus for hybrid storage type.

# Snapshots:

Include snapshots for easier review.

# Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have already rebased the commits and make the commit message
conform to the project standard.
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] Any dependent changes have been merged and published in downstream
modules
This commit is contained in:
magic.chen
2025-04-15 22:48:26 +08:00
committed by GitHub
8 changed files with 83 additions and 54 deletions

View File

@@ -201,3 +201,7 @@ class VectorStoreBase(IndexStoreBase, ABC):
def truncate(self) -> List[str]:
"""Truncate the collection."""
raise NotImplementedError
def create_collection(self, collection_name: str, **kwargs) -> Any:
"""Create the collection."""
raise NotImplementedError