v0.15.0 the Retrieval method only show semantic search #7593

Closed
opened 2026-02-21 18:21:22 -05:00 by yindo · 4 comments
Owner

Originally created by @QuantumCamper on GitHub (Jan 8, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.0

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

image

✔️ Expected Behavior

how to show all the three Retrieval method like before

Actual Behavior

only show semantic search

Originally created by @QuantumCamper on GitHub (Jan 8, 2025). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.0 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce ![image](https://github.com/user-attachments/assets/66cbc6c4-0fff-42da-8ae3-4661dc0b0e45) ### ✔️ Expected Behavior how to show all the three Retrieval method like before ### ❌ Actual Behavior only show semantic search
yindo closed this issue 2026-02-21 18:21:22 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 8, 2025):

Hey @QuantumCamper! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together!

To display all three retrieval methods in version 1.15.0, ensure that the supportRetrievalMethods array includes RETRIEVE_METHOD.semantic, RETRIEVE_METHOD.fullText, and RETRIEVE_METHOD.hybrid. The code checks for these methods in the supportRetrievalMethods array before rendering the corresponding OptionCard. Here's the relevant code snippet:

{supportRetrievalMethods.includes(RETRIEVE_METHOD.semantic) && (
  <OptionCard ...>
    ...
  </OptionCard>
)}
{supportRetrievalMethods.includes(RETRIEVE_METHOD.fullText) && (
  <OptionCard ...>
    ...
  </OptionCard>
)}
{supportRetrievalMethods.includes(RETRIEVE_METHOD.hybrid) && (
  <OptionCard ...>
    ...
  </OptionCard>
)}

Make sure that supportRetrievalMethods is correctly populated with all the retrieval methods you want to display. If it's not, you may need to adjust the logic where supportRetrievalMethods is defined or populated [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot[bot] commented on GitHub (Jan 8, 2025): <!-- Greeting --> Hey @QuantumCamper! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together! <!-- Answer --> To display all three retrieval methods in version 1.15.0, ensure that the `supportRetrievalMethods` array includes `RETRIEVE_METHOD.semantic`, `RETRIEVE_METHOD.fullText`, and `RETRIEVE_METHOD.hybrid`. The code checks for these methods in the `supportRetrievalMethods` array before rendering the corresponding `OptionCard`. Here's the relevant code snippet: ```tsx {supportRetrievalMethods.includes(RETRIEVE_METHOD.semantic) && ( <OptionCard ...> ... </OptionCard> )} {supportRetrievalMethods.includes(RETRIEVE_METHOD.fullText) && ( <OptionCard ...> ... </OptionCard> )} {supportRetrievalMethods.includes(RETRIEVE_METHOD.hybrid) && ( <OptionCard ...> ... </OptionCard> )} ``` Make sure that `supportRetrievalMethods` is correctly populated with all the retrieval methods you want to display. If it's not, you may need to adjust the logic where `supportRetrievalMethods` is defined or populated <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/datasets/common/retrieval-method-config/index.tsx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/d4512af9-af1f-43d7-91b4-2d26ec71dad6?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/d4512af9-af1f-43d7-91b4-2d26ec71dad6?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/d4512af9-af1f-43d7-91b4-2d26ec71dad6?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/d4512af9-af1f-43d7-91b4-2d26ec71dad6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d4512af9-af1f-43d7-91b4-2d26ec71dad6?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/d4512af9-af1f-43d7-91b4-2d26ec71dad6?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Jan 8, 2025):

For questions please use discussion instead.

@crazywoola commented on GitHub (Jan 8, 2025): For questions please use discussion instead.
Author
Owner

@kxleee commented on GitHub (Jan 14, 2025):

如有疑问,请使用讨论。

Hello the same problem, knowledge base only semantic search lack full text search and hybrid search

@kxleee commented on GitHub (Jan 14, 2025): > 如有疑问,请使用讨论。 Hello the same problem, knowledge base only semantic search lack full text search and hybrid search
Author
Owner

@Naoki0513 commented on GitHub (Jan 14, 2025):

I'm experiencing the same issue.
I'm using pgvector

@Naoki0513 commented on GitHub (Jan 14, 2025): I'm experiencing the same issue. I'm using pgvector
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7593