clear()
この操作は、現在の EmbeddingList インスタンスから vector embeddings をクリアします。
リクエスト構文
python
clear()
RETURN TYPE:
RETURNS:
空の EmbeddingList インスタンス。
例
python
from pymilvus import EmbeddingList
# create an empty embedding list
embeddingList = EmbeddingList()
# add multiple vector embeddings in a batch
embeddingList.add_batch(
embeddings=[[0.1, 0.2, 0.3, 0.4, 0.5], [0.5, 0.4, 0.3, 0.2, 0.1]]
)
# clear the vector embeddings from the instance
embeddingList.clear()