Milvus
Zilliz
< Docs
  • Python
    • MilvusClient

clear()

This operation clears the vector embeddings from the current EmbeddingList instance.

Request Syntax

clear()

RETURN TYPE:

EmbeddingList

RETURNS:

An empty EmbeddingList instance.

Examples

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()

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?