Fix metadata filtering bug

:speech_balloon: Feedback Title

Hope to fix the [Metadata Filtering BUG]

:clipboard: Feedback Type

Please select one:

  • :bug: Bug Report (something broken on the forum)
  • :light_bulb: Feature Suggestion (new feature for the forum)
  • :artist_palette: Design/UI Improvement
  • :memo: Content Suggestion (categories, guidelines, etc.)
  • :thinking: Question about the forum
  • :clap: Appreciation/Compliment
  • :bar_chart: Other feedback

:bullseye: What’s Your Feedback?

When using metadata filtering, if the filtering condition is a variable (e.g., a session variable), it cannot be used as a filtering condition parameter; its intended effect can only be achieved when it is static.

:camera_with_flash: Screenshots (if applicable)

[Add screenshots to illustrate your point]

:thought_balloon: Why Is This Important?

[Explain how this would improve the community experience]

:wrench: Suggested Solution (optional)

[If you have ideas on how to address this, share them here]

:globe_with_meridians: Browser/Device (for bug reports)

  • Browser:edge
  • Device: [Desktop]
  • Operating System:windows11

:paperclip: Additional Context

[Any other relevant information]


Thank you for helping us improve the Dify Community! :folded_hands:

@daydreamer-ZE
This is a known issue and has already been fixed in version 1.13.1 or later.

However, please note that the plugin daemon 0.5.4, which is bundled with 1.13.1 or later, is a bit buggy. I personally recommend using 0.5.3 instead by customizing your Docker Compose file