Skip to content
New issue

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

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

Already on GitHub? # to your account

结果排序不准确,有些问答匹配结果甚至跑到第七八条了 #5157

Open
15927566740 opened this issue Dec 26, 2024 · 2 comments
Labels
bug Something isn't working stale

Comments

@15927566740
Copy link

有人知道结果排序不准确怎么处理吗,有些问答匹配结果甚至跑到第七八条了,我看源码里rerank相关代码都注释掉了。
用的xinference:v1.1.0+chatchat0.3.1.3,Qwen2.5-14B-Instruct,bge-large-zh-v1.5,bge-reranker-larger。
score从0.1到2.0都试了个遍。

@15927566740 15927566740 added the bug Something isn't working label Dec 26, 2024
@15927566740 15927566740 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2024
Copy link

dosubot bot commented Dec 26, 2024

在 Langchain-Chatchat 版本 0.3.1.3 中,确实存在一个已知问题,即无法通过配置启用 reranking 功能,因为相关代码在源码中被注释掉了(特别是在 chatchat/server/chat/kb_chat.py 文件中)[1]。要启用 reranking 功能,您需要手动修改源码,取消注释 reranker 的实现。

此外,您可以参考一个类似的开放问题,其中建议使用 rerank.py 中已经实现的功能,而不需要编写新的 LangchainReranker 类或 compress_documents 方法[2]

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@15927566740 15927566740 reopened this Dec 26, 2024
Copy link

这个问题已经被标记为 stale ,因为它已经超过 30 天没有任何活动。

@github-actions github-actions bot added the stale label Jan 25, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant