ChatFiles icon indicating copy to clipboard operation
ChatFiles copied to clipboard

怎么改语言,现在是英文的,我投喂的资料是中文的

Open yuexiadudiao opened this issue 1 year ago • 2 comments

yuexiadudiao avatar Apr 09 '23 12:04 yuexiadudiao

promts要修改一下,程序里的promts有歧义

zdy85730 avatar Apr 12 '23 08:04 zdy85730

promts要修改一下,程序里的promts有歧义

改了一下,体验还是不好,本地搜索不到就直接摆烂了

yuexiadudiao avatar Apr 12 '23 15:04 yuexiadudiao

同问,设置为zh语言,但是没有效果,我也配置了zh 下面的 common

rdaim avatar Apr 19 '23 13:04 rdaim

在提示语最后回答添加 IN CHINESE 试试:

DEFAULT_PROMPT = (
    "We have provided context information below: \n"
    "---------------------\n"
    "{context_str}\n"
    "---------------------\n"
    "Given this information, Please answer my question in the same language that I used to ask you.\n"
    "Please answer the question in chinese: {query_str}\n"
)

hycao avatar Apr 20 '23 07:04 hycao

在提示语最后回答添加 IN CHINESE 试试:

DEFAULT_PROMPT = (
    "We have provided context information below: \n"
    "---------------------\n"
    "{context_str}\n"
    "---------------------\n"
    "Given this information, Please answer my question in the same language that I used to ask you.\n"
    "Please answer the question in chinese: {query_str}\n"
)

没用啊

alexhmyang avatar May 16 '23 09:05 alexhmyang

在提示语最后回答添加 IN CHINESE 试试:

DEFAULT_PROMPT = (
    "We have provided context information below: \n"
    "---------------------\n"
    "{context_str}\n"
    "---------------------\n"
    "Given this information, Please answer my question in the same language that I used to ask you.\n"
    "Please answer the question in chinese: {query_str}\n"
)

没用啊

能描述的更清楚吗,我这边虽然没继续用这个东西,但是之前一直用的很正常

hycao avatar May 16 '23 10:05 hycao