-
Notifications
You must be signed in to change notification settings - Fork 49
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
Improving GPT's instruction following ability of non english prompts #440
base: main
Are you sure you want to change the base?
Conversation
Showing GPT 3.5's gap in non english prompts and simple technique on how to improve response quality
requesting review @ezzcodeezzlife @OlesiaZinchenko |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @Raghavan1988,
This is a really interesting tutorial, I'm sure people from non English backgrounds will benefit a lot from this.
I have a few suggestions to make your tutorial even more effective and compliant with the guidelines:
- You have effectively used one
#
header and several##
H2 headings, Kindly add a specificH2
heading for "Topic Input" and another one to summarize all previously discussed points. - You've provided code snippets showing how to implement the translation layer. To make the tutorial more beginner-friendly, I suggest expanding the code implementation section. Specifically, it would be helpful to include a more complete example of how GPT-3.5 processes the translated prompt.
A possible enhancement could be a full implementation example that includes:- A function for translating non-English prompts to English.
- Processing the translated prompt with GPT-3.5.
- Translating the response back to the original language.
- A simple example demonstrating the entire flow from input to output.
These suggestions will make your tutorial more accessible to beginners but also give them a practical tool to experiment with.
Thank you for your contribution to the community 🚀
Thanks @DonGuillotine for the review. I made changes to create 3 functions |
- Updated Header Structure - Corrected Markdown format for URLs with a custom text label
Hello @Raghavan1988, It's great to see the updates you have made 🎉, I made some updates to the Header and Hyperlinks, kindly note it and apply to future tutorials. Here are the final finishing touches to this great tutorial:
Please consider using an alternative library that provides similar functionality such as Looking forward to the updates, great work so far @Raghavan1988 🥇 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @DonGuillotine for very thoughtful review.
I made the following changes.
- I removed langchain and used only OpenAI API since latest langchain APIs are different.
- I removed googletrans and used "translate" package as per your review.
- Added the end to end flask code with pointers to working github repository that i tested
Apologies for the delay in addressing your review. Please let me know if it looks good for merge or any further changes needed.
GPT 3.5's response quality in non english prompt is usually poorer compared to english atleast for south asian and middle eastern languages due to lesser representation in training data.
In this tutorial, i showed a simple translation trick improves the response quality anecdotally.