Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
write a regex expression that find graphql queries or mutations in a file
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
write a regex expression that find graphql queries or mutations in a file
- Assistant
To find GraphQL queries or mutations in a file, you can use the following regular expression:
/(query|mutation)\s*\{\s*[\w\s\(\)\:\,]+\s*\}/gThis regex will match text that starts with either query or mutation, followed by optional whitespace, an open curly brace {, optional whitespace, one or more characters (letters, numbers, whitespace, parentheses, colons, or commas), optional whitespace, and a close curly brace }. The g flag at the end is to perform a global search and find all matches within the file.
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 →