You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assess the similarity of the two provided summaries and return a rating from these options: 'very similar', 'similar', 'general', 'not similar', 'totally not similar'. Provide only the rating.
"""
def seq_ret(n4j, sumq):
rating_list = []
sumk = []
gids = []
sum_query = """
MATCH (s:Summary)
RETURN s.content, s.gid
"""
res = n4j.query(sum_query)
for r in res:
sumk.append(r['s.content'])
gids.append(r['s.gid'])
for sk in sumk:
sk = sk[0]
rate = call_llm(sys_p, "The two summaries for comparison are: \n Summary 1: " + sk + "\n Summary 2: " + sumq[0])