15 lines
259 B
Plaintext
15 lines
259 B
Plaintext
from pymilvus import MilvusClient, DataType
|
|
import numpy as np
|
|
|
|
client = MilvusClient(
|
|
uri="http://localhost:19530"
|
|
)
|
|
cname = 'nuggets_so400m'
|
|
client.get_collection_stats('nuggets_so400m')
|
|
|
|
|
|
|
|
vec = np.random.random(1152).astype(np.float16)
|
|
|
|
|
|
client.search |