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

bug report:用中文提问时,偶尔会返回英文回答 #42

Open
shangguansb opened this issue Apr 17, 2023 · 5 comments
Open

bug report:用中文提问时,偶尔会返回英文回答 #42

shangguansb opened this issue Apr 17, 2023 · 5 comments

Comments

@shangguansb
Copy link

大佬们,这个bug如何修复?找了一天,没找到修复思路

@madawei2699
Copy link
Collaborator

我怀疑是因为上下文包含英文太多了导致的?还有可能就是 prompt 模版选择错误导致的,因为这里有个逻辑是自动根据语言选择中英文模版🤔

@shangguansb
Copy link
Author

我怀疑是因为上下文包含英文太多了导致的?还有可能就是 prompt 模版选择错误导致的,因为这里有个逻辑是自动根据语言选择中英文模版🤔

可以确认用来分析的pdf和提问没有任何英文字符,prompt模板已经删除英文模板,只使用中文模板,但是还是偶尔会有英文回答

@madawei2699
Copy link
Collaborator

你有没有试过在 chatgpt 网页中让它用中文但回复的是英文这种情况?感觉是 chatgpt 的问题啊

@shangguansb
Copy link
Author

你有没有试过在 chatgpt 网页中让它用中文但回复的是英文这种情况?感觉是 chatgpt 的问题啊

我试过用langchain,分析同样的pdf,提同样的问题,多次测试后,发现不会返回英文。感觉像是llama_index的bug?

@madawei2699
Copy link
Collaborator

有可能,五月份充写 gpt 模块,用 langchain 试试,gpt_index 的确不太灵活 bug 还多😅

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