eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.5k stars 1.79k forks source link

[Bug] [Module Name] Automatically rewrite and continuously loop answers #1422

Closed paul-yangmy closed 3 months ago

paul-yangmy commented 6 months ago

Search before asking

Operating system information

Linux

Python version information

=3.11

DB-GPT version

main

Related scenes

Installation Information

Device information

cpu

Models information

chatglm6b

What happened

在没有开启改写功能的情况下,当我提问时会去改写提问,并不断回答,重复多轮round image

What you expected to happen

正常回答提问即可

How to reproduce

image

Additional context

No response

Are you willing to submit PR?

yangyongguang commented 5 months ago

那块代码可以修复这个问题, 有答案了么

paul-yangmy commented 5 months ago

大佬,这部分问题有修复进度了么,能分享下么

yangyongguang commented 5 months ago

您的邮件我已经收到了  我会及时的阅读 谢谢

yangyongguang commented 5 months ago

没有,只是让更新到最新代码。

---Original--- From: @.> Date: Mon, May 13, 2024 08:24 AM To: @.>; Cc: @.**@.>; Subject: Re: [eosphoros-ai/DB-GPT] [Bug] [Module Name] Automatically rewriteand continuously loop answers (Issue #1422)

大佬,这部分问题有修复进度了么,能分享下么

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

paul-yangmy commented 5 months ago

help大佬们,我自己梳理了下流程,但后边涉及dag的代码就看不懂了:( 能否讲解一下呢

问答入口: DB-GPT/dbgpt/app/openapi/api_v1/api_v1.py 的chat_completions函数 dialogue.chat_mode 为 ChatScene.ChatKnowledge 调用 stream_generator 调用 BaseChat chat.stream_call

dbgpt/app/scene/base_chat.py 的 BaseChat 调用 call_streaming_operator 构建 build_cached_chat_operator

dbgpt/app/scene/operators/app_operator.py 的 build_cached_chat_operator 构建了dbgpt/model/operators/llm_operator.py 的 StreamingLLMOperator 调用了 dbgpt/core/awel/operators/base.py 的 call_stream 执行 DefaultWorkflowRunner 的 execute_workflow 构建了 dbgpt/core/awel/dag/base.py 的 DAGContext 执行_execute_node 函数

yangyongguang commented 5 months ago

这个问题定位出来了么

---Original--- From: @.> Date: Fri, May 17, 2024 09:42 AM To: @.>; Cc: @.**@.>; Subject: Re: [eosphoros-ai/DB-GPT] [Bug] [Module Name] Automatically rewriteand continuously loop answers (Issue #1422)

help大佬们,我自己梳理了下流程,但后边涉及dag的代码就看不懂了:( 能否讲解一下呢

问答入口: DB-GPT/dbgpt/app/openapi/api_v1/api_v1.py 的chat_completions函数 dialogue.chat_mode 为 ChatScene.ChatKnowledge 调用 stream_generator 调用 BaseChat chat.stream_call

dbgpt/app/scene/base_chat.py 的 BaseChat 调用 call_streaming_operator 构建 build_cached_chat_operator

dbgpt/app/scene/operators/app_operator.py 的 build_cached_chat_operator 构建了dbgpt/model/operators/llm_operator.py 的 StreamingLLMOperator 调用了 dbgpt/core/awel/operators/base.py 的 call_stream 执行 DefaultWorkflowRunner 的 execute_workflow 构建了 dbgpt/core/awel/dag/base.py 的 DAGContext 执行_execute_node 函数

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

github-actions[bot] commented 3 months ago

This issue has been marked as stale, because it has been over 30 days without any activity.

github-actions[bot] commented 3 months ago

This issue bas been closed, because it has been marked as stale and there has been no activity for over 7 days.