Skip to content

Commit cc35eec

Browse files
committed
fix #72 fixed
1 parent 4bc8369 commit cc35eec

File tree

6 files changed

+198
-134
lines changed

6 files changed

+198
-134
lines changed

defeatbeta_api/data/template/transcripts_key_fin_data_prompt.md

Lines changed: 117 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -19,114 +19,122 @@ In this step, output the user's question exactly as it is. For example, if the u
1919

2020
Extract the key financial data required for function calling tools based on the earnings call transcript. If a required financial metric is mentioned in the transcript, you MUST always extract it into key_financial_data. Do not skip it.
2121

22-
For Example:
23-
22+
# For Example
2423
{
25-
"total_revenue_for_this_quarter": {
26-
"value_vocabulary": x.x,
27-
"unit": "billion",
28-
"currency_code": "USD",
29-
"speaker": "Lisa T. Su",
30-
"paragraph_number": 3
31-
},
32-
"gaap_gross_margin_for_this_quarter": {
33-
"value_vocabulary": x,
34-
"unit": "%",
35-
"speaker": "Jean X. Hu",
36-
"paragraph_number": 4
37-
},
38-
"non_gaap_gross_margin_for_this_quarter": {
39-
"value_vocabulary": x,
40-
"unit": "%",
41-
"speaker": "Lisa T. Su",
42-
"paragraph_number": 3
43-
},
44-
"gaap_operating_expense_for_this_quarter": {
45-
"value_vocabulary": x.x,
46-
"unit": "million",
47-
"currency_code": "USD",
48-
"speaker": "Jean X. Hu",
49-
"paragraph_number": 4
50-
},
51-
"non_gaap_operating_expense_for_this_quarter": null,
52-
"gaap_operating_income_for_this_quarter": {
53-
"value_vocabulary": x,
54-
"unit": "million",
55-
"currency_code": "USD",
56-
"speaker": "Jean X. Hu",
57-
"paragraph_number": 4
58-
},
59-
"non_gaap_operating_income_for_this_quarter": null,
60-
"gaap_operating_income_margin_for_this_quarter": {
61-
"value_vocabulary": x,
62-
"unit": "%",
63-
"speaker": "Jean X. Hu",
64-
"paragraph_number": 4
65-
},
66-
"non_gaap_operating_income_margin_for_this_quarter": null,
67-
"gaap_net_income_for_this_quarter": null,
68-
"non_gaap_net_income_for_this_quarter": null,
69-
"ebitda_for_this_quarter": null,
70-
"adjusted_ebitda_for_this_quarter": null,
71-
"gaap_diluted_earnings_per_share_for_this_quarter": {
72-
"value_vocabulary": x.x,
73-
"unit": "per_share",
74-
"currency_code": "USD",
75-
"speaker": "Jean X. Hu",
76-
"paragraph_number": 4
77-
},
78-
"non_gaap_diluted_earnings_per_share_for_this_quarter": null,
79-
"fcf_for_this_quarter": {
80-
"value_vocabulary": x.x,
81-
"unit": "million",
82-
"currency_code": "USD",
83-
"speaker": "Lisa T. Su",
84-
"paragraph_number": 3
85-
},
86-
"total_cash_position_for_this_quarter": {
87-
"value_vocabulary": x.x,
88-
"unit": "million",
89-
"currency_code": "USD",
90-
"speaker": "Jean X. Hu",
91-
"paragraph_number": 4
92-
},
93-
"share_repurchase_for_this_quarter": {
94-
"value_vocabulary": x,
95-
"unit": "million",
96-
"currency_code": "USD",
97-
"speaker": "Jean X. Hu",
98-
"paragraph_number": 4
99-
},
100-
"capex_for_this_quarter": null,
101-
"total_revenue_forecast_for_next_quarter": {
102-
"value_vocabulary": x.x,
103-
"unit": "billion",
104-
"currency_code": "USD",
105-
"speaker": "Jean X. Hu",
106-
"paragraph_number": 4
107-
},
108-
"gaap_gross_margin_forecast_for_next_quarter": null,
109-
"non_gaap_gross_margin_forecast_for_next_quarter": {
110-
"value_vocabulary": x,
111-
"unit": "%",
112-
"currency_code": "USD",
113-
"speaker": "Jean X. Hu",
114-
"paragraph_number": 4
115-
},
116-
"gaap_operating_expense_forecast_for_next_quarter": null,
117-
"non_gaap_operating_expense_forecast_for_next_quarter": {
118-
"value_vocabulary": x,
119-
"unit": "million",
120-
"currency_code": "USD",
121-
"speaker": "Jean X. Hu",
122-
"paragraph_number": 4
123-
},
124-
"ebitda_forecast_for_next_quarter": null,
125-
"adjusted_ebitda_forecast_for_next_quarter": null,
126-
"gaap_earnings_per_share_forecast_for_next_quarter": null,
127-
"non_gaap_earnings_per_share_forecast_for_next_quarter": null,
128-
"capex_forecast_for_next_quarter": null,
129-
"total_revenue_forecast_for_full_fiscal_year": null,
130-
"gaap_earnings_per_share_forecast_for_full_fiscal_year": null,
131-
"non_gaap_earnings_per_share_forecast_for_full_fiscal_year": null
24+
"user_question": "Extract the key financial data required for function calling tools based on the earnings call transcript",
25+
{
26+
"total_revenue_for_this_quarter": {
27+
"value_vocabulary": x.x,
28+
"unit": "billion",
29+
"currency_code": "USD",
30+
"speaker": "Lisa T. Su",
31+
"paragraph_number": 3
32+
},
33+
"gaap_gross_margin_for_this_quarter": {
34+
"value_vocabulary": x,
35+
"unit": "%",
36+
"speaker": "Jean X. Hu",
37+
"paragraph_number": 4
38+
},
39+
"non_gaap_gross_margin_for_this_quarter": {
40+
"value_vocabulary": x,
41+
"unit": "%",
42+
"speaker": "Lisa T. Su",
43+
"paragraph_number": 3
44+
},
45+
"gaap_operating_expense_for_this_quarter": {
46+
"value_vocabulary": x.x,
47+
"unit": "million",
48+
"currency_code": "USD",
49+
"speaker": "Jean X. Hu",
50+
"paragraph_number": 4
51+
},
52+
"non_gaap_operating_expense_for_this_quarter": null,
53+
"gaap_operating_income_for_this_quarter": {
54+
"value_vocabulary": x,
55+
"unit": "million",
56+
"currency_code": "USD",
57+
"speaker": "Jean X. Hu",
58+
"paragraph_number": 4
59+
},
60+
"non_gaap_operating_income_for_this_quarter": null,
61+
"gaap_operating_income_margin_for_this_quarter": {
62+
"value_vocabulary": x,
63+
"unit": "%",
64+
"speaker": "Jean X. Hu",
65+
"paragraph_number": 4
66+
},
67+
"non_gaap_operating_income_margin_for_this_quarter": null,
68+
"gaap_net_income_for_this_quarter": null,
69+
"non_gaap_net_income_for_this_quarter": null,
70+
"ebitda_for_this_quarter": null,
71+
"adjusted_ebitda_for_this_quarter": null,
72+
"gaap_diluted_earnings_per_share_for_this_quarter": {
73+
"value_vocabulary": x.x,
74+
"unit": "per_share",
75+
"currency_code": "USD",
76+
"speaker": "Jean X. Hu",
77+
"paragraph_number": 4
78+
},
79+
"non_gaap_diluted_earnings_per_share_for_this_quarter": null,
80+
"fcf_for_this_quarter": {
81+
"value_vocabulary": x.x,
82+
"unit": "million",
83+
"currency_code": "USD",
84+
"speaker": "Lisa T. Su",
85+
"paragraph_number": 3
86+
},
87+
"total_cash_position_for_this_quarter": {
88+
"value_vocabulary": x.x,
89+
"unit": "million",
90+
"currency_code": "USD",
91+
"speaker": "Jean X. Hu",
92+
"paragraph_number": 4
93+
},
94+
"share_repurchase_for_this_quarter": {
95+
"value_vocabulary": x,
96+
"unit": "million",
97+
"currency_code": "USD",
98+
"speaker": "Jean X. Hu",
99+
"paragraph_number": 4
100+
},
101+
"capex_for_this_quarter": null,
102+
"total_revenue_forecast_for_next_quarter": {
103+
"value_vocabulary": x.x,
104+
"unit": "billion",
105+
"currency_code": "USD",
106+
"speaker": "Jean X. Hu",
107+
"paragraph_number": 4
108+
},
109+
"gaap_gross_margin_forecast_for_next_quarter": null,
110+
"non_gaap_gross_margin_forecast_for_next_quarter": {
111+
"value_vocabulary": x,
112+
"unit": "%",
113+
"speaker": "Jean X. Hu",
114+
"paragraph_number": 4
115+
},
116+
"gaap_operating_income_margin_forecast_for_next_quarter": null,
117+
"non_gaap_operating_income_margin_forecast_for_next_quarter": {
118+
"value_vocabulary": x,
119+
"unit": "%",
120+
"speaker": "Jean X. Hu",
121+
"paragraph_number": 4
122+
},
123+
"gaap_operating_expense_forecast_for_next_quarter": null,
124+
"non_gaap_operating_expense_forecast_for_next_quarter": {
125+
"value_vocabulary": x,
126+
"unit": "million",
127+
"currency_code": "USD",
128+
"speaker": "Jean X. Hu",
129+
"paragraph_number": 4
130+
},
131+
"ebitda_forecast_for_next_quarter": null,
132+
"adjusted_ebitda_forecast_for_next_quarter": null,
133+
"gaap_earnings_per_share_forecast_for_next_quarter": null,
134+
"non_gaap_earnings_per_share_forecast_for_next_quarter": null,
135+
"capex_forecast_for_next_quarter": null,
136+
"total_revenue_forecast_for_full_fiscal_year": null,
137+
"gaap_earnings_per_share_forecast_for_full_fiscal_year": null,
138+
"non_gaap_earnings_per_share_forecast_for_full_fiscal_year": null
139+
}
132140
}

0 commit comments

Comments
 (0)