|
|
|
@ -51,7 +51,6 @@ for text, embedding in zip(texts, embeddings):
|
|
|
|
|
# 5. 插入数据,确保字段顺序与集合定义一致
|
|
|
|
|
entities = [texts, embeddings] # 第一个列表是 text 字段,第二个列表是 embedding 字段
|
|
|
|
|
collection_manager.insert_data(entities)
|
|
|
|
|
print("数据插入成功。")
|
|
|
|
|
|
|
|
|
|
# 6. 释放连接
|
|
|
|
|
milvus_pool.release_connection(connection)
|
|
|
|
|