IEIT-Yuan/Yuan-2.0

联合向量数据库和 Llama-index 的报错

Closed this issue · 0 comments

【来源】Yuan2.0大模型,联合向量数据库和Llama-index,助力检索增强生成技术_yuan-2.0-CSDN博客:https://blog.csdn.net/2401_82700030/article/details/136670125

Python 3.10.12
pip 24.0
docker-compose 1.29.2
Llama-index 0.10.25
pymilvus 2.4.0

root@username:/mnt/d/Yuan-2# python3 milvus.py

=== start connecting to Milvus ===

RPC error: [__internal_register], <MilvusException: (code=800, message=database not found[database=yuan])>, <Time:{'RPC start': '2024-04-02 09:07:58.215392', 'RPC error': '2024-04-02 09:07:58.219092'}>
Failed to create new connection using: 998a39254278483dafa7307080c97267
Traceback (most recent call last):
File "/mnt/d/Yuan-2/milvus.py", line 13, in
client = MilvusClient(uri="http://172.20.84.42:19530", db_name="yuan")
File "/usr/local/lib/python3.10/dist-packages/pymilvus/milvus_client/milvus_client.py", line 53, in init
self._using = self._create_connection(
File "/usr/local/lib/python3.10/dist-packages/pymilvus/milvus_client/milvus_client.py", line 639, in _create_connection
raise ex from ex
File "/usr/local/lib/python3.10/dist-packages/pymilvus/milvus_client/milvus_client.py", line 636, in _create_connection
connections.connect(using, user, password, db_name, token, uri=uri, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymilvus/orm/connections.py", line 420, in connect
connect_milvus(**kwargs, user=user, password=password, token=token, db_name=db_name)
File "/usr/local/lib/python3.10/dist-packages/pymilvus/orm/connections.py", line 371, in connect_milvus
gh._wait_for_channel_ready(timeout=timeout)
File "/usr/local/lib/python3.10/dist-packages/pymilvus/client/grpc_handler.py", line 151, in _wait_for_channel_ready
raise e from e
File "/usr/local/lib/python3.10/dist-packages/pymilvus/client/grpc_handler.py", line 144, in _wait_for_channel_ready
self._setup_identifier_interceptor(self._user, timeout=timeout)
File "/usr/local/lib/python3.10/dist-packages/pymilvus/client/grpc_handler.py", line 262, in _setup_identifier_interceptor
self._identifier = self.__internal_register(user, host, timeout=timeout)
File "/usr/local/lib/python3.10/dist-packages/pymilvus/decorators.py", line 147, in handler
raise e from e
File "/usr/local/lib/python3.10/dist-packages/pymilvus/decorators.py", line 143, in handler
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymilvus/decorators.py", line 182, in handler
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymilvus/decorators.py", line 122, in handler
raise e from e
File "/usr/local/lib/python3.10/dist-packages/pymilvus/decorators.py", line 87, in handler
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymilvus/decorators.py", line 222, in handler
raise e from e
File "/usr/local/lib/python3.10/dist-packages/pymilvus/decorators.py", line 212, in handler
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymilvus/client/grpc_handler.py", line 1936, in __internal_register
check_status(response.status)
File "/usr/local/lib/python3.10/dist-packages/pymilvus/client/utils.py", line 60, in check_status
raise MilvusException(status.code, status.reason, status.error_code)
pymilvus.exceptions.MilvusException: <MilvusException: (code=800, message=database not found[database=yuan])>