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
46.27k stars 6.53k forks source link

Qdrant does not support full-text search for numbers or letters #7543

Closed leoterry-ulrica closed 1 month ago

leoterry-ulrica commented 1 month ago

Self Checks

Dify version

0.7.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Recall Test,select full text search
  2. input numbers or letters,forexample:3+;or:3;or:X
  3. click test, return empty data

✔️ Expected Behavior

image

❌ Actual Behavior

image

dosubot[bot] commented 1 month ago

The issue you're encountering is due to a known limitation in Dify's integration with Qdrant. Specifically, Qdrant does not support full-text search for numbers or letters. This limitation is documented in the Dify repository, where it is noted that "milvus/zilliz/relyt doesn't support bm25 search" [1].

To address this, you might consider using alternative indexing and retrieval strategies provided by Dify, such as vector search or hybrid search, which may offer better support for your use case. Additionally, you can adjust parameters like TopK and Score Threshold to fine-tune the retrieval process [2][3].

To continue talking to Dosu, mention @dosu.

JohnJyong commented 1 month ago

Word segmentation rule restrictions cannot be met for the time being.