Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,50 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
datasets:
|
| 4 |
+
- briefai/LongShort-Dataset
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
tags:
|
| 9 |
+
- pytorch
|
| 10 |
+
- llama-2
|
| 11 |
+
- Gen-AI
|
| 12 |
+
- Finance
|
| 13 |
+
- KPI Extraction
|
| 14 |
---
|
| 15 |
+
# LongShort-Dolly-2-7B
|
| 16 |
+
- Model creator: [Brief AI](https://huggingface.co/briefai)
|
| 17 |
+
- Original model: [Llama 2 7B Chat](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf)
|
| 18 |
+
|
| 19 |
+
### Model Description
|
| 20 |
+
|
| 21 |
+
This model leverages Llama-2 architecture to extract financial KPIs from the earnings call documents.
|
| 22 |
+
|
| 23 |
+
## Prompt template: LongShort-Dolly-2-7B
|
| 24 |
+
|
| 25 |
+
```
|
| 26 |
+
[INST]Given the context, answer the question.
|
| 27 |
+
|
| 28 |
+
### Question:
|
| 29 |
+
Extract all the finance-based performance indicators and evaluation metrics.
|
| 30 |
+
|
| 31 |
+
### Context:
|
| 32 |
+
{context}
|
| 33 |
+
|
| 34 |
+
### Answer:
|
| 35 |
+
[/INST]
|
| 36 |
+
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## Uses
|
| 40 |
+
|
| 41 |
+
Financial KPI Extraction
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
## Evaluation Results
|
| 45 |
+
|
| 46 |
+
Accuracy of the model = KPIs Found / ((KPIs Found) + (KPIs Not Found))
|
| 47 |
+
|
| 48 |
+
LongShort-Dolly-2-7B gives 30.7% accuracy on a validation set of 10% of the original training dataset.
|
| 49 |
+
|
| 50 |
+
## Thanks
|