dify icon indicating copy to clipboard operation
dify copied to clipboard

Multi-path retrieval doesn't work for docker build and source code build

Open rickythink opened this issue 3 years ago • 2 comments

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

  1. use gitpod to create a new workspace for dify (ensure a fresh new environment)
  2. cd docker & docker compose up -d as said in the README.md
  3. add gpt key & cohere key
  4. import a pdf and set the mode with Multi-path retrieval + rerank multilingual-v2.0
  5. start with Retrieval Testing

online reproduce gitpod link


  1. 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

image

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. image

rickythink avatar Nov 22 '23 01:11 rickythink

I have same issue.

limfoo avatar Nov 22 '23 08:11 limfoo

solved by #1600

rickythink avatar Nov 22 '23 10:11 rickythink