---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- dense
- generated_from_trainer
- dataset_size:936
- loss:MultipleNegativesRankingLoss
base_model: Qwen/Qwen3-Embedding-0.6B
widget:
- source_sentence: lasaco_surplus_pct
sentences:
- insurance_period_end_date
- claim_amount
- treaty_rate
- source_sentence: hgi_client_party
sentences:
- insured_name
- insurance_period_start_date
- surplus_sum_insured
- source_sentence: notification_dt
sentences:
- facultative_amount
- insurance_period_start_date
- insurance_period_start_date
- source_sentence: participation_rate
sentences:
- gross_sum_insured
- treaty_rate
- retention_amount
- source_sentence: net_retention_ppn
sentences:
- retention_percentage
- claim_amount
- retention_percentage
pipeline_tag: sentence-similarity
library_name: sentence-transformers
metrics:
- cosine_accuracy
model-index:
- name: SentenceTransformer based on Qwen/Qwen3-Embedding-0.6B
results:
- task:
type: triplet
name: Triplet
dataset:
name: reinsurance te eval
type: reinsurance_te_eval
metrics:
- type: cosine_accuracy
value: 0.8290598392486572
name: Cosine Accuracy
---
# SentenceTransformer based on Qwen/Qwen3-Embedding-0.6B
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Qwen/Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B) on the csv dataset. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
## Model Details
### Model Description
- **Model Type:** Sentence Transformer
- **Base model:** [Qwen/Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B)
- **Maximum Sequence Length:** 32768 tokens
- **Output Dimensionality:** 1024 dimensions
- **Similarity Function:** Cosine Similarity
- **Training Dataset:**
- csv
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
### Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 32768, 'do_lower_case': False, 'architecture': 'Qwen3Model'})
(1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': True, 'include_prompt': True})
(2): Normalize()
)
```
## Usage
### Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
```bash
pip install -U sentence-transformers
```
Then you can load this model and run inference.
```python
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("mhiveai/Qwen-Insure")
# Run inference
queries = [
"net_retention_ppn",
]
documents = [
'retention_percentage',
'retention_percentage',
'claim_amount',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 1024] [3, 1024]
# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[0.8990, 0.8990, 0.1814]])
```
## Evaluation
### Metrics
#### Triplet
* Dataset: `reinsurance_te_eval`
* Evaluated with [TripletEvaluator](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
| Metric | Value |
|:--------------------|:-----------|
| **cosine_accuracy** | **0.8291** |
## Training Details
### Training Dataset
#### csv
* Dataset: csv
* Size: 936 training samples
* Columns: anchor, positive, and negative
* Approximate statistics based on the first 936 samples:
| | anchor | positive | negative |
|:--------|:---------------------------------------------------------------------------------|:-------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|
| type | string | string | string |
| details |
wapic_retention_ngn | retention_amount | retention_percentage |
| retentionvalue | retention_amount | retention_percentage |
| plan_# | policy_number | claim_number |
* Loss: [MultipleNegativesRankingLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false
}
```
### Evaluation Dataset
#### csv
* Dataset: csv
* Size: 117 evaluation samples
* Columns: anchor, positive, and negative
* Approximate statistics based on the first 117 samples:
| | anchor | positive | negative |
|:--------|:--------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|
| type | string | string | string |
| details | net_retention_ppn | retention_percentage | retention_percentage |
| loss_corner_# | claim_number | retention_amount |
| exp_date | insurance_period_end_date | insurance_period__end_date |
* Loss: [MultipleNegativesRankingLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `eval_strategy`: steps
- `per_device_train_batch_size`: 16
- `per_device_eval_batch_size`: 16
- `num_train_epochs`: 2
- `warmup_ratio`: 0.1
#### All Hyperparameters