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.76k stars 6.61k forks source link

refactor: optimize the calculation of rerank threshold and the logic for forbidden characters in model_uid #8879

Open hwzhuhao opened 2 hours ago

hwzhuhao commented 2 hours ago

Checklist:

[!IMPORTANT]
Please review the checklist below before submitting your pull request.

Description

  1. optimize the calculation of rerank threshold
  2. optimize the logic for forbidden characters in model_uid

image

image

Fixes

Type of Change

Testing Instructions

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration