Skip to content

Cannot use prompt experiments "No dataset item contains any variables" #4418

Answered by marcklingen
j10sanders asked this question in Support
Discussion options

You must be logged in to vote

Hi @j10sanders,

The input within the dataset needs to be a key-value JSON object (we will simplify this in the future).

Examples from docs: https://langfuse.com/docs/datasets/prompt-experiments

Example Dataset input

{
  "question": "What is Langfuse?",
  "documentation": "Langfuse - the LLM Engineering Platform"
}

Example prompt

You are a Langfuse expert. Please answer questions based on the following documentation:

DOCUMENTATION
{{documentation}}

{{question}}

Hope this helps!

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by marcklingen
Comment options

You must be logged in to vote
1 reply
@marcklingen
Comment options

Comment options

You must be logged in to vote
2 replies
@marcklingen
Comment options

@marcklingen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment