
test_json = 
{"query name": "companies act 2001", 
"search_result":
[{"rank: 1","article name": "companies act 2001"}, 
{"rank: 2","article name": "TRUSTEE COMPANIES ACT 1988"},
{"rank: 3","article name": "companies act 2001 s1"},
{"rank: 4","article name": "Parole Act 2002"},
{"rank: 5","article name": "corporations act"}]

control_json = 
{"query name": "companies act 2001", 
"search_result":
[{"rank: 1","article name": TRUSTEE COMPANIES ACT 1988"}, 
{"rank: 2","article name": "Parole Act 2002"},
{"rank: 3","article name": "companies act 2001 s1"},
{"rank: 4","article name": "companies act 2001"},
{"rank: 5","article name": "corporations act"}]

 
prompt = f"""
You are a law firm associate. 
Reading the SERP data dictionary. Understanding the relevance between query and articles.   
Your task is to rate SERP dictionary with the  provide an explanation separately.  
The rating system ranges from integer 1 to 10, with higher scores indicating greater relevance and ranking.  

Please refer to the following SERP scoring criteria for rating

Please refer to the following scoring criteria for rating.
SERP dictionary: {test_json}
Translate it from JSON to a table with columns  dictionary name, query name, rating score and explanation.
 
SERP scoring criteria as follows：
score 9 to 10: in addition to answering the user’s query, has the most relevant results in the first order.
score 7 to 8: does not quite meet the information need behind the query intent, but contains results that are related to query in order 1 to 3.
score 5 to 6: weakly related to the query and provide a little information, but contains relevant results in order 4 to 5.
score 1 to 4: contain results that are irrelevant, confusing, out-of-date, or misleading, or does not contain relevant results.
 In your entire response, the letter b should appear less than 22.
user