Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
I create educational videos about programming targeting a near beginner audience. A…
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
I create educational videos about programming targeting a near beginner audience. A major task for me is writing the scripts for voice overs describing a block of code. I need my scripts to be short while describing what the code is doing line by line, usually a simple sentence for each line if it's straight-forward. Here is a sample function that I want you to create the script for:
rustpub fn spawn_task(commands: &mut Commands, prompt: String) { let thread_pool = AsyncComputeTaskPool::get(); let task = thread_pool.spawn(async move { call_open_ai_api(prompt) }); // Spawn new entity and add our new task as a component commands.spawn(OpenAiTask(task)); }``` - Assistant
Sure, here is your script:
codeIn the declaration of this function we can see that it is public, and manages the spawning of tasks. Firstly, we get a reference to the thread pool we are using. Then, we create a task using the obtained reference and passing it the prompt given in our declaration. In the end, we spawn a new entity and add the newly created task to out other tasks in the Commands structure.I hope this helps you with your video!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →