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

Skip Initial Bootstrap Without Demonstrations in Random Search Optimizer #1966

Open
Nasreddine opened this issue Dec 20, 2024 · 3 comments
Open

Comments

@Nasreddine
Copy link

When using the bootstrap with the random search optimizer, the first round always executes without demonstrations. This results in an initial output of 0 in my case.

Is there a way to skip this initial phase and start directly with demonstrations to avoid unnecessary use of the LLM.

@okhat
Copy link
Collaborator

okhat commented Dec 20, 2024

Thanks @Nasreddine ! That first call is there to ensure that running the optimizer doesn't lower performance compared to your baseline. (Btw if the first round is scoring 0.0, I would consider doing some more fundamental change to the system or program, since it might struggle to bootstrap. There are many ways around that.)

@Nasreddine
Copy link
Author

I have a specific case where my program cannot bootstrap without demos. I’m trying to produce valid XML and use assertions to ensure that the generated XML aligns with the schema. Unfortunately, no LLM was able to recognize the schema, so there’s no need for this initial phase. Therefore, I suggested making this phase optional (using a parameter).

P.S. In the latest releases, assertions were removed (code commented), which affected my program. As you’re preparing for a new version, where can I find information about these changes?

@okhat
Copy link
Collaborator

okhat commented Dec 21, 2024

Yes, assertions v1 will be gone in 2.6, and will be replaced with something new that represents v2 of assertions when 2.6.0 comes out.

It will be easier to use and much more powerful. Stay tuned within a week from now.

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