A thank you and a question

#1
by ashercn97 - opened

First, thank you! This is literally exactly what i needed for a problem im having. Like, eerie how perfectly the release was timed for my use-case!

The vision aspect is just... awesome.

One question i have, however, is there a way to specify arrays of objects? Right now, ive been doing something along the lines of:

{
"title": ["string"],
"first_name": ["string"]
}

But, i frequently (majority of runs with each size) run into the issue of the model giving an uneven number of results for each (e.g. 3 title but 2 in first_name).

Im currently using one example for ICL.

Is there a way to structure it s.t. I am making it clear they go together? Or is this out of scope.

Also fun fact im like 15 minutes away from cambridge rn haha

NuMind org

Glad to hear the model is useful for you!

Yes, you can define arrays and nested objects in the template, for example:

{
    "people": [
        {
            "title": ["string"],
            "first_name": ["string"]
        }
    ]
}

Thanks so much!! That is so convenient that it just works.

Out of curiosity, is there a way to indicate optional fields?

NuMind org

Technically no, but we trained the models to encourage putting null or an empty array [] for a particular field if it can't find the info or the field is not relevant to the document.

Oh that makes sense. So i can just put everything and have IT figure out what is optional!

This might not fully match the main discussion, and I feel a bit shy to post it there, so I'm sharing it here as a short sub-discussion :)
I haven’t evaluated the performance yet, but I’ve developed a model that automatically generates a JSON template from plain text.
Unlike typical text-to-json models that require predefined templates, this one builds the template directly from the input text.
I’d love for you to give it a try!

https://huggingface.co/chnaaam/luSI-v1.0

Sign up or log in to comment