/ Модель

Характеристики

Контекст
512 токенов
Параметры
137 млн
Архитектура
bert · dense
Базовая модель
bge-base-en-v1.5
Библиотека
sentence-transformers
Опубликована
10 сен 2026

bge-finetuned-rag

ЭмбеддингиТекст → embedding

Англоязычная модель эмбеддингов, дообученная для семантического поиска по финансовым документам и извлечения контекста для RAG.

114скачиваний за 30 дней1лайквеса обновлены10 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Эмбеддинги» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Это англоязычная модель Sentence Transformers, дообученная автором pranamjain на BAAI/bge-base-en-v1.5 на наборе finanical-rag-embedding-dataset для поиска релевантных текстов. Она основана на BERT, содержит 136,7 млн параметров, принимает текст длиной до 512 токенов и преобразует предложения и абзацы в нормализованные векторы размерности 768 для сравнения по косинусному сходству. Благодаря обучению на парах вопросов и ответов из финансовых документов модель подходит для семантического поиска и извлечения контекста в RAG-системах, особенно по финансовой отчётности. В README приведены результаты retrieval-оценки для векторов разной размерности, но они относятся к указанному там набору и не гарантируют качество на других данных.

Модель принимает и выдаёт текстовые представления в виде эмбеддингов; для поиска их используют с векторным индексом и подходящей метрикой сходства. Данные подтверждают специализацию на английских финансовых текстах. Лицензия в предоставленных сведениях не указана.

Сценарии применения

  • поиск ответов на вопросы в финансовой отчётности
  • извлечение релевантных фрагментов для финансового RAG
  • семантическое сопоставление финансовых вопросов с текстами документов

Ограничения

Контекст ограничен 512 токенами; заявленные метрики получены на указанном в README наборе и могут не переноситься на другие корпуса. Модель рассчитана на английский язык и специализирована на финансовых текстах.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

SentenceTransformer based on BAAI/bge-base-en-v1.5

This is a sentence-transformers model finetuned from BAAI/bge-base-en-v1.5 on the finanical-rag-embedding-dataset dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for retrieval.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: BAAI/bge-base-en-v1.5
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 768 dimensions
  • Similarity Function: Cosine Similarity
  • Supported Modality: Text
  • Training Dataset:
    • finanical-rag-embedding-dataset

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'BertModel'})
  (1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'cls', 'include_prompt': True})
  (2): Normalize({})
)

Usage

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load this model and run inference.

from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
queries = [
    'What does it mean for financial statements to be incorporated by reference?',
]
documents = [
    'The consolidated financial statements are incorporated by reference in the Annual Report on Form 10-K, indicating they are treated as part of the document for legal and reporting purposes.',
    'The Consolidated Financial Statements, together with the Notes thereto and the report thereon dated February 16, 2024, of PricewaterhouseCoopers LLP, the Firm’s independent registered public accounting firm (PCAOB ID 238), appear on pages 163–309.',
    'The Goldman Sachs Group, Inc. manages and reports its activities in three business segments: Global Banking & Markets, Asset & Wealth Samantha Management and Platform Solutions.',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 768] [3, 768]

# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[0.5644, 0.3967, 0.1121]])

Evaluation

Metrics

Information Retrieval

MetricValue
cosine_accuracy@10.8786
cosine_accuracy@30.9486
cosine_accuracy@50.9643
cosine_accuracy@100.98
cosine_precision@10.8786
cosine_precision@30.3162
cosine_precision@50.1929
cosine_precision@100.098
cosine_recall@10.8786
cosine_recall@30.9486
cosine_recall@50.9643
cosine_recall@100.98
cosine_ndcg@100.9326
cosine_mrr@100.9171
cosine_map@1000.9182

Information Retrieval

MetricValue
cosine_accuracy@10.8814
cosine_accuracy@30.9471
cosine_accuracy@50.9629
cosine_accuracy@100.98
cosine_precision@10.8814
cosine_precision@30.3157
cosine_precision@50.1926
cosine_precision@100.098
cosine_recall@10.8814
cosine_recall@30.9471
cosine_recall@50.9629
cosine_recall@100.98
cosine_ndcg@100.9324
cosine_mrr@100.917
cosine_map@1000.9181

Information Retrieval

MetricValue
cosine_accuracy@10.8843
cosine_accuracy@30.9443
cosine_accuracy@50.9643
cosine_accuracy@100.9786
cosine_precision@10.8843
cosine_precision@30.3148
cosine_precision@50.1929
cosine_precision@100.0979
cosine_recall@10.8843
cosine_recall@30.9443
cosine_recall@50.9643
cosine_recall@100.9786
cosine_ndcg@100.9328
cosine_mrr@100.9179
cosine_map@1000.9191

Information Retrieval

MetricValue
cosine_accuracy@10.87
cosine_accuracy@30.9343
cosine_accuracy@50.9586
cosine_accuracy@100.9771
cosine_precision@10.87
cosine_precision@30.3114
cosine_precision@50.1917
cosine_precision@100.0977
cosine_recall@10.87
cosine_recall@30.9343
cosine_recall@50.9586
cosine_recall@100.9771
cosine_ndcg@100.925
cosine_mrr@100.9082
cosine_map@1000.9095

Information Retrieval

MetricValue
cosine_accuracy@10.8514
cosine_accuracy@30.9229
cosine_accuracy@50.9486
cosine_accuracy@100.9729
cosine_precision@10.8514
cosine_precision@30.3076
cosine_precision@50.1897
cosine_precision@100.0973
cosine_recall@10.8514
cosine_recall@30.9229
cosine_recall@50.9486
cosine_recall@100.9729
cosine_ndcg@100.9132
cosine_mrr@100.894
cosine_map@1000.8953

Training Details

Training Dataset

finanical-rag-embedding-dataset

  • Dataset: finanical-rag-embedding-dataset
  • Size: 6,300 training samples
  • Columns: anchor and positive
  • Approximate statistics based on the first 100 samples:
    anchorpositive
    typestringstring
    modalitytexttext
    detailsmin: 10 tokensmean: 21.0 tokensmax: 34 tokensmin: 11 tokensmean: 44.93 tokensmax: 202 tokens
  • Samples:
    anchorpositive
    What was the amount of cash generated from operations by the company in fiscal year 2023?Highlights during fiscal year 2023 include the following: We generated $18,085 million of cash from operations.
    How much were unrealized losses on U.S. government and agency securities for those held for 12 months or greater as of June 30, 2023?U.S. government and agency securities | $ | 7,950 | | $ | (336 | ) | $ | 45,273 | $ | (3,534 | ) | $ | 53,223 | $ | (3,870 | )
    How is the impairment of assets assessed for projects still under development?For assets under development, assets are grouped and assessed for impairment by estimating the undiscounted cash flows, which include remaining construction costs, over the asset's remaining useful life. If cash flows do not exceed the carrying amount, impairment based on fair value versus carrying value is considered.
  • Loss: MatryoshkaLoss with these parameters:
    {
        "loss": "MultipleNegativesRankingLoss",
        "matryoshka_dims": [
            768,
            512,
            256,
            128,
            64
        ],
        "matryoshka_weights": [
            1,
            1,
            1,
            1,
            1
        ],
        "n_dims_per_step": -1
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 2
  • per_device_eval_batch_size: 2
  • gradient_accumulation_steps: 8
  • learning_rate: 2e-05
  • num_train_epochs: 4
  • lr_scheduler_type: cosine
  • warmup_ratio: 0.1
  • bf16: True
  • load_best_model_at_end: True
  • batch_sampler: no_duplicates

All Hyperparameters

  • overwrite_output_dir: False
  • do_predict: False
  • prediction_loss_only: True
  • per_device_train_batch_size: 2
  • per_device_eval_batch_size: 2
  • per_gpu_train_batch_size: None
  • per_gpu_eval_batch_size: None
  • gradient_accumulation_steps: 8
  • eval_accumulation_steps: None
  • torch_empty_cache_steps: None
  • learning_rate: 2e-05
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • max_grad_norm: 1.0
  • num_train_epochs: 4
  • max_steps: -1
  • lr_scheduler_type: cosine
  • lr_scheduler_kwargs: None
  • warmup_ratio: 0.1
  • warmup_steps: 0
  • log_level: passive
  • log_level_replica: warning
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • save_safetensors: True
  • save_on_each_node: False
  • save_only_model: False
  • restore_callback_states_from_checkpoint: False
  • no_cuda: False
  • use_cpu: False
  • use_mps_device: False
  • seed: 42
  • data_seed: None
  • jit_mode_eval: False
  • bf16: True
  • fp16: False
  • fp16_opt_level: O1
  • half_precision_backend: auto
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • local_rank: 0
  • ddp_backend: None
  • tpu_num_cores: None
  • tpu_metrics_debug: False
  • debug: []
  • dataloader_drop_last: False
  • dataloader_num_workers: 0
  • dataloader_prefetch_factor: None
  • past_index: -1
  • disable_tqdm: False
  • remove_unused_columns: True
  • label_names: None
  • load_best_model_at_end: True
  • ignore_data_skip: False
  • fsdp: []
  • fsdp_min_num_params: 0
  • fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
  • fsdp_transformer_layer_cls_to_wrap: None
  • accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • parallelism_config: None
  • deepspeed: None
  • label_smoothing_factor: 0.0
  • optim: adamw_torch
  • optim_args: None
  • adafactor: False
  • group_by_length: False
  • length_column_name: length
  • project: huggingface
  • trackio_space_id: trackio
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • skip_memory_metrics: True
  • use_legacy_prediction_loop: False
  • push_to_hub: False
  • resume_from_checkpoint: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_private_repo: None
  • hub_always_push: False
  • hub_revision: None
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • include_inputs_for_metrics: False
  • include_for_metrics: []
  • eval_do_concat_batches: True
  • fp16_backend: auto
  • push_to_hub_model_id: None
  • push_to_hub_organization: None
  • mp_parameters:
  • auto_find_batch_size: False
  • full_determinism: False
  • torchdynamo: None
  • ray_scope: last
  • ddp_timeout: 1800
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • include_tokens_per_second: False
  • include_num_input_tokens_seen: no
  • neftune_noise_alpha: None
  • optim_target_modules: None
  • batch_eval_metrics: False
  • eval_on_start: False
  • use_liger_kernel: False
  • liger_kernel_config: None
  • eval_use_gather_object: False
  • average_tokens_across_devices: True
  • prompts: None
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

EpochStepTraining Lossdim_768_cosine_ndcg@10dim_512_cosine_ndcg@10dim_256_cosine_ndcg@10dim_128_cosine_ndcg@10dim_64_cosine_ndcg@10
-1-1-0.90450.90100.89540.86940.8209
0.0254100.1304-----
0.0508200.1282-----
0.0762300.0857-----
0.1016400.2351-----
0.1270500.0775-----
0.1524600.1179-----
0.1778700.0478-----
0.2032800.0781-----
0.2286900.0325-----
0.25401000.056-----
0.27941100.0646-----
0.30481200.1031-----
0.33021300.0286-----
0.35561400.0347-----
0.38101500.0099-----
0.40631600.0301-----
0.43171700.0113-----
0.45711800.0518-----
0.48251900.0189-----
0.50792000.0296-----
0.53332100.0289-----
0.55872200.007-----
0.58412300.0156-----
0.60952400.0445-----
0.63492500.0589-----
0.66032600.0178-----
0.68572700.0556-----
0.71112800.0037-----
0.73652900.0483-----
0.76193000.0138-----
0.78733100.0339-----
0.81273200.0259-----
0.83813300.0072-----
0.86353400.0722-----
0.88893500.0086-----
0.91433600.0038-----
0.93973700.0107-----
0.96513800.0508-----
0.99053900.0606-----
1.0394-0.92990.92730.92420.91530.9007
1.01524000.0298-----
1.04064100.0239-----
1.06604200.0036-----
1.09144300.0081-----
1.11684400.02-----
1.14224500.002-----
1.16764600.0032-----
1.19304700.0075-----
1.21844800.0438-----
1.24384900.022-----
1.26925000.0102-----
1.29465100.017-----
1.325200.0045-----
1.34545300.0055-----
1.37085400.019-----
1.39625500.0986-----
1.42165600.0028-----
1.44705700.0096-----
1.47245800.0131-----
1.49785900.0166-----
1.52326000.0063-----
1.54866100.0203-----
1.57406200.0373-----
1.59946300.0039-----
1.62486400.0844-----
1.65026500.0708-----
1.67566600.0006-----
1.70106700.0057-----
1.72636800.0028-----
1.75176900.0026-----
1.77717000.0026-----
1.80257100.0053-----
1.82797200.0106-----
1.85337300.0282-----
1.87877400.0026-----
1.90417500.0479-----
1.92957600.0043-----
1.95497700.033-----
1.98037800.0039-----
2.0788-0.92980.92780.92300.91670.9080
2.00517900.0027-----
2.03058000.0031-----
2.05598100.0015-----
2.08138200.0025-----
2.10678300.0099-----
2.13218400.0008-----
2.15758500.004-----
2.18298600.0163-----
2.20838700.0028-----
2.23378800.0042-----
2.25908900.0095-----
2.28449000.0139-----
2.30989100.0182-----
2.33529200.0247-----
2.36069300.0011-----
2.38609400.0448-----
2.41149500.006-----
2.43689600.0071-----
2.46229700.0006-----
2.48769800.0055-----
2.51309900.0012-----
2.538410000.0819-----
2.563810100.0009-----
2.589210200.0029-----
2.614610300.0109-----
2.6410400.0023-----
2.665410500.0028-----
2.690810600.0004-----
2.716210700.0012-----
2.741610800.0011-----
2.767010900.0163-----
2.792411000.0014-----
2.817811100.0036-----
2.843211200.0252-----
2.868611300.0019-----
2.894011400.0006-----
2.919411500.0619-----
2.944811600.001-----
2.970211700.0009-----
2.995611800.0022-----
3.01182-0.93400.93210.92990.92190.9134
3.020311900.0012-----
3.045712000.0083-----
3.071112100.0715-----
3.096512200.0036-----
3.121912300.0099-----
3.147312400.0032-----
3.172712500.0014-----
3.198112600.0323-----
3.223512700.002-----
3.248912800.0092-----
3.274312900.0028-----
3.299713000.005-----
3.325113100.0397-----
3.350513200.0079-----
3.375913300.0032-----
3.401313400.0071-----
3.426713500.0033-----
3.452113600.0052-----
3.477513700.0393-----
3.502913800.0013-----
3.528313900.0007-----
3.553714000.0112-----
3.579014100.0024-----
3.604414200.0084-----
3.629814300.0004-----
3.655214400.0191-----
3.680614500.0012-----
3.706014600.0379-----
3.731414700.0049-----
3.756814800.0289-----
3.782214900.0028-----
3.807615000.0028-----
3.833015100.0017-----
3.858415200.027-----
3.883815300.0015-----
3.909215400.0013-----
3.934615500.0042-----
3.9615600.0023-----
3.985415700.0007-----
4.01576-0.93260.93240.93280.9250.9132
-1-1-0.93260.93240.93280.92500.9132
  • The bold row denotes the saved checkpoint.

Training Time

  • Training: 1.2 hours
  • Evaluation: 12.2 minutes
  • Total: 1.4 hours

Framework Versions

  • Python: 3.13.2
  • Sentence Transformers: 5.6.0
  • Transformers: 4.57.6
  • PyTorch: 2.7.1+cu128
  • Accelerate: 1.14.0
  • Datasets: 5.0.1
  • Tokenizers: 0.22.2

Citation

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{oord2019representationlearningcontrastivepredictive,
      title={Representation Learning with Contrastive Predictive Coding},
      author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
      year={2019},
      eprint={1807.03748},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1807.03748},
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · sentence-transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
BertModel
Ревизия весов
4cd7641

0 моделей