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:
14
examples/extraction/few-shot/02/input.html
Normal file
14
examples/extraction/few-shot/02/input.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>Subject: CVA quote – USD interest rate swap</p>
|
||||
<p>Hi team,</p>
|
||||
<p>Please provide CVA for the following single interest rate swap with Deutsche Bank AG, London Branch.</p>
|
||||
<p>Value date: 15/03/2026</p>
|
||||
<table border="1">
|
||||
<tr><th></th><th>CSA</th><th>Murex</th><th>PV ($)</th></tr>
|
||||
<tr><td>Fixed Leg</td><td>DB_USD</td><td>81200451</td><td>12,750,000</td></tr>
|
||||
</table>
|
||||
<p>Thanks,</p>
|
||||
<p>Sarah</p>
|
||||
</body>
|
||||
</html>
|
||||
12
examples/extraction/few-shot/02/output.json
Normal file
12
examples/extraction/few-shot/02/output.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"valuedate": "15/03/2026",
|
||||
"counterparty": "Deutsche Bank AG, London Branch",
|
||||
"trade_id": 81200451,
|
||||
"display_ccy": "USD",
|
||||
"pv": 12750000,
|
||||
"breakclause": "N"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user