Dataset Viewer
Auto-converted to Parquet Duplicate
original topic
stringclasses
21 values
primary topic
stringclasses
228 values
secondary topic
stringlengths
6
46
message
stringlengths
9
802
Coding
Programming languages
JavaScript debugging
I'm getting a 'undefined' error in my JavaScript function — how do I debug it?
Coding
Programming languages
JavaScript debugging
How can I set breakpoints in JavaScript to step through my code?
Coding
Programming languages
JavaScript debugging
I’m stuck on a TypeError — can you help me figure out why this line is failing?
Coding
Programming languages
JavaScript debugging
What’s the best way to log variables during debugging in JavaScript?
Coding
Programming languages
JavaScript debugging
I’m new to JavaScript debugging — can you walk me through setting up Chrome DevTools?
Coding
Programming languages
JavaScript debugging
My function isn’t working as expected — how do I trace where the bug is?
Coding
Programming languages
JavaScript debugging
How do I use the 'Call Stack' in Chrome DevTools to understand where my error originated?
Coding
Programming languages
JavaScript debugging
I’m getting a 'ReferenceError' — what’s the most common cause and how do I fix it?
Coding
Programming languages
JavaScript debugging
Can you help me debug this async function that’s not resolving properly?
Coding
Programming languages
JavaScript debugging
I want to step through my code line by line — how do I do that in JavaScript?
Coding
Programming languages
JavaScript debugging
Why is my variable undefined even though I declared it? How do I debug this?
Coding
Programming languages
JavaScript debugging
How do I inspect the value of a variable at runtime in JavaScript?
Coding
Programming languages
JavaScript debugging
I’m getting a 'SyntaxError' — can you help me spot the mistake in my code?
Coding
Programming languages
JavaScript debugging
What’s the difference between console.log and console.error in debugging?
Coding
Programming languages
JavaScript debugging
How do I debug a JavaScript function that’s not returning the expected result?
Coding
Programming languages
Ruby gem installation
I'm trying to install a Ruby gem from GitHub, but gem install fails. How do I do it correctly?
Coding
Programming languages
Ruby gem installation
Why can't I install a Ruby gem, and what should I check before proceeding?
Coding
Programming languages
Ruby gem installation
How do I install a Ruby gem with a specific version and its dependencies?
Coding
Programming languages
Ruby gem installation
I get an error saying 'gem install failed: could not find gem'. What’s the fix?
Coding
Programming languages
Ruby gem installation
Can you show me how to install a Ruby gem from a private GitHub repo?
Coding
Programming languages
Ruby gem installation
I want to install a gem that requires a specific version of another gem. How do I handle that?
Coding
Programming languages
Ruby gem installation
How do I install a Ruby gem locally without affecting my global Ruby environment?
Coding
Programming languages
Ruby gem installation
I’m getting 'Gem::RemoteFetcher::FetchError' when trying to install. What’s wrong?
Coding
Programming languages
Ruby gem installation
How can I install a Ruby gem that’s not on RubyGems.org?
Coding
Programming languages
Ruby gem installation
I need to install a gem with specific flags. What are the common flags for gem install?
Coding
Programming languages
Ruby gem installation
Why does gem install sometimes fail with 'no such file or directory'? How do I fix it?
Coding
Programming languages
Ruby gem installation
How do I install a Ruby gem that depends on a gem with a specific version?
Coding
Programming languages
Ruby gem installation
I’m trying to install a gem from a Git repository, but it’s not working. Can you help?
Coding
Programming languages
Ruby gem installation
How can I install a Ruby gem with a specific Ruby version and ensure compatibility?
Coding
Programming languages
Ruby gem installation
I want to install a gem that requires a specific system dependency. How do I handle that?
Coding
Programming languages
Python syntax help
I'm trying to understand how to use if-else statements in Python — can you show me a simple example?
Coding
Programming languages
Python syntax help
How do I write a list comprehension in Python to filter even numbers from a list?
Coding
Programming languages
Python syntax help
Can you help me define a function with default parameters in Python? I’m stuck on the syntax.
Coding
Programming languages
Python syntax help
I keep getting a 'SyntaxError' when I try to use a for loop with a list — what’s the correct way?
Coding
Programming languages
Python syntax help
How do I pass arguments to a function in Python if I want to use default values for some parameters?
Coding
Programming languages
Python syntax help
I’m confused about the difference between '==' and 'is' in Python — can you explain with syntax examples?
Coding
Programming languages
Python syntax help
What’s the right syntax for defining a class with a method that takes a parameter?
Coding
Programming languages
Python syntax help
I need to use a while loop to keep asking for input until the user enters 'quit' — how do I write that?
Coding
Programming languages
Python syntax help
How do I use the 'in' operator to check if an item exists in a list in Python?
Coding
Programming languages
Python syntax help
Can you show me how to use a dictionary comprehension in Python with a condition?
Coding
Programming languages
Python syntax help
I’m trying to use a try-except block to handle a ValueError — what’s the correct syntax?
Coding
Programming languages
Python syntax help
How do I define a function that returns a list of strings using a generator expression?
Coding
Programming languages
Python syntax help
I’m getting an error saying 'unexpected indent' — what’s the correct way to format nested if statements?
Coding
Programming languages
Python syntax help
Can you explain how to use the 'enumerate' function with a for loop in Python?
Coding
Programming languages
Python syntax help
I need to use a lambda function to sort a list of tuples — what’s the correct syntax?
Coding
Programming languages
Java exception handling
How do I handle a NullPointerException in Java using a try-catch block?
Coding
Programming languages
Java exception handling
Can you show me how to properly use a finally block in Java exception handling?
Coding
Programming languages
Java exception handling
What are the best practices for exception handling in multithreaded Java applications?
Coding
Programming languages
Java exception handling
I’m getting a NullPointerException when I try to access a null object — how do I fix it?
Coding
Programming languages
Java exception handling
Should I always use a finally block in Java, or is it optional?
Coding
Programming languages
Java exception handling
How can I catch and handle multiple exceptions in one try-catch block in Java?
Coding
Programming languages
Java exception handling
What’s the difference between checked and unchecked exceptions in Java, and how do I handle them?
Coding
Programming languages
Java exception handling
I’m writing a method that might throw an IOException — how should I handle it?
Coding
Programming languages
Java exception handling
Can you explain how to use try-with-resources in Java for exception handling?
Coding
Programming languages
Java exception handling
Why is my finally block not running when an exception is thrown in Java?
Coding
Programming languages
Java exception handling
How do I log exceptions in Java without crashing the program?
Coding
Programming languages
Java exception handling
I’m using threads and getting exceptions — how do I handle them properly?
Coding
Programming languages
Java exception handling
What’s the correct way to handle exceptions in Java when I’m working with user input?
Coding
Programming languages
Java exception handling
Can you show me an example of a Java method that uses exception handling to avoid crashes?
Coding
Programming languages
Java exception handling
How do I handle exceptions in Java when I’m working with file I/O operations?
Coding
Programming languages
C++ function review
Can you review this C++ function for memory leaks? I’m worried it might not be freeing allocated memory properly.
Coding
Programming languages
C++ function review
I need help reviewing the function signature — what are the best practices for parameters and return types in C++?
Coding
Programming languages
C++ function review
What common mistakes should I look for when reviewing C++ functions in production code?
Coding
Programming languages
C++ function review
Help me debug this C++ function — it’s crashing on large inputs and I can’t figure out why.
Coding
Programming languages
C++ function review
Review this C++ function — is the use of raw pointers safe here, or should I use smart pointers?
Coding
Programming languages
C++ function review
I’m reviewing a legacy C++ function — can you spot any potential issues with its design or performance?
Coding
Programming languages
C++ function review
What’s the best way to review C++ functions for thread safety? I’m working on a multi-threaded app.
Coding
Programming languages
C++ function review
Can you explain how to review C++ functions for side effects? I’m trying to make my code more predictable.
Coding
Programming languages
C++ function review
I’m reviewing a C++ function that uses RAII — is there anything I should be looking for to ensure it’s correctly implemented?
Coding
Programming languages
C++ function review
Help me review this C++ function — it’s not compiling, and I’m not sure if it’s a syntax error or a logic issue.
Coding
Programming languages
C++ function review
What are the key things to check when reviewing C++ functions for correctness in a real-world application?
Coding
Programming languages
C++ function review
I need to review a C++ function that’s supposed to handle exceptions — are there any common pitfalls I should watch out for?
Coding
Programming languages
C++ function review
Can you review this C++ function for performance — is it using the most efficient algorithm or data structure?
Coding
Programming languages
C++ function review
I’m reviewing a C++ function that’s passed by reference — is there anything wrong with how I’m using it?
Coding
Programming languages
C++ function review
Help me review this C++ function — it’s not behaving as expected, and I’m not sure if it’s a bug or a design flaw.
Coding
Programming languages
Go channel usage
How do I use Go channels to process a list of files concurrently?
Coding
Programming languages
Go channel usage
Can you show me how to handle channel timeouts in Go when reading from a goroutine?
Coding
Programming languages
Go channel usage
I’m trying to synchronize multiple goroutines using channels — what’s the best pattern?
Coding
Programming languages
Go channel usage
How can I pass data between goroutines using channels without blocking?
Coding
Programming languages
Go channel usage
What’s the difference between buffered and unbuffered channels in Go?
Coding
Programming languages
Go channel usage
I’m getting a deadlock when using channels — how do I fix it?
Coding
Programming languages
Go channel usage
How do I close a channel safely in Go to signal goroutines to stop?
Coding
Programming languages
Go channel usage
Can you explain how to use channels for task queues in Go?
Coding
Programming languages
Go channel usage
I want to send a value to a channel and wait for a response — how do I do that?
Coding
Programming languages
Go channel usage
How do I handle errors when reading from a channel in Go?
Coding
Programming languages
Go channel usage
What’s the best way to use channels for communication between main and worker goroutines?
Coding
Programming languages
Go channel usage
I’m confused about channel direction — how do I know which side should send or receive?
Coding
Programming languages
Go channel usage
How can I use channels to implement a producer-consumer pattern in Go?
Coding
Programming languages
Go channel usage
Can you show me how to use channels to avoid race conditions in Go?
Coding
Programming languages
Go channel usage
I need to throttle goroutines using channels — what’s the recommended approach?
Coding
Programming languages
PHP array manipulation
How do I merge two PHP arrays without overwriting existing keys?
Coding
Programming languages
PHP array manipulation
Can you show me how to remove duplicates from a PHP array?
Coding
Programming languages
PHP array manipulation
I need to sort a PHP array by multiple columns — how do I do that?
Coding
Programming languages
PHP array manipulation
How can I flatten a multi-dimensional PHP array into a single array?
Coding
Programming languages
PHP array manipulation
I’m trying to filter a PHP array based on a condition — can you help?
Coding
Programming languages
PHP array manipulation
How do I iterate over a PHP array and modify each element?
Coding
Programming languages
PHP array manipulation
What’s the best way to check if a key exists in a PHP array before accessing it?
Coding
Programming languages
PHP array manipulation
I want to group items in a PHP array by a specific key — how do I do that?
Coding
Programming languages
PHP array manipulation
How can I reverse the order of a PHP array in PHP?
Coding
Programming languages
PHP array manipulation
I’m having trouble with array keys — how do I reset them to start from 0?
End of preview. Expand in Data Studio

Diverse LLM Prompts 34k

Synthetic user prompts for Androcles 2, Brave's in-house prompt classification model. Each row is a realistic user message to an LLM assistant, generated from one of 21 intent categories and grounded in Brave Search results.

This is the raw synthetic component of the Androcles training pipeline. The final set also includes labelled data from LMSYS/lmsys-chat-1m which we can't share due to licensing concerns

All data in this dataset is synthetically generated. No Brave Browser or Leo user data was used.

Dataset Summary

Rows ~34,772
Task Synthetic prompt generation
Input Topic metadata (original topic, primary topic, secondary topic)
Output Free-text user prompt (message)
Languages Primarily English, with multilingual examples
Composition 100% synthetic, search-grounded LLM-generated prompts

Dataset Structure

Data Fields

Field Type Description
original topic string Seed intent label — one of 21 Androcles routing categories
primary topic string LLM-expanded sub-domain within the seed label (~228 unique values)
secondary topic string Specific subtopic used for search grounding and message generation (~2,100 unique values)
message string Synthetic user prompt text

Seed Labels

Each original topic corresponds to one of the 21 intent categories used by Androcles:

Label Short Description
Brave The user is asking about Brave products — Brave Browser, Brave Search, Brave Rewards
Browser The user wants Leo to take actions in the browser — clicking, filling forms, navigating pages
Choice The user is deciding between two or more specific options and wants help choosing
Coding Anything related to coding — writing, reading, understanding, explaining, or running code in any language
Data Analysis The user has data they want analysed, visualised, or interpreted — CSV, JSON, a table, or raw numbers
Diagrams The user wants a diagram, flowchart, chart, or visual representation of a system or process
Fact Checking The user is asking whether a claim, statement, or piece of information is true or false
Finance The user is asking about money — currency exchange, stock prices, etc.
Image Generation Generating an image — the user is explicitly asking for an image to be created or produced
Math / Calculations Anything involving numbers, arithmetic, algebra, statistics, or mathematical reasoning
Multilingualism The user is writing in or asking for a response in a non-English language
News The user is asking about current events, recent news, or what's happening in the world
Recommendation The user is asking for a recommendation — a product, service, tool, or option suited to their needs
Sports The user is asking about sports — scores, fixtures, standings, results, or sports news
Structured Writing The user wants help writing something structured and polished — a cover letter, essay, email, report, blog post, etc.
Summarisation The user wants a summary of something — an article, video, document, or piece of text
Thinking The user wants Leo to think through something carefully and methodically — a complex problem, a multi-step question, or a nuanced topic
Time-critical The request is urgent or time-sensitive — the user needs a fast answer, not a thorough one
Translation Translating text from one language to another
Travel Planning The user is planning a trip — flights, hotels, itineraries, destinations, things to do
Weather The user is asking about the weather — current conditions, forecasts, or climate for a location

Example

{
  "original topic": "Coding",
  "primary topic": "Programming languages",
  "secondary topic": "JavaScript debugging",
  "message": "I'm getting a 'undefined' error in my JavaScript function — how do I debug it?"
}

How the Dataset Was Created

Dataset generation scripts can be found here.

For each of the 21 seed labels, the Topic Search Generator (configured via androcles_chat_dataset.yaml):

  1. Expands topics — uses an LLM to produce 5 primary sub-domains and 10 secondary subtopics per primary domain.
  2. Grounds in real search — generates search queries for each secondary topic and executes them via Brave Search (MCP).
  3. Writes user messages — uses search context to produce realistic, conversational LLM user prompts aligned with the target label's definition.

Each seed label has a detailed topic context in the config that constrains what kinds of messages are generated (e.g. Image Generation prompts ask the LLM to create an image, not to explain how image models work).

By adding context from web search, we can produce diverse and useful prompts even with a small, locally-running model.

Generation parameters (from androcles_chat_dataset.yaml):

Parameter Value
Seed labels 21
Primary topics per seed 5
Secondary topics per primary 10
Messages per secondary topic 30
Theoretical maximum ~31,500 rows

Models and services used:

Component Model / Service
Topic expansion & message writing Qwen/Qwen3-14B (temperature 0.0)
Web search grounding Brave Search via MCP

Usage

Load from Hugging Face

from datasets import load_dataset

ds = load_dataset("bravesoftware/diverse-llm-prompts-34k")
print(ds)
print(ds["train"][0])

Filter by seed label

coding_prompts = ds["train"].filter(lambda row: row["original topic"] == "Coding")

Regenerating the Dataset

cd dataset_generator
python topic_search_generator.py --config configs/androcles_chat_dataset.yaml

Generation supports resume (generation.resume: true) — already-completed topic combinations are skipped on re-run.

License

This dataset is released under the Apache 2.0 License.

Downloads last month
63

Models trained or fine-tuned on bravesoftware/diverse-llm-prompts-34k

Collection including bravesoftware/diverse-llm-prompts-34k