mallm icon indicating copy to clipboard operation
mallm copied to clipboard

Should the inputs, outputs, and references be list of str or str?

Open jpwahle opened this issue 2 years ago • 3 comments

I was wondering why we each example in a dataset is a list of str? Should it not be just str? Many dataset are just using a list of one item.

I guess sometimes you have multiple human references so that makes sense to me. What am I missing?

https://github.com/Multi-Agent-LLMs/mallm/blob/ba8e8cef3333870693274ceceeeeb60a0a758ff8/mallm/utils/types.py#L62-L65

Also, only the context needs to be str. What else can the inputs and outputs be if not str? Can they be dicts or smth?

https://github.com/Multi-Agent-LLMs/mallm/blob/ba8e8cef3333870693274ceceeeeb60a0a758ff8/mallm/utils/types.py#L71-L75

jpwahle avatar Jul 12 '24 14:07 jpwahle

@lkaesberg Git said you wrote this code but feel free to give it to the person that has made this design choice to explain.

jpwahle avatar Jul 12 '24 14:07 jpwahle

I did this to support a wider array of tasks. Some example tasks.

Tasks with multiple inputs: multi-document summarization (MultiNews)

Tasks with multiple contexts: paraphrase type generation (ETPC)

Tasks with multiple references

Currently only str are supported. I did not think about other types yet.

jonas-becker avatar Jul 12 '24 14:07 jonas-becker

Got it, let's keep it this way then. I added checks for things being lists of only string too here: 26c26cb34aae3f2d0de9b265c604c5169c0a1eba

jpwahle avatar Jul 12 '24 14:07 jpwahle