最近在做GPT相关的需求,需要把资料库的文字内容提取出来,然后按照语义分段,每一段计算向量,记录在文本文件里或者向量数据库里。

这里需要用到向量数据库,把原始资料embedding后存储到矢量数据库。选型了Milvus,因为文档看起来比较友好,也提供了docker的部署方式。但在使用过程中非常的劝退.

创建一个Collection后,schema是无法更改的,无法新增字段等。

在issue区看到提问how to modify the collection schema once collection is created and is not empty,只能说暂时无能为力。

根据社区负责人的回复:

1
2
Current versions of Milvus cannot support collection schema change.
In our https://wiki.lfaidata.foundation/display/MIL/Feature+plans, the feature "dynamic schema change" is in v3.0(which will be released at the end of this year)

插入后的数据是无法更新的

1
2
In versions < 2.2.x, update = delete + insert
We provide a new method upsert() in v2.3.0(not stable now) for update.

Milvus看起里还不太成熟,就看愿不愿意陪他一起成长了。