From the course: OpenAI API: Working with Files
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Uploading files - OpenAI API Tutorial
From the course: OpenAI API: Working with Files
Uploading files
- [Instructor] In this video, you'll be learning how to upload the files containing our datasets to openai using the OpenAI Files API. For this purpose, I have added two files to our project, the assistant-queries.txt file, and the spanish-translated-sample-file.jsonl file. First, let's look at the assistant-queries file. Open it and pull this. Yep, to the left. Good. Now, the assistant_queries.txt file contains a list of queries, or prompts to test an openai assistant's responses for the purpose it has been trained for. Each line contains a query to which the assistant's response will be tested to determine the accuracy of its responses. Next, let's take a look at the Spanish translated sample file. This JSON-L file is a file used to train an openai model to learn how to translate prompts to Spanish. If I collapse the files menu so that we can see this file very well, you can see that each line consists of a…