Skip to content

knowledge error RETRIEVAL_TOP_N #11300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
5 tasks done
kenneth-bro opened this issue Dec 3, 2024 · 4 comments
Closed
5 tasks done

knowledge error RETRIEVAL_TOP_N #11300

kenneth-bro opened this issue Dec 3, 2024 · 4 comments
Labels
👻 feat:rag Embedding related issue, like qdrant, weaviate, milvus, vector database.

Comments

@kenneth-bro
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.12.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

1、hitTesting
2、input content to test
3、show error

✔️ Expected Behavior

show embedding content

❌ Actual Behavior

image
image

@dosubot dosubot bot added the 👻 feat:rag Embedding related issue, like qdrant, weaviate, milvus, vector database. label Dec 3, 2024
Copy link

dosubot bot commented Dec 3, 2024

I found a similar unsolved discussion related to the error "Response output is missing or does not contain embeddings" in Dify. You can view it here [1]. Additionally, there was a closed issue titled "文档上传后,嵌入处理失败,状态:错误" which did not have a solution in the comments [2].

Regarding the RETRIEVAL_TOP_N parameter, it is used to filter the most similar text chunks to the user's question by determining the number of top results to retrieve based on similarity scores. The default value is 3, and it dynamically adjusts based on the context window size of the selected model [3][4].

If you're encountering errors related to this parameter, ensure that it is correctly configured and that the retrieval method's top_k value is set appropriately. If the issue persists, reviewing the logs for any specific error messages related to this parameter might provide more insights.

To continue talking to Dosu, mention @dosu.

@iambluebird
Copy link

image 把检索模式改为向量检索,关闭rerank模型,可以暂时不受这个问题影响,从0.11.1版本直接跳的0.13,不知道是不是期间升级遗漏了哪里,正在翻文档。或者是引入的一个新BUG,等官方修复。。。。

@crazywoola
Copy link
Member

This issue has been fixed in #11297

@laipz8200
Copy link
Member

Sorry for that, we've updated our Docker images, please remove and pull them again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👻 feat:rag Embedding related issue, like qdrant, weaviate, milvus, vector database.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants