Skip to content

[Bug]: Prompt optimzer fails with Prompt template must have a placeholder named 'target' #1648

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

Open
1 task done
visuman opened this issue Jan 23, 2025 · 0 comments
Open
1 task done
Assignees

Comments

@visuman
Copy link

visuman commented Jan 23, 2025

File Name

gemini/prompts/prompt_optimizer/vertex_ai_prompt_optimizer_sdk_long_prompt_optimization.ipynb

What happened?

I was using this notebook to run the prompt optimizer.
But the vertex AI job is failing with the following error

Relevant log output

{"Error": "Error: the validation for the template failed: Prompt template must have a placeholder named 'target' See gs://<buket_name>/optimization/optimization_jobs/auto-prompt-design-job-j8qe48uy/error.json for more details.", "Stack trace": "Traceback (most recent call last):\n  File \"/optimize_main.par/google3/cloud/ml/research/llm/instruction_optimization/optimize_main.py\", line 248, in _parse_and_validate_template\n    raise app.UsageError(\nabsl.app.UsageError: Prompt template must have a placeholder named 'target'\n"}

Code of Conduct

  • I agree to follow this project's Code of Conduct
@visuman visuman changed the title [Bug]: [Bug]: Prompt optimzer fails with Prompt template must have a placeholder named 'target' Jan 23, 2025
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