How to properly set variables so you can use variables from prompts in dataset #13296
Replies: 1 comment 1 reply
-
|
When creating a dataset from generations that use prompts with variables, the dataset items must have input keys that exactly match the variable names in your prompt at the top level(1). For example, if your prompt uses Key requirements:
Example structure: If your prompt contains: Your dataset item input must be structured like: {
"criticLevel": "expert",
"movie": "Dune 2"
}Common issues:
Workarounds:
A fix for variable recognition in composed prompts is available in OSS release >v3.112.0(1). If you're on Langfuse Cloud, this should already be resolved for most cases(1). 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe your question
I am using langfuse prompt feature. I see my reqeuests in the linked generations, but when i try to create a dataset with them it tells me I am missing variables. I checked the docs thouroughly and had claude investigate but I can't figure out how to properly generate so that the variables are saved in the generation and can be reused later.
Langfuse Cloud or Self-Hosted?
Langfuse Cloud
If Self-Hosted
No response
If Langfuse Cloud
https://us.cloud.langfuse.com/project/cmn9fd7js05hpad079jsww0t7/traces
SDK and integration versions
No response
Pre-Submission Checklist
Beta Was this translation helpful? Give feedback.
All reactions