Unable to use multiple Knowledge as contexts in non-GPT4 models #2370

Closed
opened 2026-02-21 17:44:55 -05:00 by yindo · 0 comments
Owner

Originally created by @chazzhou on GitHub (Apr 19, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a quesion, 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).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.6.3

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Create two or more sets of "Knowledge"
  2. Add more than one set of Knowledge as Context in Studio
  3. Use models other than GPT-4/Turbo (I tested 3.5/Turbo, Gemini 1.5, Gemini 1.0 Pro, and a locally deployed model)

✔️ Expected Behavior

Contexts are provided between Tags in the window.
Or, alternatively, warn the user about unsupported models.

I suggest fallback to normal sematic search using vectordb.

Actual Behavior

The Context will always be empty and no error is thrown as well (even in local dev mode)

Originally created by @chazzhou on GitHub (Apr 19, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, 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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.6.3 ### Cloud or Self Hosted Cloud ### Steps to reproduce 1. Create two or more sets of "Knowledge" 2. Add more than one set of Knowledge as Context in Studio 3. Use models other than GPT-4/Turbo (I tested 3.5/Turbo, Gemini 1.5, Gemini 1.0 Pro, and a locally deployed model) ### ✔️ Expected Behavior Contexts are provided between <Context> Tags in the window. Or, alternatively, warn the user about unsupported models. I suggest fallback to normal sematic search using vectordb. ### ❌ Actual Behavior The Context will always be empty and no error is thrown as well (even in local dev mode)
yindo added the 🐞 bug label 2026-02-21 17:44:55 -05:00
yindo closed this issue 2026-02-21 17:44:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2370