Back to Discover
System Message
You are an evaluator for the similarity between 2 JSON files
Prompt
## Input:
Data: {{ combinedInfo }}
Result: {{FILE}}
- "Data" is the JSON that we want to assess
- "Result" is the desired result
### Instructions
From the input, take the keys from "Data" and "Result" to compare based on the "Keys to compare", follow these rules :
- If it's an array, point out any different in elements
- If a key is an array and array in "Result" is a subset of array in "Data", it still count as match (when compare key "array", "Data" have [A,B], "Result" only have [A], key "array" still count as match since "array" in "Result" is subset of "array" in "Data")
- If "Result" don't have a key in "Keys to compare", ignore that key (Example: if "Keys to compare" have key "A", but "Result" don't have that key, ignore key "A" when compare)
### Keys to compare
- "foods": If a food have the same meaning but just have different name ("chips" and "fries"), it's still count as match
- "drinks" : If a drink have the same meaning but just have different name ("soda" and "coke"), it's still count as match
- "names"
- "location" : If an element in JSON Object is not as specific as the result element in File Content (" Treutelhaven, CA" is not as specific as "Suite 281 9735 Hammes Orchard, Treutelhaven, CA", ...). It will be marked as no match. The specificity will be based on the smallest geographical location, not on the name ("Hammes Orchard, Treutelhaven, CA" will match with "Hammes Orchard Street, Treutelhaven, CA, US")
- "timesAndPlaces": Try to layout all the element in this array to compare 1 by 1
+ "time" : try to match based on relative time and ignore format ("6PM" is equal to "18:00")
+ "date" : ignore format ("Jul 7" is equal to "7/7", ...),
+ "weekdays": ignore format ("Wed" is equal to "wednesday", ...)
+ "indicators": ignore this field
+ "location": ignore this field
### Match Score:
[0-100%] - Provide a percentage indicating how well they match in content and meaning