sileod commited on
Commit
5fcba36
·
verified ·
1 Parent(s): 8dcbe4e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -460,6 +460,6 @@ def jaccard(list1, list2):
460
  union = (len(set(list1)) + len(set(list2))) - intersection
461
  return float(intersection) / union
462
 
463
- df['yp']=df.prompt.parallel_apply(complete_m(m,num_retries=5))
464
- df['metric']=df.apply(lambda x: jaccard(parse(x.yp), x.evidence_indices), axis=1)
465
  ```
 
460
  union = (len(set(list1)) + len(set(list2))) - intersection
461
  return float(intersection) / union
462
 
463
+ df['prediction']=df.prompt.parallel_apply(complete_m(m,num_retries=5)) # plug in your llm
464
+ df['metric']=df.apply(lambda x: jaccard(parse(x.prediction), x.evidence_indices), axis=1)
465
  ```