Replies: 6 comments
-
|
Hi @nya1mo! I'm Dosu and I’m helping the dify team. This is a known regression introduced after v1.11.4. The error occurs because when metadata filtering is enabled (set to "automatic" or "manual"), the backend now strictly requires a Workarounds:
This issue has been tracked in #22639 and #22681. The root cause is a validation gap in the code where the field is optional at the type level but mandatory at runtime. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
This is another 1.13.0 regression. The error "metadata_model_config is required" suggests the new version expects additional config that was not needed before. Workaround options:
For maintainers: We help teams upgrade Dify at Revolution AI — pinning to 1.11.4 is safest until these are resolved. |
Beta Was this translation helpful? Give feedback.
-
|
This is a breaking change in 1.13.0 — metadata filtering now requires additional config. Fix without downgrading:
In 1.13.0+, metadata filtering requires explicit model configuration for processing: # In your knowledge base settings or API call
metadata_model_config:
provider: openai
model: gpt-3.5-turbo
{
"name": "my-kb",
"embedding_model": "...",
"metadata_model_config": {
"provider": "openai",
"model": "gpt-3.5-turbo"
}
}
DIFY_METADATA_MODEL_PROVIDER=openai
DIFY_METADATA_MODEL_NAME=gpt-3.5-turboWhy this changed: Quick workaround:
Migration path:
We manage Dify upgrades at Revolution AI — always check breaking changes in release notes before upgrading. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for all your replies. |
Beta Was this translation helpful? Give feedback.
-
|
Since #32372 seems to be heading towards a resolution, we will close this disucussion. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I'm hosting Dify in a Docker container.
After upgrading the version from 1.11.4 to 1.13.0, the metadata filtering in the Knowledge Retrieval, which was working fine before, now causes an error. Downgrading the version from 1.13.0 to 1.11.4 will make it work again.
Is there a way to fix it without downgrading to 1.11.4?
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions