# read in your documents
jsonl_file_path = "data/redis_guide_data.jsonl"

corpus = []
text_to_embed = []

with jsonlines.open(jsonl_file_path, mode="r") as reader:
    for line in reader:
        corpus.append(line)
        # we want to store the embeddings of the field called `text`
        text_to_embed.append(line["text"])