nomic

This is a sentence-transformers model finetuned from nomic-ai/nomic-embed-text-v1.5 on the ccdb-triplets 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: nomic-ai/nomic-embed-text-v1.5
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 768 dimensions
  • Similarity Function: Cosine Similarity
  • Supported Modality: Text
  • Training Dataset:
    • ccdb-triplets
  • Language: en
  • License: apache-2.0

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': 'NomicBertModel'})
  (1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
)

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 = [
    'On XX/XX/year>. My wallet was stolen from XXXX XXXX on XXXX XXXX, CA. They spent XXXX on my my debit card somehow without my pin. Now I filed a dispute 3 times and the bank ( chime ) and they are claiming there was no error with the transactions. I clearly got scammed and they are basically saying there is nothing they can do and kick rocks. Their specialist claimed they throughly investigated but clearly they didnt do anything because I sent my police report just how they asked, and it didnt help. I needed that money and now Im left stuck',
]
documents = [
    'On XX/XX/2026 @ XXXX & XXXX two fraudulent charges were made to my Chime bank account. \n\nThe amounts of {$270.00} and {$44.00} were made at a local XXXX store. \n\nMy debit card was stolen earlier that day from my driveway so I immediately called chime and they cancelled my card and assured me a new one. \n\nCreating a dispute to get my money back has been a hassle as I have been denied 3 times by Chime and keep saying no error has occurred. \n\nThey sent me their findings as to how they came to this conclusion. Which was essentially just transcripts of the previous phone calls I made to report it. No actual evidence was provided in the report. \n\nThere is also false information saying that I didnt make a police report when in fact I did, the same day of XX/XX/year>. \n\nToday I just got denied for the third time via email and am now seeking assistance from your organization. \nXX/XX/year> P.s I am willing to provide more evidence',
    'Take time to review the materials ; the questions were submitted abruptly and might not be approved.',
    "I am submitting this complaint regarding a medical collection account that is incorrectly appearing on my credit report, despite the CFPBs recent rule banning the inclusion of medical debt on credit reports used by lenders. \n\nOn XX/XX/year> I reviewed my credit reports and found that a medical collection account from XXXX XXXX XXXX is still being reported to EXPERIAN, EQUIFAX AND TRANSUNION. According to the CFPBs final rule effective in XXXX, medical debts should no longer appear on consumer credit reports. \n\nI've requested removal, but they have either refused or failed to take appropriate action. This incorrect reporting is negatively impacting my credit and financial opportunities.",
]
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.6088, -0.0844, -0.0697]])

Evaluation

Metrics

Triplet

Metric Value
cosine_accuracy 1.0

Training Details

Training Dataset

ccdb-triplets

  • Dataset: ccdb-triplets
  • Size: 124,887 training samples
  • Columns: query, positive, and negative
  • Approximate statistics based on the first 100 samples:
    query positive negative
    type string string string
    modality text text text
    details
    • min: 12 tokens
    • mean: 286.37 tokens
    • max: 512 tokens
    • min: 21 tokens
    • mean: 295.7 tokens
    • max: 512 tokens
    • min: 10 tokens
    • mean: 44.4 tokens
    • max: 222 tokens
  • Samples:
    query positive negative
    Complaint Against : Citibank ( Home Depot Credit Card ) Issue : Failure to timely return funds from erroneous payment / Unreasonable delay / Refusal to escalate On XX/XX/XXXX, I attempted to make an online payment of {$49.00} to my Home Depot Credit Card account ( issued by Citibank ). Due to a payment entry error on my part, a payment of {$2200.00} was processed instead.

    On XX/XX/XXXX, I contacted XXXX immediately to report the error and request that the excess {$2200.00} be returned to my bank account. I was told this would not be a problem. I received an email confirming that a work order had been opened to return the funds ; however, the communication provided no timeframe and no additional instructions.

    Since then, I have called multiple times seeking a status update. During these calls : I have been disconnected repeatedly after being placed on hold.

    On XX/XX/XXXX, I was disconnected twice by a representative named XXXX.

    I have been denied escalation to a supervisor despi...
    Complaint Against Citibank Home Depot Credit Card I have a Home Depot credit card account serviced by Citibank. My balance is approximately {$1300.00} I had automatic payments set up on this account. In addition, my wife made additional payments to ensure the account was paid on time. Citibank returned the checks that were sent for payment. These were not bounced for insufficient funds they were returned by Citibank. We received the returned checks and redeposited them into our bank account.

    Because Citibank returned the payments, the account was marked late and a late payment fee was added. This late fee was not caused by failure to pay, but by returned payments initiated by Citibank. We made good faith efforts to pay on time through automatic payments and additional mailed payments.

    I am requesting : Immediate removal of the late fee.

    Reversal of any interest charged as a result of the late fee.

    Confirmation that no negative information has been or will be reported to any cre...
    My account got deactivated because apparently I went against the terms of services
    This is a new and separate complaint regarding a {$14000.00} international wire transfer sent on XX/XX/year>. It is not related in any way to the {$200.00} wire from XX/XX/year>, which Chase mistakenly responded to in my prior CFPB complaint. Their response addressed the wrong transaction and must be disregarded.

    On Thursday, XX/XX/year>, I sent a {$14000.00} international wire transfer. The beneficiary had accidentally provided incorrect account information.

    We discovered the error on Monday, XX/XX/XXXX, and I immediately contacted Chases Wire Transfer Department. I spoke with three different representatives that day and clearly requested a recall of the wire. Each representative confirmed the recall would be submitted immediately and assured me it was being processed. These calls were recorded and documented.

    However, when I followed up days later, I was informed that no recall had been submitted through SWIFT. There is no XXXX or XXXX message on record, and no trace message wa...
    On XX/XX/XXXX, I requested a telephonic wire from my credit union to Chase Bank. I contacted my credit union ( XXXX XXXXXXXX XXXX XXXXXXXX XXXX XXXX XXXX XXXX ) and requested the telephonic wire. The wire 's beneficiary was listed as XXXX XXXX XXXX, with a corresponding address of XXXX XXXX XXXX, XXXX XXXX, XXXX XXXX.
    The corresponding account no. for XXXX XXXX XXXX was XXXX. However, the account no. that the wire was sent to was XXXX ( with the last digit being incorrect ). Chase did not verify that the account beneficiary and account number provided were the same.
    When the mistake was identified, Chase was immediately notified by XXXX. Several phone calls and messages were sent to Chase. At first, Chase appeared to XXXX, stating that the wrong beneficiary had been contacted and the funds were going to be credited back.
    XXXX initiated a Wire Recall Request ( Request No. XXXX ). Chase responded to XXXX on XX/XX/XXXX, stating that Chase was contacting the beneficiary for debit autho...
    Account has been hacked and information has been released or shared
    on XX/XX/XXXX I purchased items from XXXXXXXX XXXX in XXXX, which I did not receive because the XXXX XXXX lost the package. It was " lost '' while the courier had it in his truck to deliver. Instead of stating that the package was lost in his possession, he lied and said he attempted delivery, but my building was locked and he didn't have access code. I immediately called XXXX XXXX to let them know this was impossible because we have XXXX hour concierge who is signer for all packages, and no access code because our doors are unlocked XXXX hours. I called XXXX XXXX every day for XXXX days asking for the package redelivery, and on the XXXX day spoke to supervisor XXXX who informed me that the package had been lost while in route to my address. I was told I couldn't file a claim that only the seller could do this. I contacted the seller XXXX times and got no reply, but was told by XXXX XXXX that ganga fashions had already filed a claim for the lost package. I am out XXXX for the clothing... In XX/XX/year>, I made a purchase from XXXX for {$370.00}. The package never arrived. Although the tracking initially showed delivered, XXXX completed an investigation and issued a written statement confirming that the package was never delivered and is irretrievably lost.

    I filed a police report ( Report XXXX. XXXX ) after confirming the package was missing.
    I also contacted XXXX XXXX, but they refused to issue a refund or replacement, even after XXXX confirmed the loss.

    I submitted a dispute to Chime and provided all supporting documents, including : XXXX loss confirmation, Police report, Evidence of the merchants refusal to resolve the issue.

    However, Chime denied my dispute XXXX times ( initial dispute and XXXX re-disputes ).
    Chime did not explain why the evidence was not considered.

    Because the merchandise never reached me, this is a standard merchandise not received case.
    I am requesting CFPB assistance to have Chime properly reinvestigate my dispute in accordance with...
    My information was leaked in the data breach that occurred
  • Loss: CachedMultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "similarity_fct": "cos_sim",
        "mini_batch_size": 4,
        "gather_across_devices": false,
        "directions": [
            "query_to_doc"
        ],
        "partition_mode": "joint",
        "hardness_mode": null,
        "hardness_strength": 0.0
    }
    

Evaluation Dataset

ccdb-triplets

  • Dataset: ccdb-triplets
  • Size: 26,763 evaluation samples
  • Columns: query, positive, and negative
  • Approximate statistics based on the first 100 samples:
    query positive negative
    type string string string
    modality text text text
    details
    • min: 15 tokens
    • mean: 276.57 tokens
    • max: 512 tokens
    • min: 16 tokens
    • mean: 293.16 tokens
    • max: 512 tokens
    • min: 12 tokens
    • mean: 53.63 tokens
    • max: 303 tokens
  • Samples:
    query positive negative
    Dear Sir/Madam, I am writing to dispute the following accounts reported on my credit report. These items do not accurately reflect my credit history and I respectfully request that they be reviewed for correction or removal in accordance with the Fair Credit Reporting Act ( FCRA ). Below, I have listed the accounts in dispute, separated by each credit bureau.

    CHARGED OFF XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX...
    Dear Sir/Madam, I am writing to dispute the following accounts on my credit report. I believe these accounts contain inaccuracies and are being reported in error.

    Charged Off Accounts XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX
    I had medical insurance and it should have been covered.
    My Apple Card account was closed for alleged fraud with no fraudulent activity present. I contacted Goldman Sachs XXXX XXXX ( XXXX representatives including a manager ) and was given no explanation and no path for review. I am requesting a detailed explanation and reconsideration of the closure. I opened this account XX/XX/year>. Havent had XXXX issue with this card ever. Even though you can use it anywhere I only use it at the Apple XXXX. I currently had apple subscriptions on it as well. I randomly got a notification on my XXXX my Apple Card was unavailable at XXXX est. Thats when I began to call. They sent me a generic email and nobody was providing any information. They said I could reapply. Tried that it said nope already have an account. Its crazy on the email it says call customer service for them to not tell me anything. I received an email from Apple stating me account was closed and I could no longer use the card. When I contacted Apple XXXX and Goldman Sachs neither would provide me with information as to why my account was closed. The email stated that it was closed due to failure to comply with customer agreement. I asked for an explanation and nothing was given. I was making payments on the account and it was still closed. I would like to find out why. Received a email today or yesterday about a upcoming payment. My email is not for that I get a paper statement every month for notification. I could understand if email is for confirmation of payment. To me its harassment to use my email to let me know about a upcoming payment. This is a VA backed loan. Even if you're late you get a letter which is fine. We all get enough emails we have to delete. I haven't been 30 days late on any mortgage in almost 30 years. That can be verified by my credit. And I maintain a good credit score. If im late I pay the late fee with no problem. So those emails about a upcoming payment is harassment. I suffer from a medical condition that makes this really unhealthy for me. I can provide that medical documents.
    I am submitting a complaint regarding my auto loan with XXXX XXXX XXXX My account has never been included in bankruptcy proceedings. Although I filed a XXXX XXXX bankruptcy, the case was dismissed and this auto loan was not part of that filing. I have continued making on-time payments on this account since XX/XX/year>, and the account remains active and in good standing. However, XXXX has stated that they are not reporting this account to the credit bureaus due to an internal bankruptcy flag. They also indicated that they can not remove the bankruptcy designation from the account due to internal policy. This is concerning, as the account is not currently in bankruptcy, was not included in the bankruptcy, and remains active. Maintaining a bankruptcy-related designation or suppressing reporting under these circumstances may result in incomplete or misleading credit reporting. I am requesting that XXXX review this account for accurate classification and determine whether the account can b... I am submitting a complaint regarding inaccurate credit reporting on an auto loan account. This account was included in my bankruptcy, and the vehicle was surrendered as part of the bankruptcy process. The debt was discharged ; however, the account is currently being reported with continued late payments after the bankruptcy discharge date. This is inaccurate and misleading. Once a debt is included in bankruptcy and discharged, it should not reflect ongoing delinquency. The account should instead be reported as Included in Bankruptcy or Discharged in Bankruptcy with a {$0.00} balance. The current reporting misrepresents the status of this account and is negatively impacting my credit profile. I am requesting that this account be corrected to accurately reflect its inclusion in bankruptcy and that all inaccurate post-discharge activity be removed. Sent money person never received it a few time and I never received money that was suppose to be sent to me and nothing was done about it
  • Loss: CachedMultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "similarity_fct": "cos_sim",
        "mini_batch_size": 4,
        "gather_across_devices": false,
        "directions": [
            "query_to_doc"
        ],
        "partition_mode": "joint",
        "hardness_mode": null,
        "hardness_strength": 0.0
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 16
  • num_train_epochs: 20
  • learning_rate: 2e-05
  • warmup_steps: 0.1
  • bf16: True
  • per_device_eval_batch_size: 16
  • load_best_model_at_end: True
  • seed: 777
  • data_seed: 777
  • prompts: {'query': 'search_query: ', 'positive': 'search_document: ', 'negative': 'search_document: '}
  • batch_sampler: no_duplicates

All Hyperparameters

Click to expand
  • per_device_train_batch_size: 16
  • num_train_epochs: 20
  • max_steps: -1
  • learning_rate: 2e-05
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: None
  • warmup_steps: 0.1
  • optim: adamw_torch_fused
  • optim_args: None
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • optim_target_modules: None
  • gradient_accumulation_steps: 1
  • average_tokens_across_devices: True
  • max_grad_norm: 1.0
  • label_smoothing_factor: 0.0
  • bf16: True
  • fp16: False
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • use_liger_kernel: False
  • liger_kernel_config: None
  • use_cache: False
  • neftune_noise_alpha: None
  • torch_empty_cache_steps: None
  • auto_find_batch_size: False
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • include_num_input_tokens_seen: no
  • log_level: passive
  • log_level_replica: warning
  • disable_tqdm: False
  • project: huggingface
  • trackio_space_id: None
  • trackio_bucket_id: None
  • trackio_static_space_id: None
  • per_device_eval_batch_size: 16
  • prediction_loss_only: True
  • eval_on_start: False
  • eval_do_concat_batches: True
  • eval_use_gather_object: False
  • eval_accumulation_steps: None
  • include_for_metrics: []
  • batch_eval_metrics: False
  • save_only_model: False
  • save_on_each_node: False
  • enable_jit_checkpoint: False
  • push_to_hub: False
  • hub_private_repo: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_always_push: False
  • hub_revision: None
  • load_best_model_at_end: True
  • ignore_data_skip: False
  • restore_callback_states_from_checkpoint: False
  • full_determinism: False
  • seed: 777
  • data_seed: 777
  • use_cpu: False
  • 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
  • dataloader_drop_last: False
  • dataloader_num_workers: 0
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • dataloader_prefetch_factor: None
  • dataloader_multiprocessing_context: None
  • dataloader_in_order: True
  • remove_unused_columns: True
  • label_names: None
  • train_sampling_strategy: random
  • length_column_name: length
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • ddp_static_graph: None
  • ddp_backend: None
  • ddp_timeout: 1800
  • fsdp: None
  • fsdp_config: None
  • deepspeed: None
  • debug: []
  • skip_memory_metrics: True
  • do_predict: False
  • resume_from_checkpoint: None
  • local_rank: -1
  • prompts: {'query': 'search_query: ', 'positive': 'search_document: ', 'negative': 'search_document: '}
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}
  • warmup_ratio: None

Training Logs

Epoch Step Training Loss Validation Loss triplet-eval_cosine_accuracy
-1 -1 - - 1.0
1.0 7806 0.1856 0.0569 1.0
2.0 15612 0.0472 0.0402 1.0
3.0 23418 0.0361 0.0347 1.0000
4.0 31224 0.0330 0.0330 1.0
5.0 39030 0.0321 0.0324 1.0
6.0 46836 0.0320 0.0319 1.0
7.0 54642 0.0311 0.0315 1.0
-1 -1 - - 1.0
  • The bold row denotes the saved checkpoint.

Training Time

  • Training: 4.1 hours

Framework Versions

  • Python: 3.13.16
  • Sentence Transformers: 5.6.0
  • Transformers: 5.22.1
  • PyTorch: 2.14.1+cu130
  • Accelerate: 1.14.0
  • Datasets: 4.8.5
  • Tokenizers: 0.23.3

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",
}

CachedMultipleNegativesRankingLoss

@misc{gao2021scaling,
    title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
    author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
    year={2021},
    eprint={2101.06983},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
}
Downloads last month
43
Safetensors
Model size
0.1B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for finvector/nomic_raw_ccdb_tri_merged

Finetuned
(45)
this model

Papers for finvector/nomic_raw_ccdb_tri_merged

Evaluation results