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

bots 下面的chat_bot 和 qa_bot 的作用 #70

Open
SunnyMarkLiu opened this issue Jun 27, 2023 · 1 comment
Open

bots 下面的chat_bot 和 qa_bot 的作用 #70

SunnyMarkLiu opened this issue Jun 27, 2023 · 1 comment

Comments

@SunnyMarkLiu
Copy link

您好,bots 下面的chat_bot 和 qa_bot的具体作用是什么?其他模块貌似没有调用这里面的相应的 ChatBot 和 QABot。这与 engine 里面的 bot.py 里面有什么区别?您是基于什么样的考虑这样设计的?

这块代码没有太看明白,麻烦大佬指点下!

@goldfishh
Copy link
Owner

你好,ChatBot是用来角色扮演的,执行某个tool任务会多层调外部接口,最后返回用户总结,某些场景用户可能想让bot保持角色设定(即类似佛祖、猫娘等的说话方式)就会用到ChatBot,实际过程中由于用户使用tool更想llm完成某个任务,寻求确定的答案,ChatBot不是很好选择。
QABot是用来单次执行tool的,没有对话记忆功能,用来当做子tool(目前仅news)的Bot
Bot是基类

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants