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

接入知识库能否实现流式输出结果 #5178

Open
20246688 opened this issue Jan 6, 2025 · 2 comments
Open

接入知识库能否实现流式输出结果 #5178

20246688 opened this issue Jan 6, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@20246688
Copy link

20246688 commented Jan 6, 2025

团队老师们好。接入知识库能否实现流式输出结果,最好是终端效果可见的,Python实现的demo请问有吗?

@20246688 20246688 added the enhancement New feature or request label Jan 6, 2025
Copy link

dosubot bot commented Jan 6, 2025

接入知识库可以实现流式输出结果。在 FileChatParam 类中,有一个 stream 字段,可以通过设置该字段为 True 来启用流式输出功能[1]

关于Python实现的demo,文档中没有提供相关信息[1]。不过,您可以参考 completion 函数的实现,该函数在流式输出时使用了异步迭代器来逐步输出结果[2][3]

To continue talking to Dosu, mention @dosu.


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

@20246688
Copy link
Author

20246688 commented Jan 6, 2025

哇,太棒啦吧

@20246688 20246688 reopened this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant