-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: pymilvus.exceptions.MilvusException: <MilvusException: (code=5, message=the length (1748) of 0th string exceeds max length (1746): expected=valid length string, actual=string length exceeds max length: invalid parameter)> #27470
Comments
you have to specify large max length. |
@xiaofan-luan I am using this code to store the embeddings of text so I can ask question related to that content |
it is defined when you create collection. |
I also got exactly this error while trying https://milvus.io/docs/integrate_with_langchain.md here i updated chunk_size=1024 to chunk_size=2048. But having below issues
When I go to data preview in Attu it gives this error : failed to search: attempt #0: fail to get shard leaders from QueryCoord: collection=445025252223672443: collection not loaded: unrecoverable error embeddings = OpenAIEmbeddings() |
/assign @AnthonyTsu1984 |
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. |
[insert_rows], <MilvusException: (code=0, message=the length (68362) of 10250th string exceeds max length (65536): expected=valid length string, actual=string length exceeds max length: invalid parameter)>, <Time:{'RPC start': '2024-07-08 23:21:27.634777', 'RPC error': '2024-07-08 23:21:28.962498'}> ` def store_chunk_list(self, chunk_list: List[ChunkedItem], collection_name: str, model_name: str,
pymilvus==2.4.3 any suggestion? |
@gsantopaolo it looks like you defined a varchar field while you are trying to insert a json value to it? |
Is there an existing issue for this?
Environment
Current Behavior
pymilvus.exceptions.MilvusException: <MilvusException: (code=5, message=the length (1748) of 0th string exceeds max length (1746): expected=valid length string, actual=string length exceeds max length: invalid parameter)>
Expected Behavior
It should be execute and add the data int Milvus db
Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: