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

bugfix(ChatExcel): ChatExcel Language confusion bug #732

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion pilot/scene/chat_data/chat_excel/excel_learning/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,27 @@
{response}
"""

RESPONSE_FORMAT_SIMPLE = {
_RESPONSE_FORMAT_SIMPLE_ZH = {
"DataAnalysis": "数据内容分析总结",
"ColumnAnalysis": [{"column name1": "字段1介绍,专业术语解释(请尽量简单明了)"}],
"AnalysisProgram": ["1.分析方案1,图表展示方式1", "2.分析方案2,图表展示方式2"],
}
_RESPONSE_FORMAT_SIMPLE_EN = {
"DataAnalysis": "Data content analysis summary",
"ColumnAnalysis": [
{
"column name1": "Introduction to Column 1 and explanation of professional terms (please try to be as simple and clear as possible)"
}
],
"AnalysisProgram": [
"1. Analysis plan 1, chart display type 1",
"2. Analysis plan 2, chart display type 2",
],
}

RESPONSE_FORMAT_SIMPLE = (
_RESPONSE_FORMAT_SIMPLE_EN if CFG.LANGUAGE == "en" else _RESPONSE_FORMAT_SIMPLE_ZH
)


_DEFAULT_TEMPLATE = (
Expand Down