JsonPath in LLM as a Judge returns ["value"] instead of value when using a dataset
#10726
Replies: 1 comment 1 reply
-
|
Based on the available documentation, the specific issue you're describing—where JsonPath returns However, there was a known issue with JsonPath extraction in LLM-as-a-Judge evaluators that could cause unexpected behavior, including empty values or incorrect extraction. This was fixed in versions after 3.96.2 OSS(3). Since you're running v3.134.0, you should already have this fix. For your specific case, here are some troubleshooting steps based on the documentation:
If the live prompt preview continues to show the wrapped array format
I'd recommend reaching out to Langfuse support with your specific dataset structure and evaluator configuration, as this behavior isn't documented in the official troubleshooting guides(2). 📚 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
Hi team,
I’m seeing unexpected behavior when using LLM as a Judge with a dataset as input.
Goal
I want to inject a field from my dataset input JSON directly into the evaluator prompt.
The example below is truncated only in its content, not in its structure. The actual JSON has the same top-level structure and the same path to
locale:{ "locale": "fr_FR", "project": "" }The variable {{locale}} should be replaced by:
Mapping configuration
In the evaluator’s Map Variables section:
I also tried (from discussions with Langfuse AI):
Actual result
Instead of inserting the raw value, Langfuse injects it with unexpected brackets and quotes:
The expected output is:
So the variable becomes
["fr_FR"]instead offr_FR.Question
Is this a known issue with JsonPath resolution for datasets in LLM as a Judge?
And is there a way to force Langfuse to return the raw string value (fr_FR) instead of the wrapped form (["fr_FR"])?
Happy to provide a minimal dataset sample if needed.
Thanks!
Langfuse Cloud or Self-Hosted?
Self-Hosted
If Self-Hosted
v3.134.0
If Langfuse Cloud
No response
SDK and integration versions
No response
Pre-Submission Checklist
Beta Was this translation helpful? Give feedback.
All reactions