Knowledge with create-by-text API, set reranking_enable no effect
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
1.1.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
json: dict = {
"name": document_name,
"text": document_text,
"doc_metadata": [],
"indexing_technique": "high_quality",
"doc_form": "hierarchical_model",
"doc_language": "Chinese",
"process_rule": {
"mode": "hierarchical",
"rules": {
"pre_processing_rules": [
{"id": "remove_extra_spaces", "enabled": True},
{"id": "remove_urls_emails", "enabled": False}
],
"segmentation": {"separator": "\n\n", "max_tokens": 4000},
"parent_mode": "paragraph",
"subchunk_segmentation": {"separator": "\n", "max_tokens": 4000}
}
},
"retrieval_model": {
"search_method": "semantic_search",
"reranking_enable": True,
"reranking_model": {
"reranking_model_name": self.rerank_model.get("model"),
"reranking_provider_name": self.rerank_model.get("provider"),
},
"top_k": 10,
"score_threshold_enabled": False
},
"embedding_model": self.embedding_model.get("model"),
"embedding_model_provider": self.embedding_model.get("provider"),
}
Used Database to Knowledge Plugin
✔️ Expected Behavior
❌ Actual Behavior
I found a similar closed issue that might be relevant to your problem. The issue was about the reranking model not taking effect, and it was resolved by ensuring that the reranking model settings were correctly configured in both the default settings and the knowledge base settings. It was also important to verify that the reranking_mode and reranking_model configurations were correct and that there were no authorization errors or misconfigurations in the Docker setup. Checking the logs for any errors or warnings was also recommended [1].
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
能否看一下这个问题,通过api设置了reranking_enable,但是创建的文档却忽略了rerank设置 @crazywoola 具体操作可以看一下Database to Knowledge Plugin
@majinkai 1.6.0 1.7.0