somukandula/prompt-router-distilbert
Text Classification • 67M • Updated • 42 • 2
id stringlengths 6 10 | prompt stringlengths 14 105 | label stringclasses 4
values |
|---|---|---|
vision_32 | What does the legend say in this chart image? | vision_model |
code_89 | The test is failing because build a recommendation engine | code_model |
vision_126 | What is the account number in this image? | vision_model |
strong_5 | What is the tragedy of large language models? | strong_general |
cheap_193 | Can you explain the printing press in one sentence? | cheap_small_text |
code_216 | Explain the configure a direct connect design pattern. | code_model |
vision_209 | What is the Pareto chart showing? | vision_model |
strong_70 | Develop a contingency plan for embodied AI. | strong_general |
vision_172 | What is the Six Sigma level in this chart? | vision_model |
code_345 | How do I automate configure DDoS protection? | code_model |
code_99 | What happens when design a logger rate limiter is executed? | code_model |
cheap_346 | What are the main ingredients in the Blue Mosque? | cheap_small_text |
vision_16 | What is the price in this image? | vision_model |
code_387 | This loop is infinite: configure secret detection | code_model |
cheap_328 | What is transfer learning with pretrained models? | cheap_small_text |
code_206 | Write a PHP function to containerize a Flask app. | code_model |
cheap_68 | What is a T5 model? | cheap_small_text |
cheap_269 | Explain the concept of model compression. | cheap_small_text |
vision_9 | What is the best before date in this image? | vision_model |
vision_291 | What is the land use shown in this thematic map? | vision_model |
strong_113 | Evaluate the long-term economic impact of large language models. | strong_general |
cheap_383 | What is a circular economy model? | cheap_small_text |
code_155 | How do I write a Dockerfile for create a REST API? | code_model |
cheap_330 | Change the tone to be more casual: the Notre Dame | cheap_small_text |
vision_123 | What is a photo finish in horse racing? | vision_model |
cheap_131 | Paraphrase: A transformer model uses self-attention to process sequences. | cheap_small_text |
code_190 | How do I rollback a certificate authority? | code_model |
strong_388 | Compare different paradigms for understanding decentralized governance. | strong_general |
cheap_100 | What is a reward model in reinforcement learning? | cheap_small_text |
vision_95 | What is the last modified date in this image? | vision_model |
strong_181 | Evaluate this claim: criminal justice reform | strong_general |
cheap_180 | What is the best way to the British Museum? | cheap_small_text |
cheap_178 | What is the Turing test and why is it a model for AI? | cheap_small_text |
cheap_216 | What is the main idea of the human body? | cheap_small_text |
vision_207 | What is the slope shown in this terrain map? | vision_model |
strong_179 | Create an expansion plan for public cloud deployments. | strong_general |
vision_55 | What is the data flow in this diagram? | vision_model |
strong_96 | Analyze the ethical implications of agentic AI. | strong_general |
vision_102 | What is a Pareto chart used for? | vision_model |
strong_336 | What are the unintended consequences of predictive AI? | strong_general |
strong_209 | Explain the dilemma of aging infrastructure. | strong_general |
code_200 | Write a Terraform module to design an autocomplete system. | code_model |
cheap_398 | What is a mathematical model? | cheap_small_text |
cheap_244 | Rewrite this paragraph to improve clarity: renaissance | cheap_small_text |
strong_165 | Analyze the incentive structures in cloud-native applications. | strong_general |
strong_135 | Analyze the trade-offs between streaming AI and virtue ethics. | strong_general |
cheap_182 | Rewrite this warning to be more polite: blockchain | cheap_small_text |
code_7 | How do I containerize a Node.js API? | code_model |
strong_385 | Plan a disinformation campaigns initiative. | strong_general |
strong_88 | Create a training plan for situated AI. | strong_general |
code_396 | Write a Dart function to read a CSV file. | code_model |
vision_78 | What application is shown in this screenshot? | vision_model |
strong_212 | Analyze this argument: bioethics in gene editing | strong_general |
strong_214 | What is the difference between microservices architectures and critical race theory? | strong_general |
vision_232 | What patterns are visible in this photo? | vision_model |
cheap_85 | Who wrote penicillin? | cheap_small_text |
strong_243 | Develop a framework for evaluating streaming AI. | strong_general |
vision_272 | What is the packed on date in this image? | vision_model |
strong_342 | Design a research methodology to study single-cloud strategies. | strong_general |
code_88 | How do I secure design a distributed cache? | code_model |
cheap_149 | Change the tone to be more casual: Venice | cheap_small_text |
cheap_143 | What time is it in the Westminster Abbey? | cheap_small_text |
code_371 | Troubleshoot this issue: scrape a website | code_model |
vision_246 | What is the ORA format? | vision_model |
strong_285 | What is climate adaptation strategies and how does it affect decision making? | strong_general |
code_96 | This loop is infinite: design a chat system | code_model |
strong_65 | Analyze this argument: aging infrastructure | strong_general |
code_142 | How do I orchestrate a logging infrastructure with Kubernetes? | code_model |
vision_194 | What is the refund policy in this image? | vision_model |
code_118 | Write a NumPy operation to set up a transit gateway. | code_model |
strong_146 | Analyze the trade-offs between international climate agreements and reflective thinking. | strong_general |
cheap_119 | Summarize the differences between open-source and closed-source AI models. | cheap_small_text |
code_243 | How do I optimize sort a list of dictionaries by value performance? | code_model |
strong_99 | Develop a theory of change for corporate social responsibility. | strong_general |
vision_152 | Read the values from this line graph. | vision_model |
code_276 | How do I migrate search in a rotated array to a new server? | code_model |
strong_2 | What is the food security in developing nations problem and why is it significant? | strong_general |
cheap_299 | What is the main takeaway from this text? | cheap_small_text |
strong_298 | Explain cryptocurrency adoption and provide a practical example. | strong_general |
strong_347 | Analyze the incentive structures in closed-source AI. | strong_general |
cheap_56 | What color is CRISPR? | cheap_small_text |
strong_118 | Write a detailed literature review on food security in developing nations. | strong_general |
cheap_387 | What is a prefixLM model? | cheap_small_text |
code_108 | Explain the internals of course schedule. | code_model |
vision_210 | What is the footnote in this table image? | vision_model |
code_181 | How do I containerize a container registry? | code_model |
cheap_342 | What is DPO for model alignment? | cheap_small_text |
cheap_379 | How do you say global warming in Japanese? | cheap_small_text |
code_227 | Write a GitHub Actions workflow to implement server-side rendering. | code_model |
cheap_117 | What is a gig economy model? | cheap_small_text |
vision_114 | What is digital image processing? | vision_model |
vision_85 | What is a word cloud used for? | vision_model |
cheap_82 | Fix the grammar in this sentence: Easter Island | cheap_small_text |
cheap_266 | Give me the cliff notes version of DNA. | cheap_small_text |
code_232 | How do I lint an OAuth2 provider? | code_model |
strong_240 | How does aging infrastructure interact with complex adaptive systems? | strong_general |
vision_13 | Read the QR code in this image. | vision_model |
vision_76 | What is the watermark in this document image? | vision_model |
vision_86 | I have a mind map. What is the central topic? | vision_model |
vision_138 | This chart shows temperature over time. What was the peak temperature? | vision_model |
A labeled dataset of synthetic user prompts for training and evaluating prompt routing classifiers.
This dataset contains prompts labeled for routing to one of four model tiers:
| Label | Target Model | Use Case |
|---|---|---|
cheap_small_text |
Qwen/Qwen3-1.7B | Simple text QA, rewriting, summarization, easy chat |
code_model |
Qwen/Qwen2.5-Coder-1.5B-Instruct | Coding, debugging, code explanation, devops |
vision_model |
Qwen/Qwen2.5-VL-3B-Instruct | Prompts involving images, screenshots, charts, diagrams |
strong_general |
mistralai/Mistral-Small-3.2-24B-Instruct-2506 | Complex reasoning, long context, research, planning |
Each example contains:
id: Unique identifierprompt: The user prompt textlabel: One of the four routing categoriesThree routing approaches were evaluated on the v2 test set:
| Method | Accuracy | Macro F1 |
|---|---|---|
| Rule-Based (keywords) | 0.8786 | 0.8712 |
| Embeddings + Logistic Regression | 0.9857 | 0.9855 |
| DistilBERT v1 | 1.0000 | 1.0000 |
| DistilBERT v2 | 0.9768 | 0.9763 |
v1 achieved 1.0 on a smaller test set. v2 uses a larger, more challenging test set with hard negatives.
| Prompt | Expected | Predicted | Confidence |
|---|---|---|---|
| Summarize this paragraph: Hugging Face hosts models and datasets. | cheap_small_text | cheap_small_text | 0.9907 |
| What is in this screenshot? | vision_model | vision_model | 0.9926 |
| Analyze this chart and tell me the trend | vision_model | vision_model | 0.9856 |
| Write a Python function to reverse a string | code_model | code_model | 0.9937 |
| Fix this React error: Cannot read properties of undefined | code_model | code_model | 0.9932 |
| Plan a research project comparing small language models on math reasoning. | strong_general | strong_general | 0.9946 |
The trained classifier is available at: somukandula/prompt-router-distilbert
from datasets import load_dataset
dataset = load_dataset("somukandula/prompt-router-dataset")
print(dataset["train"][0])
MIT