Downloads · 30 days
103
17% of all-time downloads
ReDiX/Legal-Embedding-ita-0.6B
Legal-Embedding-ita-0.6B is a sentence similarity model from ReDiX. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as cc-by-nc-4.0.
Legal-Embedding-Ita-0.6b is a Sentence Transformers embedding model fine-tuned from Qwen/Qwen3-Embedding-0.6B for Italian retrieval tasks, with a particular focus on the legal domain.
Downloads · 30 days
103
17% of all-time downloads
All-time downloads
595
Public
Parameters
596M
3.6 GB on disk
Likes
4
Public
Click a slice to open those files.
.pt2.4 GB · 66%
From the Hugging Face model README
Legal-Embedding-Ita-0.6b is a Sentence Transformers embedding model fine-tuned from Qwen/Qwen3-Embedding-0.6B for Italian retrieval tasks, with a particular focus on the legal domain.
The model maps queries and documents into a 1024-dimensional dense vector space and is designed for semantic search, retrieval-augmented generation (RAG), document ranking, and legal information retrieval in Italian.
⚠️ DISCLAIMER
This model has been created for research purposes. Is under no circumstances intended for use in production environments. By using this model, you accept all liability.
Qwen/Qwen3-Embedding-0.6BLegal-Embedding-Ita-0.6bThis model is intended for Italian text retrieval tasks, especially in legal and domain-specific RAG pipelines.
Recommended use cases:
This model is not a generative language model. It only produces dense embeddings.
The model was evaluated against the base qwen3-embedding-0.6b model on Italian MTEB datasets and internal ReDiX domain-specific retrieval benchmarks.
The main improvement is observed on the legal retrieval dataset.

On the legal MTEB dataset MuPLeR-retrieval, Legal-Embedding-Ita-0.6b outperforms the base qwen3-embedding-0.6b model by:
+11.45% main score
This indicates a clear gain in Italian legal retrieval performance after fine-tuning.
| Dataset | qwen3-embedding-0.6b | Legal-Embedding-Ita-0.6b | Difference |
|---|---|---|---|
| MintakaRetrieval | 0.36852 | 0.36433 | -0.4% |
| MKQARetrieval | 0.10112 | 0.09974 | -0.13% |
| MuPLeR-retrieval — Legal | 0.76233 | 0.87685 | +11.45% |
| WikipediaRetrievalMultilingual | 0.88135 | 0.90066 | +1.931% |
Evaluation metric: nDCG@10.
| Domain | qwen3-embedding-0.6b | Legal-Embedding-Ita-0.6b | Difference |
|---|---|---|---|
| Legal | 0.6281 | 0.6751 | +4.70% |
| Finance | 0.6155 | 0.6819 | +6.64% |
| Medical | 0.5855 | 0.6243 | +3.87% |
| STEM | 0.6807 | 0.7258 | +4.51% |
Although the model improves across the internal ReDiX benchmark domains, the model should primarily be considered a legal-focused Italian embedding model, since the fine-tuning process was designed around Italian legal retrieval.
SentenceTransformer(
(0): Transformer({
'transformer_task': 'feature-extraction',
'modality_config': {
'text': {
'method': 'forward',
'method_output_name': 'last_hidden_state'
}
},
'module_output_name': 'token_embeddings',
'architecture': 'Qwen3Model'
})
(1): Pooling({
'embedding_dimension': 1024,
'pooling_mode': 'lasttoken',
'include_prompt': True
})
(2): Normalize({})
)
pip install -U sentence-transformers
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("ReDiX/Legal-Embedding-Ita-0.6b")
queries = [
"Qual è il lasso di tempo obbligatorio prima di ripresentare una domanda di adesione al codice dopo un rifiuto?"
]
documents = [
"L’eventuale mancata conferma della adesione al Codice di condotta presentata da parte di un Produttore del Software deve essere motivata da parte dell’OdM, fermo restando che tale diniego non preclude la possibilità per il Produttore di successiva presentazione della domanda di adesione che può avvenire non prima di un anno unitamente ad una breve nota che illustri le misure adottate per superare le ragioni che avevano condotto al precedente diniego.",
"La Corte costituzionale ha affrontato il tema delle intercettazioni indirette relative ai parlamentari, distinguendo tra intercettazioni fortuite e mirate.",
"Il danneggiato è tenuto a dimostrare davanti al giudice civile la sussistenza del nesso di causalità tra condotta e danno e a quantificare quest’ultimo."
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
Since the model is based on Qwen3 Embedding, asymmetric retrieval prompting is recommended.
Instruct: Given an Italian legal search query, retrieve the most relevant legal passage that answers the query.
Query:
Document Prompt:
The document prompt is intentionally empty.
The model was fine-tuned on an Italian retrieval dataset containing:
244,907 training samples Columns: anchor, positive, negative Approximately 120,000 strictly legal-related samples Training format: query, relevant passage, hard negative passage
The evaluation dataset contains:
3,310 evaluation samples Columns: anchor, positive Domain: Italian legal retrieval
The model was trained using a patched version of CachedGISTEmbedLoss.
{
"guide": "SentenceTransformer('intfloat/multilingual-e5-large-instruct')",
"temperature": 0.01,
"mini_batch_size": 32,
"margin_strategy": "absolute",
"margin": 0.0,
"contrast_anchors": true,
"contrast_positives": false,
"gather_across_devices": false
}
learning_rate: 2e-06lr_scheduler_type: cosinewarmup_steps: 0.03weight_decay: 0.01gradient_accumulation_steps: 4bf16: Trueload_best_model_at_end: Truedata_seed: 42dataloader_num_workers: 4remove_unused_columns: Falseprompts: {'anchor': 'Instruct: Given an Italian legal search query, retrieve the most relevant legal passage that answers the query.\nQuery: ', 'positive': '', 'negative': ''}batch_sampler: no_duplicatesper_device_train_batch_size: 8num_train_epochs: 3.0max_steps: -1learning_rate: 2e-06lr_scheduler_type: cosinelr_scheduler_kwargs: Nonewarmup_steps: 0.03optim: adamw_torch_fusedoptim_args: Noneweight_decay: 0.01adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08optim_target_modules: Nonegradient_accumulation_steps: 4average_tokens_across_devices: Truemax_grad_norm: 1.0label_smoothing_factor: 0.0bf16: Truefp16: Falsebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Nonetorch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneuse_liger_kernel: Falseliger_kernel_config: Noneuse_cache: Falseneftune_noise_alpha: Nonetorch_empty_cache_steps: Noneauto_find_batch_size: Falselog_on_each_node: Truelogging_nan_inf_filter: Trueinclude_num_input_tokens_seen: nolog_level: passivelog_level_replica: warningdisable_tqdm: Falseproject: huggingfacetrackio_space_id: trackioper_device_eval_batch_size: 8prediction_loss_only: Trueeval_on_start: Falseeval_do_concat_batches: Trueeval_use_gather_object: Falseeval_accumulation_steps: Noneinclude_for_metrics: []batch_eval_metrics: Falsesave_only_model: Falsesave_on_each_node: Falseenable_jit_checkpoint: Falsepush_to_hub: Falsehub_private_repo: Nonehub_model_id: Nonehub_strategy: every_savehub_always_push: Falsehub_revision: Noneload_best_model_at_end: Trueignore_data_skip: Falserestore_callback_states_from_checkpoint: Falsefull_determinism: Falseseed: 42data_seed: 42use_cpu: Falseaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}parallelism_config: Nonedataloader_drop_last: Falsedataloader_num_workers: 4dataloader_pin_memory: Truedataloader_persistent_workers: Falsedataloader_prefetch_factor: Noneremove_unused_columns: Falselabel_names: Nonetrain_sampling_strategy: randomlength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falseddp_backend: Noneddp_timeout: 1800fsdp: []fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}deepspeed: Nonedebug: []skip_memory_metrics: Truedo_predict: Falseresume_from_checkpoint: Nonewarmup_ratio: Nonelocal_rank: -1prompts: {'anchor': 'Instruct: Given an Italian legal search query, retrieve the most relevant legal passage that answers the query.\nQuery: ', 'positive': '', 'negative': ''}batch_sampler: no_duplicatesmulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}The model is optimized primarily for Italian legal retrieval. Performance gains on non-legal datasets should be interpreted cautiously. The model may underperform on domains or languages not represented in the fine-tuning data. The model does not generate answers; it only produces embeddings for retrieval. Legal retrieval results do not imply legal correctness or legal advice.
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}