feat: add extraction schema, sidebar nav, few-shot prompting, and prompt settings
Overhaul extraction pipeline with new TradeItem model, conversation flow, and dedicated extraction endpoint. Add sidebar navigation with NavMenu component and landing page. Introduce few-shot prompting service and tests. Add prompt settings and email upload specs. Update OpenSpec tooling with improved export-spec and extract-feature commands. Archive completed changes and export full specs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
15
examples/extraction/few-shot/03/input.html
Normal file
15
examples/extraction/few-shot/03/input.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>Subject: RE: CVA – Cross-currency swap with break clause</p>
|
||||
<p>Dear Ovi,</p>
|
||||
<p>Could you provide indicative CVA for the below cross-currency swap with Barclays Bank PLC? Note: this trade has a break clause at the 5-year point.</p>
|
||||
<p>OB 01/06/2025</p>
|
||||
<table border="1">
|
||||
<tr><th></th><th>CSA</th><th>Murex</th><th>PV (€)</th></tr>
|
||||
<tr><td>EUR Leg</td><td>BARC_EUR</td><td>77890112</td><td>8,421,300</td></tr>
|
||||
<tr><td>GBP Leg</td><td>BARC_EUR</td><td>77890113</td><td>22,105,800</td></tr>
|
||||
</table>
|
||||
<p>Thanks,</p>
|
||||
<p>Mark</p>
|
||||
</body>
|
||||
</html>
|
||||
20
examples/extraction/few-shot/03/output.json
Normal file
20
examples/extraction/few-shot/03/output.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"valuedate": "01/06/2025",
|
||||
"counterparty": "Barclays Bank PLC",
|
||||
"trade_id": 77890112,
|
||||
"display_ccy": "EUR",
|
||||
"pv": 8421300,
|
||||
"breakclause": "Y"
|
||||
},
|
||||
{
|
||||
"valuedate": "01/06/2025",
|
||||
"counterparty": "Barclays Bank PLC",
|
||||
"trade_id": 77890113,
|
||||
"display_ccy": "EUR",
|
||||
"pv": 22105800,
|
||||
"breakclause": "Y"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user