Open richb-rv opened 1 month ago
Hello Rich,
Its because the way data is structure. If you have llm.inputs.retrieved_context then it would mean the strucuture is something similar to this: "llm": { "inputs": { "retrieved_context": [...] }, But if you just remove llm.inputs and name it as "retrieved_context" it works.
Hmm okay interesting, So I'm not able to target nested items using dot notation; for instance with your example:
"llm": {
"inputs": {
"retrieved_context": [...]
}
},
using dot notation like llm.inputs.retrieved_context
does not actually target retrieved_context
(This is the reason we actually flattened that data, and created the key the way we did)
however I did realize that it was the .
causing the issue; it seems that you can't use any special characters as separators in the key name, for example something like: llm:inputs:retrieved_context
Are both of those statements accurate?
Hey @AbubakarSaad So I did some more digging here, I think there's a couple of bugs, the main one being: It appears that I can nest data, but I can't do that for example data when creating the labeling interface It seems that there is some difference in how JSON is parsed between the labeling interface preview, the UI file import feature, and the Importing tasks via API.
Thank you!
Hello,
Let me do some testing, there shouldn't be much difference with how JSON is being parsed. LS does endup using API endpoint to show in the UI.
Thank you, Abu
Comment by Abubakar Saad Workflow Run
Describe the bug We get an incorrect formatting error when attempting to import new data.
I believe this error is telling me that the key
llm.inputs.retrieved_context
defined in my interface is not present in the data being uploaded, however it is there.If we import a data file, then add the interface it works fine, but if the interface is already existing we get the error message.
To Reproduce
Example Interface:
example data: fa-test.json
Steps to reproduce the behavior:
Expected behavior Data file is uploaded and rendered through the interface
Screenshots With data input directly into the labeling interface configuration:
When data is uploaded prior to setting up the labeling interface:
When attempting to import data as a file after labeling interface is saved:
Environment (please complete the following information):
Additional context The same example data works if input as data in the labeling interface preview The same example data also renders correctly in the UI if you: