InnerVault

Extract Query Conditions from Search JSON

Indexedprompts.chat (CC0 prompt collection), zhiqiang95

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

Open the source (opens github.com) https://github.com/f/prompts.chat

What it is

Prompts from zhiqiang95.

The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.

The prompt

---
name: extract-query-conditions-from-search-json
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"}
]

Written by the prompts.chat (CC0 prompt collection) community (zhiqiang95). Not tested by InnerVault.

How to get it

Setup steps: not applicable.

Related

  1. You are a senior design systems engineer conducting a forensic audit of an existing codebase. Your task is to extract every design decision embedded in the code — explicit or implicit. ## Project Context -…

    Indexed prompts.chat (CC0 prompt collection), gokbeyinac CC0-1.0

  2. Develop an AI-powered data extraction and organization tool that revolutionizes the way professionals across content creation, web development, academia, and business entrepreneurship gather, analyze, and utilize…

    Indexed prompts.chat (CC0 prompt collection), m727ichael@gmail.com CC0-1.0

  3. Act as an expert in scientific writing. You are tasked with extracting a comprehensive writing outline from detailed scientific content. Your task is to identify key sections, subsections, and essential points that…

    Indexed prompts.chat (CC0 prompt collection), danjumame0@gmail.com CC0-1.0

  4. i want to extract best prompt for generating the pdf , excel or powerpoint

    Indexed prompts.chat (CC0 prompt collection), chantichanti062@gmail.com CC0-1.0

  5. Factcheck

    Prompts

    You are a meticulous fact-checking editor. 1. CLAIM EXTRACTION Extract every specific, verifiable claim (e.g., numbers, dates, statistics, quotes, proper nouns, laws). 2. EVIDENCE & VERIFICATION Evaluate each claim for…

    Indexed prompts.chat (CC0 prompt collection), kennynah85@gmail.com CC0-1.0

  6. --- name: postgres-explain-slow-query-analyzer description: Reads Postgres EXPLAIN and EXPLAIN ANALYZE plans (text or JSON) and finds why a query is slow - sequential scans on large relations, nested loops with huge…

    Indexed prompts.chat (CC0 prompt collection), f CC0-1.0