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
Copy file name to clipboardExpand all lines: tests/e2e/test_dataset_utils.py
+58Lines changed: 58 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,39 @@
30
30
},
31
31
]
32
32
33
+
# Sample data structure matching the fiqa dataset
34
+
SAMPLE_FIQA_DATA= [
35
+
{
36
+
"user_input": "How to deposit a cheque issued to an associate in my business account?",
37
+
"reference": "Have the check reissued to the proper payee. Just have the associate sign the back and then deposit it. It's called a third party cheque and is perfectly legal. I wouldn't be surprised if it has a longer hold period and, as always, you don't get the money if the cheque doesn't clear.",
38
+
"response": "The best way to deposit a cheque issued to an associate in your business account is to have the associate sign the back of the cheque and deposit it as a third party cheque.",
39
+
"retrieved_contexts": [
40
+
"Just have the associate sign the back and then deposit it. It's called a third party cheque and is perfectly legal.",
41
+
"I wouldn't be surprised if it has a longer hold period and, as always, you don't get the money if the cheque doesn't clear.",
42
+
],
43
+
},
44
+
{
45
+
"user_input": "What is the difference between a mutual fund and an ETF?",
46
+
"reference": "Mutual funds are actively managed investment vehicles that pool money from multiple investors. ETFs are passively managed and trade on exchanges like stocks. ETFs typically have lower fees and can be bought and sold throughout the trading day.",
47
+
"response": "A mutual fund pools money from investors and is actively managed, while an ETF trades like a stock and typically tracks an index with lower fees.",
48
+
"retrieved_contexts": [
49
+
"Mutual funds pool money from multiple investors and are actively managed by professional fund managers.",
50
+
"ETFs trade on exchanges like stocks and can be bought and sold throughout the trading day.",
51
+
"ETFs typically have lower expense ratios compared to mutual funds.",
52
+
],
53
+
},
54
+
{
55
+
"user_input": "Should I pay off my mortgage early or invest the money?",
56
+
"reference": "It depends on your mortgage interest rate and expected investment returns. If your mortgage rate is low and you expect higher returns from investments, investing may be better. Consider your risk tolerance and financial goals.",
57
+
"response": "The decision depends on comparing your mortgage interest rate to expected investment returns, along with your risk tolerance and financial security needs.",
58
+
"retrieved_contexts": [
59
+
"Compare your mortgage interest rate to expected investment returns to make an informed decision.",
60
+
"Consider your risk tolerance and overall financial situation before making this decision.",
61
+
"Having no mortgage provides peace of mind and guaranteed savings equal to the interest rate.",
0 commit comments