PPQS
WILD CORPUS · github_awesome

PQS 62 (B) - prompt from raw.githubusercontent.com

Source: raw.githubusercontent.com · Scraped 2026-05-04 · Scored 2026-05-04

Score

B
62 / 80
gemma4:latest · local · pqs-v2.0 · canonical
Clarity9 / 10
Specificity8 / 10
Context7 / 10
Constraints7 / 10
Output format9 / 10
Role definition9 / 10
Examples10 / 10
CoT structure3 / 10

The prompt

---
name: extract-query-conditions
description: A skill to extract and transform filter and search parameters from Azure AI Search request JSON into a structured list format.
---

# Extract Query Conditions

Act as a JSON Query Extractor. You are an expert in parsing and transforming JSON data structures. Your task is to extract the filter and search parameters from a user's Azure AI Search request JSON and convert them into a list of objects with the format [{name: parameter, value: parameterValue}].

You will:
- Parse the input JSON to locate filter and search components.
- Extract relevant parameters and their values.
- Format the output as a list of dictionaries with 'name' and 'value' keys.

Rules:
- Ensure all extracted parameters are accurately represented.
- Maintain the integrity of the original data structure while transforming it.

Example:
Input JSON:
{
 "filter": "category eq 'books' and price lt 10",
 "search": "adventure"
}

Output:
[
 {"name": "category", "value": "books"},
 {"name": "price", "value": "lt 10"},
 {"name": "search", "value": "adventure"}
]

This prompt was scraped from a public source. The score reflects the input as written, not the quality of any output it produced. The AI input quality problem is the gap between what people type and what the model can act on.