Skip to content
How to download a j...
 
Notifications
Clear all

How to download a jsonl file from text

5 Posts
2 Users
0 Reactions
4 Views
Vivien_Chantrel
(@vivien_chantrel)
Posts: 3
Active Member
Topic starter
 

Hello!

I have a question regarding creating a file from text.

To elaborate, I'm currently working on generating JSONL files for fine-tuning GPT models. I've successfully created the JSONL text and stored it in a variable. My next step is to upload this data into the OpenAI module.

Is there a method to create a JSONL file? I attempted using Google Drive and the 'Create File' module, but the resulting file extension was .txt, which OpenAI does not accept.

Thanks in advance for your assistance!

 
Posted : 07/01/2024 2:36 pm
samliew
(@samliew)
Posts: 293
Reputable Member
 

You can generate a JSON/JSONL file using the Google Drive module "Upload a File".

You simply need to enclose the string data within the toBinary function:

Alternatively, you can upload the JSON/L data directly to OpenAI in a similar fashion.

 
Posted : 08/01/2024 2:13 am
Vivien_Chantrel
(@vivien_chantrel)
Posts: 3
Active Member
Topic starter
 

Hi Sam !

Thanks for your response.

I previously attempted using Google Drive to create a .jsonl file, but it resulted in a file named name.jsonl.txt. This was likely due to not utilizing the tobinary function.

I will proceed with trying that.

Regarding uploading a file to the ChatGPT module, I've considered this. However, if I recall correctly, we cannot select a specific assistant for customization, is that right? If so, I must be overlooking something. If not, this could be a valuable new feature for the module.

Have a great day!

 
Posted : 08/01/2024 3:39 pm
samliew
(@samliew)
Posts: 293
Reputable Member
 

No, the primary reason is that you cannot use “Create a File”, as this action only generates plain text files.

You will need to use “Upload a File” instead.

 
Posted : 08/01/2024 4:03 pm
Vivien_Chantrel
(@vivien_chantrel)
Posts: 3
Active Member
Topic starter
 

Ah, my apologies, I realized I created a file but didn't actually upload it.

Thank you for this information; it will be very helpful for my future scenarios.

:pray:

 
Posted : 08/01/2024 4:06 pm
Share: