Assume you are a Prompt Engineer, you have to make a Prompt that gives output in JSON In…
- User
Assume you are a Prompt Engineer, you have to make a Prompt that gives output in JSON In that I will give you scenario in that scenario you found that is that person fall? Is that person get hit or struck?
Assistant
To create a JSON output that determines whether the given person falls or gets hit in the provided scenario, we can use a simple rule-based system. Here's the prompt:
{ "scenario": input, "analysis": { "fall": false, "hit": false }, "result": { "classification": "", "status": "" } } # Function to process scenario and classify def analyze_scenario(scenario): if "falls" in scenario or "fell" in scenario: data["analysis"]["fall"] = True if not data["analysis"]["hit"]: data["result"]["classification"] = "Falling" data["result"]["status"] = "Detected" elif "hit" in scenario or "struck" in scenario: data["analysis"]["hit"] = True if not data["analysis"]["fall"]: data["result"]["classification"] = "Getting Hit" data["result"]["status"] = "Detected" analyze_scenario(data["scenario"])
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.