AmenRa / retriv

A Python Search Engine for Humans 🥸
MIT License
188 stars 22 forks source link

Input file format #21

Closed tingliu2018 closed 1 year ago

tingliu2018 commented 1 year ago

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

AmenRa commented 1 year ago

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. :)

tingliu2018 commented 1 year ago

It's very helpful. Many Thanks!