langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
53.48k stars 7.81k forks source link

fulltext search not work with milvus #10352

Closed NiuBlibing closed 3 weeks ago

NiuBlibing commented 3 weeks ago

Self Checks

Dify version

0.11.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. deploy dify with milvus
  2. create knowledge, select Full-Text Search or Hybrid Search.
  3. test recall with Full-Text Search

✔️ Expected Behavior

hit results

❌ Actual Behavior

nothing is recalled.

dosubot[bot] commented 3 weeks ago

The issue you're experiencing with full-text search not working with Milvus in Dify version 0.11.0 is due to the fact that Milvus does not support BM25 search. The search_by_full_text method in the MilvusVector class explicitly returns an empty list, indicating that full-text search functionality is not supported in this implementation [1].

If you need full-text search capabilities, consider using a different vector database that supports this feature.

To continue talking to Dosu, mention @dosu.

NiuBlibing commented 3 weeks ago

@crazywoola is there a plan to support BM25 for milvus? https://milvus.io/docs/embed-with-bm25.md#BM25