Extracting more than one result

#3
by yjernite - opened

Is there a specific trick to having the model return more than one result?

Currently I'm having to run it independently on each paragraph in a document to get more than one entity (sample mode, top_p=0.95, temp=0.01)

NuMind org

You can use an array in the template.

E.g. {"names": ["string"]} or {"people": [{"name": "string", "age": "number"}]}

Can you share what exactly you are trying to extract and the template you're using?

Hi, sorry for the late reply!

I was trying to extract multiple expert quotes from a news article, with a template like (actually a bit more complex) {"expert_quote": "string", "expert_name": "string", ... }

I hadn't realized that the format supported arrays of templates (your second example), will try that thank you!

Sign up or log in to comment