Skip to content
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

[BUG] 网页端RAG对话知识库问答相同输入的检索结果与api的结果不一致 #5079

Open
LV0913 opened this issue Nov 15, 2024 · 1 comment
Labels
bug Something isn't working stale

Comments

@LV0913
Copy link

LV0913 commented Nov 15, 2024

pip安装。
方式一:在网页端,RAG对话-知识库问答,选择知识库。
方式二:使用如下api方式。
base_url = "http://127.0.0.1:7861/knowledge_base/local_kb/samples"
data = {
"model": "qwen2-instruct",
"messages": [
{"role": "user", "content": "你好"},
{"role": "assistant", "content": "你好,我是人工智能大模型"},
{"role": "user", "content": "如何高质量提问?"},
],
"stream": True,
"temperature": 0.7,
"extra_body": {
"top_k": 3,
"score_threshold": 2.0,
"return_direct": True,
},
}

import openai
client = openai.Client(base_url=base_url, api_key="EMPTY")
resp = client.chat.completions.create(**data)
for r in resp:
print(r)
两种方式在相同输入下检索结果不一致

@LV0913 LV0913 added the bug Something isn't working label Nov 15, 2024
Copy link

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

@github-actions github-actions bot added the stale label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant