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

Prompt templates #18073

Open
1 task done
fdionisi opened this issue Sep 19, 2024 · 0 comments
Open
1 task done

Prompt templates #18073

fdionisi opened this issue Sep 19, 2024 · 0 comments
Labels
ai Improvement related to Assistant, Copilot, or other AI features assistant AI feedback for Assistant (inline or panel) enhancement [core label]

Comments

@fdionisi
Copy link
Contributor

Check for existing issues

  • Completed

Describe the feature

Currently, users can only define simple, static prompts. However, Anthropic advanced prompting techniques suggest wrapping valuable information in XML-like syntax and reducing interpretation errors 1.

It’s already possible to prepare prompts which include XML blocks, but there’s no easy way to edit those blocks without:

  1. Unfolding the prompt
  2. Scanning the prompt for the XML block
  3. Edit the block’s content
  4. Wash, rinse, repeat 2 & 3 for each block

It would be great to have some way to simplify this process, giving the user the ability to edit the content of these blocks without requiring all the steps above.

My naïve proposed UX would see Zed automatically identify XML tags which contain mustache-like syntax inside a prompt and render the identified “parameters” directly in the folded prompt as text areas. When the user edits the text areas, the new content is automatically replaced within the folded prompt in the correct location.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

Footnotes

  1. https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags

@fdionisi fdionisi added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Sep 19, 2024
@notpeter notpeter added ai Improvement related to Assistant, Copilot, or other AI features assistant AI feedback for Assistant (inline or panel) and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai Improvement related to Assistant, Copilot, or other AI features assistant AI feedback for Assistant (inline or panel) enhancement [core label]
Projects
None yet
Development

No branches or pull requests

2 participants