-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug]: Milvus can't load / create BM25 collection (Node.js) #40581
Comments
Hey there, @luisdanielbarros! I'm here to help you with any bugs, questions, or contributions you might have. Let's tackle this together! I found a similar closed issue related to collection errors in Milvus: Bug: After Milvus creates multiple collections and inserts data, the search report errors "collectionNotExists, reason: can't find collection". This issue was closed without comments or references, so it might not provide a direct solution to your problem [1]. Regarding your issue, the error messages "collection not available" and "collection not found" suggest that the collection might not be created successfully or is in a dropping state. Here are some steps you can take to troubleshoot and resolve the issue:
By following these steps, you should be able to identify and resolve the issue with creating and loading the BM25 collection in Milvus using the Node.js SDK. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
the problem remains
lines from the creating function, it works all good again |
To address the issue you're facing with creating a collection using BM25 and AUTOINDEX in Milvus with the Node.js SDK, consider the following:
By adjusting the index type and ensuring the function configuration aligns with the schema, you might resolve the issue. If the problem persists, further investigation into SDK-specific limitations or version compatibility might be necessary. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
The SPARSE_INVERTED_INDEX, according to the documentation, is meant to be used for adding indexes to an already existing collection, the documentation showing how-to create collections doesn't mention it, since the dosubot is not producing relevant responses anymore I'll be awaiting for human feedback |
I think the sdk does not support the function params in create_collection()... |
hi, there, you have two vector fields in your schema, you need to have all your vector fields indexed in order to load the collection. @yanliang567 , the error is from Milvus, is it working as expected? After change your code, it works. const milvusBM25IndexParams = [
{
field_name: 'embeddings',
metric_type: 'L2',
index_type: 'AUTOINDEX',
},
{
field_name: 'sparseEmbeddings',
metric_type: 'BM25',
index_type: 'AUTOINDEX',
},
]; |
Is there an existing issue for this?
Environment
Current Behavior
When following the documentation at https://milvus.io/docs/full-text-search.md
I'm unable to create a collection using the following code
The ExpressJS server running it simply stops, not running any line after, Milvus shows some errors but nothing I managed to Google a solution for
It's my first time creating a bug report outside a company's private GitHub repos, hope everything is okay.
Expected Behavior
The expected behavior would be having the ExpressJS server progress past this line of code, creating a queryable collection according to the documentation link provided.
Steps To Reproduce
Milvus Log
2025-03-11 15:29:58 milvus-standalone | [2025/03/11 15:29:58.909 +00:00] [INFO] [datacoord/segment_manager.go:573] ["try remove empty sealed segment after channel cp updated failed to get channel"] [channel=by-dev-rootcoord-dml_8_456573303766329480v0]
2025-03-11 15:30:00 milvus-standalone | [2025/03/11 15:30:00.126 +00:00] [INFO] [dist/dist_handler.go:114] ["pull and handle distribution done"] [respSize=14] [pullDur=574.377µs] [handleDur=6.941µs]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.272 +00:00] [WARN] [rootcoord/meta_table.go:584] ["collection not available"] [collectionID=456573303766334478] [state=CollectionDropping]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.272 +00:00] [WARN] [rootcoord/meta_table.go:584] ["collection not available"] [collectionID=456573303766334478] [state=CollectionDropping]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.272 +00:00] [WARN] [rootcoord/root_coord.go:1267] ["failed to describe collection"] [traceID=70d4a431bd3a3eef27e9e614250d56e7] [collectionName=Knowledgebase_67d050b64614a04387c670b0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[collection=456573303766334478]"]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.272 +00:00] [INFO] [proxy/impl.go:678] ["DropCollection received"] [traceID=0fb3ba4b7132c0b989adf2d5a4abc233] [role=proxy] [db=default] [collection=Knowledgebase_67d050b64614a04387c670b0]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.272 +00:00] [INFO] [rootcoord/root_coord.go:1091] ["received request to drop collection"] [traceID=0fb3ba4b7132c0b989adf2d5a4abc233] [role=rootcoord] [dbName=default] [name=Knowledgebase_67d050b64614a04387c670b0]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.272 +00:00] [WARN] [rootcoord/meta_table.go:584] ["collection not available"] [collectionID=456573303766334478] [state=CollectionDropping]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.272 +00:00] [WARN] [rootcoord/meta_table.go:584] ["collection not available"] [collectionID=456573303766334478] [state=CollectionDropping]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.272 +00:00] [WARN] [rootcoord/drop_collection_task.go:63] ["drop non-existent collection"] [traceID=0fb3ba4b7132c0b989adf2d5a4abc233] [collection=Knowledgebase_67d050b64614a04387c670b0] [database=default]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.272 +00:00] [INFO] [rootcoord/root_coord.go:1124] ["done to drop collection"] [traceID=0fb3ba4b7132c0b989adf2d5a4abc233] [role=rootcoord] [name=Knowledgebase_67d050b64614a04387c670b0] [ts=456578041705136134]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.273 +00:00] [INFO] [proxy/impl.go:704] ["DropCollection done"] [traceID=0fb3ba4b7132c0b989adf2d5a4abc233] [role=proxy] [db=default] [collection=Knowledgebase_67d050b64614a04387c670b0] [BeginTs=456578041705136133] [EndTs=456578041705136133]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.837 +00:00] [WARN] [rootcoord/meta_table.go:584] ["collection not available"] [collectionID=456573303766334478] [state=CollectionDropping]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.837 +00:00] [WARN] [rootcoord/meta_table.go:584] ["collection not available"] [collectionID=456573303766334478] [state=CollectionDropping]
2025-03-11 15:30:07 milvus-standalone | [2025/03/11 15:30:07.837 +00:00] [WARN] [rootcoord/root_coord.go:1267] ["failed to describe collection"] [traceID=d87d9f40e469ef1647d589a9d9ab554e] [collectionName=Knowledgebase_67d050b64614a04387c670b0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[collection=456573303766334478]"]
2025-03-11 15:30:08 milvus-standalone | [2025/03/11 15:30:08.605 +00:00] [WARN] [rootcoord/meta_table.go:584] ["collection not available"] [collectionID=456573303766334478] [state=CollectionDropping]
2025-03-11 15:30:08 milvus-standalone | [2025/03/11 15:30:08.605 +00:00] [WARN] [rootcoord/meta_table.go:584] ["collection not available"] [collectionID=456573303766334478] [state=CollectionDropping]
2025-03-11 15:30:08 milvus-standalone | [2025/03/11 15:30:08.605 +00:00] [WARN] [rootcoord/root_coord.go:1267] ["failed to describe collection"] [traceID=85962da783159d4db1d229b2682ef332] [collectionName=Knowledgebase_67d050b64614a04387c670b0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[collection=456573303766334478]"]
2025-03-11 15:30:08 milvus-standalone | [2025/03/11 15:30:08.606 +00:00] [WARN] [rootcoord/meta_table.go:584] ["collection not available"] [collectionID=456573303766334478] [state=CollectionDropping]
2025-03-11 15:30:08 milvus-standalone | [2025/03/11 15:30:08.606 +00:00] [WARN] [rootcoord/meta_table.go:584] ["collection not available"] [collectionID=456573303766334478] [state=CollectionDropping]
2025-03-11 15:30:08 milvus-standalone | [2025/03/11 15:30:08.606 +00:00] [WARN] [rootcoord/root_coord.go:1267] ["failed to describe collection"] [traceID=004f90beed4fef28a3c3cc741b2fe76c] [collectionName=Knowledgebase_67d050b64614a04387c670b0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[collection=456573303766334478]"]
2025-03-11 15:30:08 milvus-standalone | [2025/03/11 15:30:08.606 +00:00] [WARN] [proxy/task_scheduler.go:480] ["Failed to execute task: "] [traceID=004f90beed4fef28a3c3cc741b2fe76c] [error="collection not found[collection=456573303766334478]"]
2025-03-11 15:30:08 milvus-standalone | [2025/03/11 15:30:08.606 +00:00] [WARN] [proxy/impl.go:864] ["LoadCollection failed to WaitToFinish"] [traceID=004f90beed4fef28a3c3cc741b2fe76c] [role=proxy] [db=default] [collection=Knowledgebase_67d050b64614a04387c670b0] [refreshMode=false] [error="collection not found[collection=456573303766334478]"] [BeginTS=456578042059030530] [EndTS=456578042059030530]
2025-03-11 15:30:11 milvus-standalone | [2025/03/11 15:30:11.258 +00:00] [DEBUG] [metrics/thread.go:53] ["thread watcher observe thread num"] [threadNum=137]
Anything else?
No response
The text was updated successfully, but these errors were encountered: