Skip to content
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

milvus_text_search not working with correct database and collection. #10

Open
bladexxx opened this issue Mar 27, 2025 · 1 comment
Open
Assignees

Comments

@bladexxx
Copy link

below is error:
2025-03-27 08:52:03,508 [ERROR][search]: Failed to search collection: nifi_doc_rag_new (milvus_client.py:415)
2025-03-27 08:52:39,330 [ERROR][handler]: RPC error: [search], <MilvusException: (code=1100, message=failed to create query plan: failed to get field schema by name: fieldName(sparse) not found: invalid parameter)>, <Time:{'RPC start': '2025-03-27 08:52:39.328089', 'RPC error': '2025-03-27 08:52:39.330284'}> (decorators.py:140)
2025-03-27 08:52:39,330 [ERROR][search]: Failed to search collection: nifi_doc_rag_new (milvus_client.py:415)

The tool "milvus_query" is working!!

Image

@stephen37
Copy link
Collaborator

@bladexxx Hey,

For this one it's because the collection you're using doesn't support Full Text Search, you're missing a Sparse index there so it won't work.

You need to have a BM25 index running in your collection, you can check how here: https://milvus.io/docs/full-text-search.md
Something like this:

Image

@stephen37 stephen37 self-assigned this Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants