Datasets:
Update README.md
Browse files
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['
|
| 464 |
-
df['metric']=df.apply(lambda x: jaccard(parse(x.
|
| 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 |
```
|