Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
Write me POSIX-shellscript to convert Celsius to Kelvin.
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
Write me POSIX-shellscript to convert Celsius to Kelvin.
- Assistant
Here’s a script that’ll output the temperature in Kelvin given a temperature in Celsius:
sh#!/usr/bin/env sh if [ "$#" -ne 1 ]; then echo "Wrong usage! Usage: $0 <Temperature in Celsius>" >&2 fi echo $(($1 + 273))Note that this program doesn’t compute the exact value, as POSIX shell cannot perform arithmetic on fractional numbers. If your target systems have
bcinstalled, you can use the following script:sh#!/usr/bin/env sh if [ "$#" -ne 1 ]; then echo "Wrong usage! Usage: $0 <Temperature in Celsius>" >&2 fi echo "$1 + 273.15" | bc
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 →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)