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

No Improvement after using TextGrad for Prompt Optimization #112

Open
nikhilk7153 opened this issue Aug 20, 2024 · 2 comments
Open

No Improvement after using TextGrad for Prompt Optimization #112

nikhilk7153 opened this issue Aug 20, 2024 · 2 comments

Comments

@nikhilk7153
Copy link

Hello,

I have currently tweaked the prompt optimization tutorial so that I can see if I can improve it's ability to improve on medical multiple -choice datasets. However, the results are getting progressively worse as I do more iterations. I have set the gradient_memory = 3 so that it can see the previous instances but that is not doing much. Does anyone have any suggestions on what else I can do to improve the score? My evaluation function is just simply checking if there is a match between the correct answer choice and the LLM inference answer choice.

I can try changing the LLM optimizer system prompt but I am not sure how much of a difference that makes. Also, I can share my repo if that helps.

Thanks!

Nikhil

@belmarca
Copy link

Can you double check that your prompt gets gradients? In larger examples, mine don't and I get the same behavior.

@vincentWuK
Copy link

try to use textgrad with deepeval as loss func

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

3 participants