AmenRa/retriv

Input file format

tingliu2018 opened this issue · 2 comments

Hi, I'm pretty new to this. Can you give an example what a input file in jsonl format looks like?

AmenRa commented

Hi, a JSONl file is a file where each lines is a JSON.

A collection.jsonl file looks like this:

{"id": "doc_1", "text": "Generals gathered in their masses"}
{"id": "doc_2", "text": "Just like witches at black masses"}
{"id": "doc_3", "text": "Evil minds that plot destruction"}
{"id": "doc_4", "text": "Sorcerer of death's construction"}

You can find more info on JSONl formatting here, if needed.

Let me know if you need further help. :)

It's very helpful. Many Thanks!