Bge M3 Spa Law Qa
基於BAAI/bge-m3微調的西班牙語句子嵌入模型,專門針對法律領域優化,適用於語義搜索和信息檢索任務。
下載量 309
發布時間 : 7/22/2024
模型概述
該模型將句子和段落映射到1024維的密集向量空間,可用於語義文本相似度、語義搜索、複述挖掘、文本分類、聚類等多種任務,特別適合法律領域的西班牙語文本處理。
模型特點
法律領域優化
專門針對西班牙語法律文本進行微調,在法律領域的語義理解和檢索任務中表現優異。
長文本支持
支持最大8192個標記的序列長度,適合處理法律文檔等長文本。
高維嵌入
生成1024維的密集向量表示,能夠捕捉文本的豐富語義信息。
多任務支持
可用於多種自然語言處理任務,包括語義相似度計算、信息檢索、文本分類等。
模型能力
語義文本相似度計算
語義搜索
複述挖掘
文本分類
文本聚類
信息檢索
使用案例
法律信息檢索
法律問答系統
用於構建法律領域的問答系統,快速檢索相關法律條文和判例。
在評估中達到0.6991的MAP@100分數
法律文檔分析
分析和分類大量法律文檔,提取關鍵信息。
法律文本相似度計算
計算法律條文、合同條款等文本之間的語義相似度。
政府機構應用
法規檢索系統
幫助政府工作人員快速查找相關法規和政策。
🚀 BGE large Legal Spanish
這是一個基於 sentence-transformers 庫,從 BAAI/bge-m3 微調而來的模型。它可以將句子和段落映射到一個 1024 維的密集向量空間,可用於語義文本相似度計算、語義搜索、釋義挖掘、文本分類、聚類等任務。
🚀 快速開始
直接使用(Sentence Transformers)
首先安裝 Sentence Transformers 庫:
pip install -U sentence-transformers
然後,你可以加載這個模型並進行推理:
from sentence_transformers import SentenceTransformer
# 從 🤗 Hub 下載
model = SentenceTransformer("littlejohn-ai/bge-m3-spanish-boe-qa")
# 進行推理
sentences = [
'El plazo máximo para resolver y notificar la resolución expresa que ponga fin al procedimiento será de nueve meses, a contar desde la fecha de inicio del procedimiento administrativo sancionador, que se corresponde con la fecha del acuerdo de incoación.',
'¿Cuál es el plazo para la resolución del procedimiento sancionador en el caso de infracciones graves o muy graves?',
'¿Cuál es el objetivo de la cooperación española para el desarrollo sostenible en relación con la igualdad de género?',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]
# 獲取嵌入向量的相似度分數
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
✨ 主要特性
- 多任務適用性:可用於語義文本相似度計算、語義搜索、釋義挖掘、文本分類、聚類等多種自然語言處理任務。
- 長序列處理:最大序列長度可達 8192 個標記,能夠處理較長的文本。
- 高維輸出:輸出維度為 1024,能夠捕捉豐富的語義信息。
- 餘弦相似度:使用餘弦相似度作為相似度度量,便於進行語義匹配。
📦 安裝指南
pip install -U sentence-transformers
💻 使用示例
基礎用法
from sentence_transformers import SentenceTransformer
# 從 🤗 Hub 下載
model = SentenceTransformer("littlejohn-ai/bge-m3-spanish-boe-qa")
# 進行推理
sentences = [
'El plazo máximo para resolver y notificar la resolución expresa que ponga fin al procedimiento será de nueve meses, a contar desde la fecha de inicio del procedimiento administrativo sancionador, que se corresponde con la fecha del acuerdo de incoación.',
'¿Cuál es el plazo para la resolución del procedimiento sancionador en el caso de infracciones graves o muy graves?',
'¿Cuál es el objetivo de la cooperación española para el desarrollo sostenible en relación con la igualdad de género?',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]
# 獲取嵌入向量的相似度分數
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
📚 詳細文檔
模型詳情
模型描述
屬性 | 詳情 |
---|---|
模型類型 | Sentence Transformer |
基礎模型 | BAAI/bge-m3 |
最大序列長度 | 8192 個標記 |
輸出維度 | 1024 個標記 |
相似度函數 | 餘弦相似度 |
語言 | 西班牙語 |
許可證 | apache-2.0 |
模型來源
- 文檔:Sentence Transformers 文檔
- 倉庫:GitHub 上的 Sentence Transformers
- Hugging Face:Hugging Face 上的 Sentence Transformers
完整模型架構
SentenceTransformer(
(0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
(1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': True, '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': False, 'include_prompt': True})
(2): Normalize()
)
評估
信息檢索指標
數據集 | cosine_accuracy@1 | cosine_accuracy@3 | cosine_accuracy@5 | cosine_accuracy@10 | cosine_precision@1 | cosine_precision@3 | cosine_precision@5 | cosine_precision@10 | cosine_recall@1 | cosine_recall@3 | cosine_recall@5 | cosine_recall@10 | cosine_ndcg@10 | cosine_mrr@10 | cosine_map@100 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dim_1024 | 0.6258 | 0.745 | 0.7834 | 0.8314 | 0.6258 | 0.2483 | 0.1567 | 0.0831 | 0.6258 | 0.745 | 0.7834 | 0.8314 | 0.7276 | 0.6945 | 0.6991 |
dim_768 | 0.6212 | 0.7488 | 0.7855 | 0.8298 | 0.6212 | 0.2496 | 0.1571 | 0.083 | 0.6212 | 0.7488 | 0.7855 | 0.8298 | 0.7263 | 0.6931 | 0.6978 |
dim_512 | 0.6186 | 0.7417 | 0.7813 | 0.8285 | 0.6186 | 0.2472 | 0.1563 | 0.0828 | 0.6186 | 0.7417 | 0.7813 | 0.8285 | 0.7231 | 0.6894 | 0.6939 |
dim_256 | 0.6077 | 0.7379 | 0.7741 | 0.8184 | 0.6077 | 0.246 | 0.1548 | 0.0818 | 0.6077 | 0.7379 | 0.7741 | 0.8184 | 0.713 | 0.6792 | 0.684 |
dim_128 | 0.5921 | 0.7101 | 0.7497 | 0.8019 | 0.5921 | 0.2367 | 0.1499 | 0.0802 | 0.5921 | 0.7101 | 0.7497 | 0.8019 | 0.6949 | 0.661 | 0.666 |
dim_64 | 0.5478 | 0.6696 | 0.7219 | 0.7708 | 0.5478 | 0.2232 | 0.1444 | 0.0771 | 0.5478 | 0.6696 | 0.7219 | 0.7708 | 0.6562 | 0.6199 | 0.6253 |
訓練詳情
訓練超參數
非默認超參數
eval_strategy
: epochper_device_train_batch_size
: 16per_device_eval_batch_size
: 16gradient_accumulation_steps
: 16learning_rate
: 2e-05num_train_epochs
: 50lr_scheduler_type
: cosinewarmup_ratio
: 0.1bf16
: Truetf32
: Trueload_best_model_at_end
: Trueoptim
: adamw_torch_fusedgradient_checkpointing
: Truebatch_sampler
: no_duplicates
所有超參數
點擊展開
overwrite_output_dir
: Falsedo_predict
: Falseeval_strategy
: epochprediction_loss_only
: Trueper_device_train_batch_size
: 16per_device_eval_batch_size
: 16per_gpu_train_batch_size
: Noneper_gpu_eval_batch_size
: Nonegradient_accumulation_steps
: 16eval_accumulation_steps
: Nonelearning_rate
: 2e-05weight_decay
: 0.0adam_beta1
: 0.9adam_beta2
: 0.999adam_epsilon
: 1e-08max_grad_norm
: 1.0num_train_epochs
: 50max_steps
: -1lr_scheduler_type
: cosinelr_scheduler_kwargs
: {}warmup_ratio
: 0.1warmup_steps
: 0log_level
: passivelog_level_replica
: warninglog_on_each_node
: Truelogging_nan_inf_filter
: Truesave_safetensors
: Truesave_on_each_node
: Falsesave_only_model
: Falserestore_callback_states_from_checkpoint
: Falseno_cuda
: Falseuse_cpu
: Falseuse_mps_device
: Falseseed
: 42data_seed
: Nonejit_mode_eval
: Falseuse_ipex
: Falsebf16
: Truefp16
: Falsefp16_opt_level
: O1half_precision_backend
: autobf16_full_eval
: Falsefp16_full_eval
: Falsetf32
: Truelocal_rank
: 0ddp_backend
: Nonetpu_num_cores
: Nonetpu_metrics_debug
: Falsedebug
: []dataloader_drop_last
: Falsedataloader_num_workers
: 0dataloader_prefetch_factor
: Nonepast_index
: -1disable_tqdm
: Falseremove_unused_columns
: Truelabel_names
: Noneload_best_model_at_end
: Trueignore_data_skip
: Falsefsdp
: []fsdp_min_num_params
: 0fsdp_config
: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}fsdp_transformer_layer_cls_to_wrap
: Noneaccelerator_config
: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}deepspeed
: Nonelabel_smoothing_factor
: 0.0optim
: adamw_torch_fusedoptim_args
: Noneadafactor
: Falsegroup_by_length
: Falselength_column_name
: lengthddp_find_unused_parameters
: Noneddp_bucket_cap_mb
: Noneddp_broadcast_buffers
: Falsedataloader_pin_memory
: Truedataloader_persistent_workers
: Falseskip_memory_metrics
: Trueuse_legacy_prediction_loop
: Falsepush_to_hub
: Falseresume_from_checkpoint
: Nonehub_model_id
: Nonehub_strategy
: every_savehub_private_repo
: Falsehub_always_push
: Falsegradient_checkpointing
: Truegradient_checkpointing_kwargs
: Noneinclude_inputs_for_metrics
: Falseeval_do_concat_batches
: Truefp16_backend
: autopush_to_hub_model_id
: Nonepush_to_hub_organization
: Nonemp_parameters
:auto_find_batch_size
: Falsefull_determinism
: Falsetorchdynamo
: Noneray_scope
: lastddp_timeout
: 1800torch_compile
: Falsetorch_compile_backend
: Nonetorch_compile_mode
: Nonedispatch_batches
: Nonesplit_batches
: Noneinclude_tokens_per_second
: Falseinclude_num_input_tokens_seen
: Falseneftune_noise_alpha
: Noneoptim_target_modules
: Nonebatch_eval_metrics
: Falseeval_on_start
: Falsebatch_sampler
: no_duplicatesmulti_dataset_batch_sampler
: proportional
訓練日誌
點擊展開
Epoch | Step | Training Loss | loss | dim_1024_cosine_map@100 | dim_128_cosine_map@100 | dim_256_cosine_map@100 | dim_512_cosine_map@100 | dim_64_cosine_map@100 | dim_768_cosine_map@100 |
---|---|---|---|---|---|---|---|---|---|
0.0599 | 5 | 1.9323 | - | - | - | - | - | - | - |
0.1199 | 10 | 1.9518 | - | - | - | - | - | - | - |
0.1798 | 15 | 1.6396 | - | - | - | - | - | - | - |
0.2397 | 20 | 1.4917 | - | - | - | - | - | - | - |
0.2996 | 25 | 1.6039 | - | - | - | - | - | - | - |
0.3596 | 30 | 1.5937 | - | - | - | - | - | - | - |
0.4195 | 35 | 1.6291 | - | - | - | - | - | - | - |
0.4794 | 40 | 1.4753 | - | - | - | - | - | - | - |
0.5393 | 45 | 1.5017 | - | - | - | - | - | - | - |
0.5993 | 50 | 1.1626 | - | - | - | - | - | - | - |
0.6592 | 55 | 1.3464 | - | - | - | - | - | - | - |
0.7191 | 60 | 1.2526 | - | - | - | - | - | - | - |
0.7790 | 65 | 1.0611 | - | - | - | - | - | - | - |
0.8390 | 70 | 0.8765 | - | - | - | - | - | - | - |
0.8989 | 75 | 1.1155 | - | - | - | - | - | - | - |
0.9588 | 80 | 1.0203 | - | - | - | - | - | - | - |
0.9948 | 83 | - | 0.7719 | 0.7324 | 0.6718 | 0.7088 | 0.7264 | 0.5874 | 0.7314 |
1.0187 | 85 | 0.9165 | - | - | - | - | - | - | - |
1.0787 | 90 | 1.0342 | - | - | - | - | - | - | - |
1.1386 | 95 | 1.0683 | - | - | - | - | - | - | - |
1.1985 | 100 | 0.8871 | - | - | - | - | - | - | - |
1.2584 | 105 | 0.7145 | - | - | - | - | - | - | - |
1.3184 | 110 | 0.8022 | - | - | - | - | - | - | - |
1.3783 | 115 | 0.9062 | - | - | - | - | - | - | - |
1.4382 | 120 | 0.7868 | - | - | - | - | - | - | - |
1.4981 | 125 | 0.9797 | - | - | - | - | - | - | - |
1.5581 | 130 | 0.7075 | - | - | - | - | - | - | - |
1.6180 | 135 | 0.7265 | - | - | - | - | - | - | - |
1.6779 | 140 | 0.8166 | - | - | - | - | - | - | - |
1.7378 | 145 | 0.659 | - | - | - | - | - | - | - |
1.7978 | 150 | 0.5744 | - | - | - | - | - | - | - |
1.8577 | 155 | 0.6818 | - | - | - | - | - | - | - |
1.9176 | 160 | 0.513 | - | - | - | - | - | - | - |
1.9775 | 165 | 0.6822 | - | - | - | - | - | - | - |
1.9895 | 166 | - | 0.5653 | 0.7216 | 0.6823 | 0.7047 | 0.7167 | 0.62 | 0.719 |
2.0375 | 170 | 0.6274 | - | - | - | - | - | - | - |
2.0974 | 175 | 0.6535 | - | - | - | - | - | - | - |
2.1573 | 180 | 0.595 | - | - | - | - | - | - | - |
2.2172 | 185 | 0.5968 | - | - | - | - | - | - | - |
2.2772 | 190 | 0.4913 | - | - | - | - | - | - | - |
2.3371 | 195 | 0.459 | - | - | - | - | - | - | - |
2.3970 | 200 | 0.5674 | - | - | - | - | - | - | - |
2.4569 | 205 | 0.4594 | - | - | - | - | - | - | - |
2.5169 | 210 | 0.6119 | - | - | - | - | - | - | - |
2.5768 | 215 | 0.3534 | - | - | - | - | - | - | - |
2.6367 | 220 | 0.4264 | - | - | - | - | - | - | - |
2.6966 | 225 | 0.5078 | - | - | - | - | - | - | - |
2.7566 | 230 | 0.4046 | - | - | - | - | - | - | - |
2.8165 | 235 | 0.2651 | - | - | - | - | - | - | - |
2.8764 | 240 | 0.4282 | - | - | - | - | - | - | - |
2.9363 | 245 | 0.3342 | - | - | - | - | - | - | - |
2.9963 | 250 | 0.3695 | 0.4851 | 0.7158 | 0.6818 | 0.7036 | 0.7134 | 0.6274 | 0.7163 |
3.0562 | 255 | 0.3598 | - | - | - | - | - | - | - |
3.1161 | 260 | 0.4304 | - | - | - | - | - | - | - |
3.1760 | 265 | 0.3588 | - | - | - | - | - | - | - |
3.2360 | 270 | 0.2714 | - | - | - | - | - | - | - |
3.2959 | 275 | 0.2657 | - | - | - | - | - | - | - |
3.3558 | 280 | 0.2575 | - | - | - | - | - | - | - |
3.4157 | 285 | 0.3314 | - | - | - | - | - | - | - |
3.4757 | 290 | 0.3018 | - | - | - | - | - | - | - |
3.5356 | 295 | 0.3443 | - | - | - | - | - | - | - |
3.5955 | 300 | 0.185 | - | - | - | - | - | - | - |
3.6554 | 305 | 0.2771 | - | - | - | - | - | - | - |
3.7154 | 310 | 0.2529 | - | - | - | - | - | - | - |
3.7753 | 315 | 0.184 | - | - | - | - | - | - | - |
3.8352 | 320 | 0.1514 | - | - | - | - | - | - | - |
3.8951 | 325 | 0.2335 | - | - | - | - | - | - | - |
3.9551 | 330 | 0.2045 | - | - | - | - | - | - | - |
3.9910 | 333 | - | 0.4436 | 0.7110 | 0.6719 | 0.6946 | 0.7063 | 0.6201 | 0.7119 |
4.0150 | 335 | 0.2053 | - | - | - | - | - | - | - |
4.0749 | 340 | 0.1771 | - | - | - | - | - | - | - |
4.1348 | 345 | 0.2444 | - | - | - | - | - | - | - |
4.1948 | 350 | 0.1765 | - | - | - | - | - | - | - |
4.2547 | 355 | 0.1278 | - | - | - | - | - | - | - |
4.3146 | 360 | 0.1262 | - | - | - | - | - | - | - |
4.3745 | 365 | 0.1546 | - | - | - | - | - | - | - |
4.4345 | 370 | 0.1441 | - | - | - | - | - | - | - |
4.4944 | 375 | 0.1974 | - | - | - | - | - | - | - |
4.5543 | 380 | 0.1331 | - | - | - | - | - | - | - |
4.6142 | 385 | 0.1239 | - | - | - | - | - | - | - |
4.6742 | 390 | 0.1376 | - | - | - | - | - | - | - |
4.7341 | 395 | 0.1133 | - | - | - | - | - | - | - |
4.7940 | 400 | 0.0893 | - | - | - | - | - | - | - |
4.8539 | 405 | 0.1184 | - | - | - | - | - | - | - |
4.9139 | 410 | 0.0917 | - | - | - | - | - | - | - |
4.9738 | 415 | 0.1231 | - | - | - | - | - | - | - |
4.9978 | 417 | - | 0.4321 | 0.7052 | 0.6651 | 0.6863 | 0.7048 | 0.6176 | 0.7067 |
5.0337 | 420 | 0.1021 | - | - | - | - | - | - | - |
5.0936 | 425 | 0.1436 | - | - | - | - | - | - | - |
5.1536 | 430 | 0.1032 | - | - | - | - | - | - | - |
5.2135 | 435 | 0.0942 | - | - | - | - | - | - | - |
5.2734 | 440 | 0.0819 | - | - | - | - | - | - | - |
5.3333 | 445 | 0.0724 | - | - | - | - | - | - | - |
5.3933 | 450 | 0.1125 | - | - | - | - | - | - | - |
5.4532 | 455 | 0.0893 | - | - | - | - | - | - | - |
5.5131 | 460 | 0.0919 | - | - | - | - | - | - | - |
5.5730 | 465 | 0.0914 | - | - | - | - | - | - | - |
5.6330 | 470 | 0.0728 | - | - | - | - | - | - | - |
5.6929 | 475 | 0.0781 | - | - | - | - | - | - | - |
5.7528 | 480 | 0.0561 | - | - | - | - | - | - | - |
5.8127 | 485 | 0.0419 | - | - | - | - | - | - | - |
5.8727 | 490 | 0.0816 | - | - | - | - | - | - | - |
5.9326 | 495 | 0.0599 | - | - | - | - | - | - | - |
5.9925 | 500 | 0.0708 | 0.4462 | 0.7026 | 0.6653 | 0.6848 | 0.6969 | 0.6195 | 0.7021 |
6.0524 | 505 | 0.0619 | - | - | - | - | - | - | - |
6.1124 | 510 | 0.0916 | - | - | - | - | - | - | - |
6.1723 | 515 | 0.0474 | - | - | - | - | - | - | - |
6.2322 | 520 | 0.0457 | - | - | - | - | - | - | - |
6.2921 | 525 | 0.0401 | - | - | - | - | - | - | - |
6.3521 | 530 | 0.0368 | - | - | - | - | - | - | - |
6.4120 | 535 | 0.0622 | - | - | - | - | - | - | - |
6.4719 | 540 | 0.0499 | - | - | - | - | - | - | - |
6.5318 | 545 | 0.0771 | - | - | - | - | - | - | - |
6.5918 | 550 | 0.041 | - | - | - | - | - | - | - |
6.6517 | 555 | 0.0457 | - | - | - | - | - | - | - |
6.7116 | 560 | 0.0413 | - | - | - | - | - | - | - |
6.7715 | 565 | 0.0287 | - | - | - | - | - | - | - |
6.8315 | 570 | 0.025 | - | - | - | - | - | - | - |
6.8914 | 575 | 0.0492 | - | - | - | - | - | - | - |
6.9513 | 580 | 0.0371 | - | - | - | - | - | - | - |
6.9993 | 584 | - | 0.4195 | 0.6991 | 0.6660 | 0.6840 | 0.6939 | 0.6253 | 0.6978 |
- 加粗行表示保存的檢查點。
框架版本
- Python: 3.10.12
- Sentence Transformers: 3.0.1
- Transformers: 4.42.3
- PyTorch: 2.1.0+cu118
- Accelerate: 0.32.1
- Datasets: 2.20.0
- Tokenizers: 0.19.1
🔧 技術細節
微調過程
BGE-M3 模型的微調是通過先進的優化技術和超參數調整來完成的,重點在於提高其在法律語境中生成高質量嵌入的能力。
方法
- 數據集準備:整理和預處理了一個包含 23,700 個條目的數據集,其中包括來自不同法律領域的詳細問題、答案和上下文。
- 訓練:應用監督學習技術來調整模型的參數,優化其在生成嵌入方面的性能。
- 評估:實施特定的指標來評估生成的嵌入的質量和相關性,確保高精度和上下文一致性。
結果和優勢
嵌入質量
經過微調的 BGE-M3 模型現在顯示出更強的能力,能夠有效地捕捉法律語言和上下文的複雜性,從而顯著提高了信息檢索的準確性和相關性。
實際應用
- 信息檢索系統:提高了法律搜索引擎的準確性,便於快速訪問相關文檔和判例法。
- 虛擬助手:優化了聊天機器人和法律助手,使其能夠根據複雜的上下文提供準確的答案。
- 文檔分析:增強了分析和從大量法律文本中提取關鍵信息的能力。
性能評估
- 嵌入準確性:針對特定法律查詢生成的嵌入的準確性提高了 84%。
- 上下文相關性:檢索到的信息的一致性和相關性提高了 67%。
- 處理時間:生成和檢索相關信息所需的時間減少了 16%。
📄 許可證
本模型使用 apache-2.0 許可證。
引用
BibTeX
Sentence Transformers
@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",
}
MatryoshkaLoss
@misc{kusupati2024matryoshka,
title={Matryoshka Representation Learning},
author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
year={2024},
eprint={2205.13147},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
MultipleNegativesRankingLoss
@misc{henderson2017efficient,
title={Efficient Natural Language Response Suggestion for Smart Reply},
author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
year={2017},
eprint={1705.00652},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
術語表
引言
我們很高興地宣佈 BGE-M3 模型的微調工作已經完成,該模型專門針對引導式信息檢索(RAG)應用進行了優化。此次微調使用了一個包含 23,700 個法律問題、答案和上下文的詳細數據集,確保了模型在生成精確且相關的法律領域嵌入方面表現出色。
模型規格
- 基礎模型:BGE-M3
- 數據集大小:23,700 個法律問題、答案和上下文
- 領域:法律
- 數據格式:結構化文本
Jina Embeddings V3
Jina Embeddings V3 是一個多語言句子嵌入模型,支持超過100種語言,專注於句子相似度和特徵提取任務。
文本嵌入
Transformers 支持多種語言

J
jinaai
3.7M
911
Ms Marco MiniLM L6 V2
Apache-2.0
基於MS Marco段落排序任務訓練的交叉編碼器模型,用於信息檢索中的查詢-段落相關性評分
文本嵌入 英語
M
cross-encoder
2.5M
86
Opensearch Neural Sparse Encoding Doc V2 Distill
Apache-2.0
基於蒸餾技術的稀疏檢索模型,專為OpenSearch優化,支持免推理文檔編碼,在搜索相關性和效率上優於V1版本
文本嵌入
Transformers 英語

O
opensearch-project
1.8M
7
Sapbert From PubMedBERT Fulltext
Apache-2.0
基於PubMedBERT的生物醫學實體表徵模型,通過自對齊預訓練優化語義關係捕捉
文本嵌入 英語
S
cambridgeltl
1.7M
49
Gte Large
MIT
GTE-Large 是一個強大的句子轉換器模型,專注於句子相似度和文本嵌入任務,在多個基準測試中表現出色。
文本嵌入 英語
G
thenlper
1.5M
278
Gte Base En V1.5
Apache-2.0
GTE-base-en-v1.5 是一個英文句子轉換器模型,專注於句子相似度任務,在多個文本嵌入基準測試中表現優異。
文本嵌入
Transformers 支持多種語言

G
Alibaba-NLP
1.5M
63
Gte Multilingual Base
Apache-2.0
GTE Multilingual Base 是一個多語言的句子嵌入模型,支持超過50種語言,適用於句子相似度計算等任務。
文本嵌入
Transformers 支持多種語言

G
Alibaba-NLP
1.2M
246
Polybert
polyBERT是一個化學語言模型,旨在實現完全由機器驅動的超快聚合物信息學。它將PSMILES字符串映射為600維密集指紋,以數值形式表示聚合物化學結構。
文本嵌入
Transformers

P
kuelumbus
1.0M
5
Bert Base Turkish Cased Mean Nli Stsb Tr
Apache-2.0
基於土耳其語BERT的句子嵌入模型,專為語義相似度任務優化
文本嵌入
Transformers 其他

B
emrecan
1.0M
40
GIST Small Embedding V0
MIT
基於BAAI/bge-small-en-v1.5模型微調的文本嵌入模型,通過MEDI數據集與MTEB分類任務數據集訓練,優化了檢索任務的查詢編碼能力。
文本嵌入
Safetensors 英語
G
avsolatorio
945.68k
29
精選推薦AI模型
Llama 3 Typhoon V1.5x 8b Instruct
專為泰語設計的80億參數指令模型,性能媲美GPT-3.5-turbo,優化了應用場景、檢索增強生成、受限生成和推理任務
大型語言模型
Transformers 支持多種語言

L
scb10x
3,269
16
Cadet Tiny
Openrail
Cadet-Tiny是一個基於SODA數據集訓練的超小型對話模型,專為邊緣設備推理設計,體積僅為Cosmo-3B模型的2%左右。
對話系統
Transformers 英語

C
ToddGoldfarb
2,691
6
Roberta Base Chinese Extractive Qa
基於RoBERTa架構的中文抽取式問答模型,適用於從給定文本中提取答案的任務。
問答系統 中文
R
uer
2,694
98