milvus icon indicating copy to clipboard operation
milvus copied to clipboard

[Bug]: create_index efConstruction out of range: [1, 2147483647]

Open AlexNilone opened this issue 1 year ago • 10 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Environment

- Milvus version:2.3.4
- Deployment mode(standalone or cluster):standalone 
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2):pymilvus  2.3.4
- OS(Ubuntu or CentOS): centos7
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

when I create index ,some errors show

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

2024-01-17 15:20:27,101 - decorators.py[line:128] - ERROR: RPC error: [create_index], <MilvusException: (code=65535, message=efConstruction out of range: [1, 2147483647])>, <Time:{'RPC start': '2024-01-17 15:20:27.095948', 'RPC error': '2024-01-17 15:20:27.101323'}>

But the create index result is successful.

others: pymilvus.exceptions.MilvusException: <MilvusException: (code=65535, message=cannot parse expression: pk in ['447078961691763099'], error: value ''447078961691763099'' in list cannot be casted to Int64)>

Anything else?

No response

AlexNilone avatar Jan 17 '24 08:01 AlexNilone

@AlexNilone could it be pk in [447078961691763099] since pk is a int not a string

xiaofan-luan avatar Jan 18 '24 11:01 xiaofan-luan

/assign @AlexNilone please retry as comments above

/unassign

yanliang567 avatar Jan 19 '24 01:01 yanliang567

if it reproduce to you, please share the reproduce code and data sample

yanliang567 avatar Jan 19 '24 01:01 yanliang567

@AlexNilone could it be pk in [447078961691763099] since pk is a int not a string

是的。它就是一个主键。里面有这个记录但是就是提示这个问题。一会儿说是长度越界了,一会儿说是无法转换为int64

AlexNilone avatar Jan 22 '24 01:01 AlexNilone

if it reproduce to you, please share the reproduce code and data sample

我这边是因为和别的第三方的组件langchainChatChat集成的过程出现的,不是我自己的代码产生的问题

AlexNilone avatar Jan 22 '24 01:01 AlexNilone

/assign @smellthemoon

xiaofan-luan avatar Jan 22 '24 02:01 xiaofan-luan

@AlexNilone If it's convenient, can you describe in detail how to reproduce this phenomenon and what code sample you have used? I have used langchainChatChat, but it seems ok.

smellthemoon avatar Jan 26 '24 06:01 smellthemoon

same issue, but it happened after upgrade langchain-chatchat from 0.2.9 t0 0.2.10. after upgrade, the issue can be reproduced by run 'python init_database.py --recreate-vs' at repo's root directory.

BTW, My milvus version is 2.3.5 and same of pymilvus.

aotsukiqx avatar Jan 29 '24 01:01 aotsukiqx

The root cause is that pk is int64 type, but when generating the query expr, use str directly.

smellthemoon avatar Feb 01 '24 07:02 smellthemoon

related with https://github.com/chatchat-space/Langchain-Chatchat/pull/2868

smellthemoon avatar Feb 01 '24 07:02 smellthemoon

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.

stale[bot] avatar Jun 16 '24 04:06 stale[bot]