Skip to content
Discussion options

You must be logged in to vote

Hi @ZhegeMaw! I'm Dosu and I’m helping the dify team.

The 400 BAD REQUEST error happens when the retrieval_model parameters in your request don't match the expected schema or contain invalid values. The backend uses strict validation: every field in retrieval_model must be present and correctly typed, and nested objects like weights and reranking_model must include required fields. For example, weights must have a weight_type (allowed values: "semantic_first", "keyword_first", "customized"), and reranking_model must use valid provider/model names recognized by Dify—using an unsupported provider like "Qwen" will trigger a 400 error source.

Common causes include: malformed JSON, missing re…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ZhegeMaw
Comment options

@dosubot
Comment options

Answer selected by ZhegeMaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant