[GH-ISSUE #5622] issue: Milvus - failed to create index on collection #14058

Closed
opened 2026-04-19 20:33:11 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @aouicher on GitHub (Sep 23, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5622

Bug Report

Installation Method

Docker

Environment

  • Open WebUI Version: 0.3.23

  • Operating System: Amazon Linux / Red Hat Enterprise Linux

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Description

I'm encountering an error when trying to create an index in Milvus after uploading documents to OpenWebUI. The collection is successfully created, but the index creation fails.

Reproduction Details

Upload a document (XLS or CSV file) to OpenWebUI
Attempt to create a prompt about the uploaded document

Logs and Screenshots

DEBUG [pymilvus.milvus_client.milvus_client] Created new connection using: 7f116f666a75408580eb200a667b1e27

DEBUG [pymilvus.milvus_client.milvus_client] Successfully created collection: open_webui_c69e46a84c2f4cffc25f529588d460cf61b5f75add2a3aad4a0a47affd0d0e6

ERROR [pymilvus.milvus_client.milvus_client] Failed to create an index on collection: open_webui_c69e46a84c2f4cffc25f529588d460cf61b5f75add2a3aad4a0a47affd0d0e6

ERROR [pymilvus.decorators] RPC error: [create_index], <MilvusException: (code=1100, message=efConstruction out of range: [1, 2147483647]: invalid parameter[expected=valid index params][actual=invalid index params])>, <Time:{'RPC start': '2024-09-23 06:10:04.605969', 'RPC error': '2024-09-23 06:10:04.611462'}>

pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=efConstruction out of range: [1, 2147483647]: invalid parameter[expected=valid index params][actual=invalid index params])>

ERROR [pymilvus.milvus_client.milvus_client] Failed to search collection: open_webui_c69e46a84c2f4cffc25f529588d460cf61b5f75add2a3aad4a0a47affd0d0e6

You can see that collection is created but without index on Milvus
image

Additional Information

The error occurs with all file types
Using default Milvus configuration settings
The collection is successfully created, but the index creation fails

Note

Any assistance or guidance on resolving this issue would be greatly appreciated. Please let me know if you need any additional information.

Originally created by @aouicher on GitHub (Sep 23, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/5622 # Bug Report ## Installation Method Docker ## Environment - **Open WebUI Version:** 0.3.23 - **Operating System:** Amazon Linux / Red Hat Enterprise Linux **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Description I'm encountering an error when trying to create an index in Milvus after uploading documents to OpenWebUI. The collection is successfully created, but the index creation fails. ## Reproduction Details Upload a document (XLS or CSV file) to OpenWebUI Attempt to create a prompt about the uploaded document ## Logs and Screenshots ``` DEBUG [pymilvus.milvus_client.milvus_client] Created new connection using: 7f116f666a75408580eb200a667b1e27 DEBUG [pymilvus.milvus_client.milvus_client] Successfully created collection: open_webui_c69e46a84c2f4cffc25f529588d460cf61b5f75add2a3aad4a0a47affd0d0e6 ERROR [pymilvus.milvus_client.milvus_client] Failed to create an index on collection: open_webui_c69e46a84c2f4cffc25f529588d460cf61b5f75add2a3aad4a0a47affd0d0e6 ERROR [pymilvus.decorators] RPC error: [create_index], <MilvusException: (code=1100, message=efConstruction out of range: [1, 2147483647]: invalid parameter[expected=valid index params][actual=invalid index params])>, <Time:{'RPC start': '2024-09-23 06:10:04.605969', 'RPC error': '2024-09-23 06:10:04.611462'}> pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=efConstruction out of range: [1, 2147483647]: invalid parameter[expected=valid index params][actual=invalid index params])> ERROR [pymilvus.milvus_client.milvus_client] Failed to search collection: open_webui_c69e46a84c2f4cffc25f529588d460cf61b5f75add2a3aad4a0a47affd0d0e6 ``` You can see that collection is created but without index on Milvus ![image](https://github.com/user-attachments/assets/4574bafa-c0c3-4848-a6f6-98db38183083) ## Additional Information The error occurs with all file types Using default Milvus configuration settings The collection is successfully created, but the index creation fails ## Note Any assistance or guidance on resolving this issue would be greatly appreciated. Please let me know if you need any additional information.
GiteaMirror added the help wantednon-core labels 2026-04-19 20:33:11 -05:00
Author
Owner

@sir3mat commented on GitHub (Sep 23, 2024):

Same issue

<!-- gh-comment-id:2367655512 --> @sir3mat commented on GitHub (Sep 23, 2024): Same issue
Author
Owner

@tjbck commented on GitHub (Sep 23, 2024):

PR Welcome!

<!-- gh-comment-id:2367949784 --> @tjbck commented on GitHub (Sep 23, 2024): PR Welcome!
Author
Owner

@ajikmr commented on GitHub (Sep 25, 2024):

It gets fixed by adding params in milvus.py

    index_params.add_index(
        field_name="vector", index_type="HNSW", metric_type="COSINE", 
        params={'efConstruction': 48, 'M': 1024}
    )
<!-- gh-comment-id:2373518209 --> @ajikmr commented on GitHub (Sep 25, 2024): It gets fixed by adding params in milvus.py index_params.add_index( field_name="vector", index_type="HNSW", metric_type="COSINE", params={'efConstruction': 48, 'M': 1024} )
Author
Owner

@aouicher commented on GitHub (Sep 26, 2024):

Thank you @ajikmr

How can we address that issue?

<!-- gh-comment-id:2377051269 --> @aouicher commented on GitHub (Sep 26, 2024): Thank you @ajikmr How can we address that issue?
Author
Owner

@tjbck commented on GitHub (Sep 26, 2024):

Fixed on dev!

<!-- gh-comment-id:2377926926 --> @tjbck commented on GitHub (Sep 26, 2024): Fixed on dev!
Author
Owner

@velarx commented on GitHub (Oct 6, 2024):

Any ETA do we have to get that release from dev?

<!-- gh-comment-id:2395309535 --> @velarx commented on GitHub (Oct 6, 2024): Any ETA do we have to get that release from dev?
Author
Owner

@ghost commented on GitHub (Jan 21, 2025):

Same problem here. When does this get fixed?

<!-- gh-comment-id:2604503427 --> @ghost commented on GitHub (Jan 21, 2025): Same problem here. When does this get fixed?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#14058