[PR #11430] FEAT: support milvus to full text search #27214

Closed
opened 2026-02-21 20:41:05 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/11430

State: closed
Merged: Yes


Summary

This pull request focuses on enabling full-text search capabilities within the Milvus data source, improving the overall search functionality and ensuring that the integration is robust and reliable.

Resolves #11370

Motivation and Context

The motivation behind this change is to improve the search capabilities of the Dify project by integrating full-text search support in the Milvus data source. This enhancement allows for more efficient and accurate retrieval of relevant data, which is crucial for improving the overall user experience.

Dependencies

  • This change requires the following dependencies:
    • pymilvus (version update to 2.5.0)
    • python-dotenv (version update to 1.0.1)
    • milvus (version 2.5.0-beta)

Detailed Changes

  • Modified: core/rag/datasource/vdb/field.py

    • Updated to support new sparse_vector field types and configurations required for full-text search in Milvus.
  • Modified: core/rag/datasource/vdb/milvus/milvus_vector.py

    • Implemented full-text search capabilities within the Milvus vector data source, ensuring efficient and accurate retrieval of relevant data.
  • Modified: pyproject.toml

    • Updated project configuration to include new dependencies and settings necessary for full-text search support in Milvus.
  • Modified: tests/integration_tests/vdb/milvus/test_milvus.py

    • Enhanced integration tests to cover the new full-text search functionality, ensuring that the Milvus integration behaves as expected under various scenarios.
  • Modified: docker/docker-compose.yaml

    • Update docker-compose configuration to include milvus 2.5.0-beta

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/11430 **State:** closed **Merged:** Yes --- # Summary This pull request focuses on enabling full-text search capabilities within the Milvus data source, improving the overall search functionality and ensuring that the integration is robust and reliable. **Resolves #11370** ### Motivation and Context The motivation behind this change is to improve the search capabilities of the Dify project by integrating full-text search support in the Milvus data source. This enhancement allows for more efficient and accurate retrieval of relevant data, which is crucial for improving the overall user experience. ### Dependencies - This change requires the following dependencies: - `pymilvus` (version update to 2.5.0) - `python-dotenv` (version update to 1.0.1) - `milvus` (version 2.5.0-beta) ### Detailed Changes - **Modified:** `core/rag/datasource/vdb/field.py` - Updated to support new sparse_vector field types and configurations required for full-text search in Milvus. - **Modified:** `core/rag/datasource/vdb/milvus/milvus_vector.py` - Implemented full-text search capabilities within the Milvus vector data source, ensuring efficient and accurate retrieval of relevant data. - **Modified:** `pyproject.toml` - Updated project configuration to include new dependencies and settings necessary for full-text search support in Milvus. - **Modified:** `tests/integration_tests/vdb/milvus/test_milvus.py` - Enhanced integration tests to cover the new full-text search functionality, ensuring that the Milvus integration behaves as expected under various scenarios. - **Modified:** `docker/docker-compose.yaml` - Update docker-compose configuration to include milvus 2.5.0-beta # Checklist > [!IMPORTANT] > Please review the checklist below before submitting your pull request. - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [ ] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:41:05 -05:00
yindo closed this issue 2026-02-21 20:41:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#27214