Update README.md
Browse files
README.md
CHANGED
|
@@ -4,4 +4,34 @@ language:
|
|
| 4 |
- en
|
| 5 |
base_model:
|
| 6 |
- Qwen/Qwen3-Embedding-8B
|
| 7 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
- en
|
| 5 |
base_model:
|
| 6 |
- Qwen/Qwen3-Embedding-8B
|
| 7 |
+
---
|
| 8 |
+
## ReaKase-8B: A Knowledge-Grounded Legal Reasoning LLM
|
| 9 |
+

|
| 10 |
+
|
| 11 |
+
## Example Usage
|
| 12 |
+
|
| 13 |
+
```python
|
| 14 |
+
from transformers import AutoModel, AutoTokenizer
|
| 15 |
+
|
| 16 |
+
model = AutoModel.from_pretrained("AnnaStudy/ReaKase-8B", torch_dtype="auto", device_map="auto")
|
| 17 |
+
tokenizer = AutoTokenizer.from_pretrained("AnnaStudy/ReaKase-8B")
|
| 18 |
+
|
| 19 |
+
case_txt = "The following contains key components of a legal case. Legal facts..."
|
| 20 |
+
|
| 21 |
+
tokenized = tokenizer(case_txt, return_tensors='pt', padding=True, truncation=True, max_length=2048)
|
| 22 |
+
outputs = model(**tokenized)
|
| 23 |
+
case_embedding = outputs.last_hidden_state[:, -1]
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
## Cite
|
| 27 |
+
If you find this repo useful, please cite
|
| 28 |
+
```
|
| 29 |
+
@article
|
| 30 |
+
{ReaKase-8B,
|
| 31 |
+
author = {Yanran Tang, Ruihong Qiu, Xue Li, Zi Huang},
|
| 32 |
+
title = {ReaKase-8B: Legal Case Retrieval via Knowledge and Reasoning Representations with LLMs},
|
| 33 |
+
journal = {CoRR},
|
| 34 |
+
volume = {abs/2510.26178},
|
| 35 |
+
year = {2025}
|
| 36 |
+
}
|
| 37 |
+
```
|