milvus报错:MilvusException: (code=65535, message=the length(384) of float data should divide the dim(1024))

一,报错信息:

MilvusException: (code=65535, message=the length(384) of float data should divide the dim(1024))

原因:

代码中定义的vector的dim是1024,但模型的长度是384,设置为两者一致即可

 

二,解决:

FieldSchema(name="content_vector", dtype=DataType.FLOAT_VECTOR, dim=384),

 

posted @ 2025-11-16 13:10  刘宏缔的架构森林  阅读(2)  评论(0)    收藏  举报