dify
dify copied to clipboard
Multi-path retrieval doesn't work for docker build and source code build
Dify version
0.3.31, 0.3.31-fix1, 0.3.31-fix2 the docker build and lastest source code build
Cloud or Self Hosted
Self Hosted and source code build
Steps to reproduce
- use gitpod to create a new workspace for dify (ensure a fresh new environment)
- cd docker & docker compose up -d as said in the README.md
- add gpt key & cohere key
- import a pdf and set the mode with
Multi-path retrieval+rerank multilingual-v2.0 - start with
Retrieval Testing
- use the lastest code turns out to get the same error
✔️ Expected Behavior
work well as the cloud.dify.ai does
❌ Actual Behavior
failed with error notify doc_hash
I debug the from my local machine and locate the error is directly caused by https://github.com/langgenius/dify/blob/caa330c91f27dce000b6b66af1867aec6335100c/api/core/model_providers/models/reranking/cohere_reranking.py#L42
However, I did not figure out why the doc_hash key is missing.
I have same issue.
solved by #1600