1.创建表
milvus_cli
connect -uri http://192.168.1.134:19530 -t root:Milvus
use database -d db_test
create collection -c tb_test02 -f id:INT64:primary_field -fvector:FLOAT_VECTOR:128 -f a1:INT64:a1 -f b1:VARCHAR:32 -p id -A -d 'car_collection'
2.准备数据
3.导入到表
insert -c tb_test02 '/tmp/tb_test02.csv'
milvus_cli > insert -c tb_test02 '/tmp/tb_test02.csv'
Reading file from local path.
Opening csv file(30502 bytes)...
Error!
UnicodeDecodeError 'utf-8' codec can't decode byte 0xd5 in position 5087: invalid continuation byte
办法:
1.字符类型(有中文字符)加上""
2.wps office另存为utf8格式
标签:导入,file,test02,csv,tb,id,milvus From: https://www.cnblogs.com/hxlasky/p/18530747