向量数据库Milvus

向量数据库Milvus

声明:该文档主要解决学习问题,具体技术细节请参考代码。

参考文章:

Windows安装部署向量数据库(Milvus)_milvus windows-CSDN博客

docker compose up -d这一步会遇到pulling不下来的问题,这时候需要修改配置文件:

Daemon configuration

You may configure proxy behavior for the daemon in the daemon.json file, or using CLI flags for the --http-proxy or --https-proxy flags for the dockerd command. Configuration using daemon.json is recommended.

{
  "proxies": {
    "http-proxy": "http://proxy.example.com:3128",
    "https-proxy": "https://proxy.example.com:3129",
    "no-proxy": "*.test.example.com,.example.org,127.0.0.0/8"
  }
}

After changing the configuration file, restart the daemon for the proxy configuration to take effect:

$ sudo systemctl restart docker

参考Configure the daemon to use a proxy | Docker Docs

然后手动重启docker desktop就可以了。

Milvus学习

首先启动魔法,然后打开docker,在docker中启动milvus,

最后打开attu。

配置环境

  • 需要 Python 3.7 或更高版本。

  • 需要安装 Google protobuf。你可以使用命令 pip3 install protobuf==3.20.0 来安装。

  • 需要安装 grpcio-tools。你可以使用命令 pip3 install grpcio-tools 来安装。

  • 通过pip安装pyMilvus:pip install pymilvus

    pymilvus · PyPI

  • 通过python3 -c "from pymilvus import Collection来验证PyMilvus安装正确,运行该指令时不会触发任何异常。

Milvus基础使用

milvus基础使用参考Index – Milvus向量库中文文档 (milvus-io.com)

数据处理

参考了DataWhale的llm-universe/docs/C3/3.数据处理.md at main · Halukisan/llm-universe (github.com)

我们将知识库源数据放置在../data_base/knowledge_db 目录下。

详细内容参考注释

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

HalukiSan

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值