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

[Tooling] dotprompt frontmatter is sent as part of text to llm #2432

Closed
i14h opened this issue Mar 22, 2025 · 2 comments
Closed

[Tooling] dotprompt frontmatter is sent as part of text to llm #2432

i14h opened this issue Mar 22, 2025 · 2 comments
Assignees
Labels
bug Something isn't working tooling

Comments

@i14h
Copy link
Member

i14h commented Mar 22, 2025

Describe the bug
The frontmatter in dotprompt file is included in the text sent to the model.

To Reproduce
Steps to reproduce the behavior:

  1. Add a dotprompt in the prompts/ directory
  2. Fire up the dev ui, and run the prompt
  3. Look in traces
  4. See frontmatter was sent as part of text to the model

Expected behavior
frontmatter should be excluded

Screenshots

Image

Desktop (please complete the following information):

  • OS: macos
  • Browser chrome
  • Version 1.3
@i14h i14h added bug Something isn't working tooling labels Mar 22, 2025
@i14h
Copy link
Member Author

i14h commented Mar 22, 2025

bookRequest.prompt.txt

@mbleigh
Copy link
Collaborator

mbleigh commented Mar 22, 2025

The frontmatter is improperly formatted - in the output schema you have extra indentation on schema. Here's a working version: https://fiddle.genkit.dev/rVErJbEIjh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tooling
Projects
Status: Done
Development

No branches or pull requests

3 participants