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

Add an option to link an example to prompt from trace #919

Open
orgroman opened this issue Aug 12, 2024 · 3 comments
Open

Add an option to link an example to prompt from trace #919

orgroman opened this issue Aug 12, 2024 · 3 comments

Comments

@orgroman
Copy link

Feature request

Since langsmith is already detecting correctly that I'm using a prompt template from the private hub please make it so that I can easily add an example to the prompt playground from the trace view just like I can do when running the prompt directly.

Motivation

This will make things a lot more easier to us since prompt engineers could easily add an example to the prompt playground from a given trace and he or she can use it to optimize the prompt

@hinthornw
Copy link
Collaborator

Could you elaborate a bit more on what your desired UX is?

You can add any run to a dataset, and you can open datasets in the prompt playground when iterating on a prompt.

@orgroman
Copy link
Author

Thank you for your response! I appreciate the ability to add a run to a dataset, but I've noticed that it doesn't retain the input template of the original prompt. For example, if I've defined a template with variables like format_instructions and others, it merges these variables into one input when adding an example to the dataset, which doesn't align with my intended workflow.

Additionally, since we're discussing the prompt playground, it would be helpful to have the option to switch the prompt template type between chat and completion modes and vice versa. It would also be great to be able to add an output schema after the prompt is created, through the edit functionality, rather than only during the initial creation.

@hinthornw
Copy link
Collaborator

Hi @orgroman - are you using prompt runs? Or looking just at the LLM runs?

It sounds like what you want is the prompt run, which keeps the template variables as described while also supporting the playground

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