qnguyenle/bge-it-helpdesk-retriever
SentenceTransformer based on BAAI/bge-base-en-v1.5
This is a sentence-transformers model finetuned from BAAI/bge-base-en-v1.5. It maps sentences & paragraphs to a 768-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: BAAI/bge-base-en-v1.5 <!-- at revision a5beb1e3e68b9ab74eb54cfd186867f64f240e1a -->
- Maximum Sequence Length: 512 tokens
- Output Dimensionality: 768 dimensions
- Similarity Function: Cosine Similarity <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->
Model Sources
- Documentation: Sentence Transformers Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sentence Transformers on Hugging Face
Full Model Architecture
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 768, '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()
)Usage
Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
pip install -U sentence-transformersThen you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("qnguyenle/bge-it-helpdesk-retriever")
# Run inference
sentences = [
"Represent this sentence for searching relevant passages: Users can't log on to Windows if a multi-app kiosk profile is assigned",
"Table of contents\nExit editor mode\nAsk Learn\nAsk Learn\nReading mode\nTable of contents\nRead in English\nAdd\nAdd to plan\nEdit\nCopy Markdown\nPrint\nNote\nAccess to this page requires authorization. You can try\nsigning in\nor\nchanging directories\n.\nAccess to this page requires authorization. You can try\nchanging directories\n.\nUsers can't log on to Windows if a multi-app kiosk profile is assigned\nFeedback\nSummarize this article for me\nThis article helps you fix an issue in which a user can't log on to a Microsoft Entra joined Windows 10 or Windows 11 computer if a multi-app kiosk profile is assigned.\nSymptoms\nWhen a user tries to log on to a Microsoft Entra joined Windows 10 or Windows 11 computer that has a multi-app kiosk profile assigned, the attempt fails immediately before the user profile is loaded.\nIn this situation, the kiosk profile logon type is\nMicrosoft Entra user\nor\nGroup\n. Additionally, the Windows 10 or Windows 11 computer uses a local account, and you notice the following error messages in the Event Viewer logs:\nMicrosoft Entra ID - Operational logs (Sample 1 - MFA required via conditional access):\nLog Name: Microsoft-Windows-AAD/Operational\nSource: Microsoft-Windows-AAD\nDate:\n<Timestamp>\nEvent ID: 1098\nTask Category: AadTokenBrokerPlugin Operation\nLevel: Error\nKeywords: Error,Error\nUser:\n<User SID>\nComputer:\n<Computer Name>\nDescription:\nError: 0xCAA2000C The request requires user interaction.\nCode: interaction_required\nDescription: AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000003-0000-0000-c000-000000000000'.\nMicrosoft Entra ID - Operational logs (Sample 2 - Terms of Use (TOU) required via conditional access):\nLog Name: Microsoft-Windows-AAD/Operational\nSource: Microsoft-Windows-AAD\nDate:\n<Timestamp>\nEvent ID: 1098\nTask Category: AadTokenBrokerPlugin Operation\nLevel: Error\nKeywords: ",
"Table of contents\nExit editor mode\nAsk Learn\nAsk Learn\nReading mode\nTable of contents\nRead in English\nAdd\nAdd to plan\nEdit\nCopy Markdown\nPrint\nNote\nAccess to this page requires authorization. You can try\nsigning in\nor\nchanging directories\n.\nAccess to this page requires authorization. You can try\nchanging directories\n.\nTroubleshooting PKCS certificate deployment in Intune\nFeedback\nSummarize this article for me\nThis article gives troubleshooting guidance for several common issues when deploying Public Key Cryptography Standards (PKCS) certificates in Microsoft Intune. Before troubleshooting, ensure you've completed the following tasks, as explained in\nConfigure and use PKCS certificates with Intune\n:\nReview the\nrequirements for using PKCS certificate profiles\n.\nExport the root certificate from the Enterprise Certification Authority (CA).\nConfigure certificate templates on the certification authority.\nInstall and configure the Intune Certificate Connector.\nCreate and deploy a trusted certificate profile to deploy the root certificate.\nCreate and deploy a PKCS certificate profile.\nThe most common source of problems for PKCS certificate profiles has been with the configuration of the PKCS certificate profile. Review the profiles configuration and look for typos in server names or fully qualified domain names (FQDNs), and confirm the\nCertificate Authority\nand\nCertificate Authority Name\nare correct.\nCertification Authority\n: The internal FQDN of the Certificate Authority computer. For example, server1.domain.local.\nCertification Authority Name\n: The Certificate Authority Name as displayed in the certification authority MMC. Look under\nCertification Authority (Local)\nYou can use the\ncertutil command-line program\non the CA to confirm the correct name for the Certification Authority and Certification Authority Name.\nPKCS communication overview\nThe following graphic provides a basic overview of the PKCS certificate deployment process in Intune.\nAn Admin creates a PKCS certific",
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]<!--
Direct Usage (Transformers)
<details><summary>Click to see the direct usage in Transformers</summary>
</details> -->
<!--
Downstream Usage (Sentence Transformers)
You can finetune this model on your own dataset.
<details><summary>Click to expand</summary>
</details> -->
<!--
Out-of-Scope Use
List how the model may foreseeably be misused and address what users ought not to do with the model. -->
<!--
Bias, Risks and Limitations
What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model. -->
<!--
Recommendations
What are recommendations with respect to the foreseeable issues? For example, filtering explicit content. -->
Training Details
Training Dataset
Unnamed Dataset
- Size: 2,185 training samples
- Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
- Approximate statistics based on the first 1000 samples: | | anchor | positive | negative | |:--------|:-----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------| | type | string | string | string | | details | <ul><li>min: 11 tokens</li><li>mean: 28.84 tokens</li><li>max: 93 tokens</li></ul> | <ul><li>min: 182 tokens</li><li>mean: 400.05 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 182 tokens</li><li>mean: 400.67 tokens</li><li>max: 512 tokens</li></ul> |
- Samples: | anchor | positive | negative | |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | <code>Represent this sentence for searching relevant passages: Assume that you're a Microsoft cloud services admin who has Microsoft Azure Multi-Factor Authentication enabled. If you lose your phone or your phone number has changed, you can't sign in to your clou</code> | <code>Table of contents<br>Exit editor mode<br>Ask Learn<br>Ask Learn<br>Reading mode<br>Table of contents<br>Read in English<br>Add<br>Add to plan<br>Edit<br>Copy Markdown<br>Print<br>Note<br>Access to this page requires authorization. You can try<br>signing in<br>or<br>changing directories<br>.<br>Access to this page requires authorization. You can try<br>changing directories<br>.<br>Can't use Azure Multi-Factor Authentication to sign in to cloud services after you lose your phone or the phone number changes<br>Feedback<br>Summarize this article for me<br>Original product version:<br>Cloud Services (Web roles/Worker roles), Microsoft Entra ID, Microsoft Intune, Azure Backup, Office 365 Identity Management<br>Original KB number:<br>2834954<br>Symptoms<br>Assume that you're a Microsoft cloud services admin who has Microsoft Azure Multi-Factor Authentication enabled. If you lose your phone or your phone number has changed, you can't sign in to your cloud services account (such as Office 365, Azure, or Microsoft Intune) because you didn't receive the text message or voice call f...</code> | <code>Table of contents<br>Exit editor mode<br>Ask Learn<br>Ask Learn<br>Reading mode<br>Table of contents<br>Read in English<br>Add<br>Add to plan<br>Copy Markdown<br>Print<br>Note<br>Access to this page requires authorization. You can try<br>signing in<br>or<br>changing directories<br>.<br>Access to this page requires authorization. You can try<br>changing directories<br>.<br>Error "We couldn't add member" when adding users to Teams<br>Applies to: Microsoft Teams<br>Feedback<br>Summarize this article for me<br>Symptoms<br>When you add an internal or external member to Teams, you see the following error:<br>"We couldn't add member. We ran into an issue. Please try again later."<br>However, members can be added directly to Microsoft 365 groups.<br>Workaround<br>This issue occurs when the value<br>UsersPermissionToReadOtherUsersEnabled<br>is set to<br>False<br>in Microsoft Entra ID. To correct the issue, change this setting to<br>True<br>.<br>More information<br>Still need help? Go to<br>Microsoft Community<br>.<br>Feedback<br>Was this page helpful?<br>Yes<br>No<br>No<br>Need help with this topic?<br>Want to try using Ask Learn...</code> | | <code>Represent this sentence for searching relevant passages: How do I resolve the AADSTS7000112 error that occurs when trying to use an application with Microsoft Entra ID?</code> | <code>Table of contents<br>Exit editor mode<br>Ask Learn<br>Ask Learn<br>Reading mode<br>Table of contents<br>Read in English<br>Add<br>Add to plan<br>Edit<br>Copy Markdown<br>Print<br>Note<br>Access to this page requires authorization. You can try<br>signing in<br>or<br>changing directories<br>.<br>Access to this page requires authorization. You can try<br>changing directories<br>.<br>Error AADSTS7000112 - Application is disabled<br>Feedback<br>Summarize this article for me<br>Summary<br>This article discusses how to resolve the<br>AADSTS7000112<br>error that occurs when you try to sign in to an application that can be used together with Microsoft Entra ID.<br>Symptoms<br>When you try to sign in to an Azure application that's integrated into Microsoft Entra ID, you receive the following<br>AADSTS7000112<br>error message:<br>Application '<appIdentifier>'(<appName>) disabled.<br>Cause<br>The service principal object is disabled on the resource tenant.<br>Solution<br>Work together with the resource tenant owners to determine why the service principal object is disabled. Then, use the following table...</code> | <code>Table of contents<br>Exit editor mode<br>Ask Learn<br>Ask Learn<br>Reading mode<br>Table of contents<br>Read in English<br>Add<br>Add to plan<br>Edit<br>Copy Markdown<br>Print<br>Note<br>Access to this page requires authorization. You can try<br>signing in<br>or<br>changing directories<br>.<br>Access to this page requires authorization. You can try<br>changing directories<br>.<br>Error 806 or 808 when you import Windows Autopilot device CSV files in Intune<br>Feedback<br>Summarize this article for me<br>This article helps you fix an issue where you receive the<br>ZtdDeviceAlreadyAssigned (806)<br>or<br>ZtdDeviceAssignedToOtherTenant (808)<br>error message when you import Windows Autopilot device CSV files in Microsoft Intune.<br>Symptoms<br>When you try to import a CSV file in the<br>Microsoft Intune admin center<br>(<br>Devices<br>><br>Windows<br>><br>Windows enrollment<br>><br>Devices<br>(under<br>Windows Autopilot Deployment Program<br>) ><br>Import<br>), you receive an error message similar to these:<br>Error details<br>Device is already registered to the same Tenant.<br>Error code:<br>806 -<br>ZtdDeviceAlreadyAssigned<br>CSV li...</code> | | <code>Represent this sentence for searching relevant passages: If you try to open a file while working offline in this scenario, the attempt fails. The error message that's displayed in this situation varies, depending on the application. Word and Excel fail with</code> | <code>Table of contents<br>Exit editor mode<br>Ask Learn<br>Ask Learn<br>Reading mode<br>Table of contents<br>Read in English<br>Add<br>Add to plan<br>Edit<br>Copy Markdown<br>Print<br>Note<br>Access to this page requires authorization. You can try<br>signing in<br>or<br>changing directories<br>.<br>Access to this page requires authorization. You can try<br>changing directories<br>.<br>Can't open files offline when you use Offline Files and Windows Information Protection<br>Applies to:<br>Supported versions of Windows Client<br>Feedback<br>Summarize this article for me<br>This article provides workarounds for an issue that prevents you from opening files offline when you're using the Offline Files feature together with Windows Information Protection.<br>Applies to:<br>Windows 10 - all editions<br>Original KB number:<br>3187045<br>Symptoms<br>Consider the following scenario:<br>You have Windows 10 installed.<br>Special folders (for example, Documents or Favorites) are redirected to a file share.<br>User data in the redirected folders is cached locally through the Offline Files feature.<br>Windows I...</code> | <code>Table of contents<br>Exit editor mode<br>Ask Learn<br>Ask Learn<br>Reading mode<br>Table of contents<br>Read in English<br>Add<br>Add to plan<br>Edit<br>Copy Markdown<br>Print<br>Note<br>Access to this page requires authorization. You can try<br>signing in<br>or<br>changing directories<br>.<br>Access to this page requires authorization. You can try<br>changing directories<br>.<br>HTTP Error 500.19 - Internal Server Error when launching the App-V Management console<br>Applies to:<br>Supported versions of Windows Client<br>Feedback<br>Summarize this article for me<br>This article provides a solution to an issue where launching the App-V 5.0 Management console that's installed on a drive other than the C: drive fails.<br>Applies to:<br>Windows Server 2008 R2 Service Pack 1, Windows 7 Service Pack 1<br>Original KB number:<br>2800730<br>Symptoms<br>When the App-V 5.0 Management console is installed on a drive other than the C: drive, launching the console may fail and generate the following error message:<br>HTTP Error 500.19 - Internal Server Error<br>Module IIS Web Core<br>Notification Unkno...</code> |
- Loss: <code>MultipleNegativesRankingLoss</code> with these parameters:
{
"scale": 20.0,
"similarity_fct": "cos_sim"
}Training Hyperparameters
Non-Default Hyperparameters
per_device_train_batch_size: 16learning_rate: 2e-05warmup_ratio: 0.1fp16: True
All Hyperparameters
<details><summary>Click to expand</summary>
overwrite_output_dir: Falsedo_predict: Falseeval_strategy: noprediction_loss_only: Trueper_device_train_batch_size: 16per_device_eval_batch_size: 8per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 2e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 3max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: Nonewarmup_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: Falsebf16: Falsefp16: Truefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_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: Falseignore_data_skip: Falsefsdp: []fsdp_min_num_params: 0fsdp_config: {'minnumparams': 0, 'xla': False, 'xlafsdpv2': False, 'xlafsdpgrad_ckpt': False}fsdp_transformer_layer_cls_to_wrap: Noneaccelerator_config: {'splitbatches': False, 'dispatchbatches': None, 'evenbatches': True, 'useseedablesampler': True, 'nonblocking': False, 'gradientaccumulationkwargs': None}parallelism_config: Nonedeepspeed: Nonelabel_smoothing_factor: 0.0optim: adamwtorchfusedoptim_args: Noneadafactor: Falsegroup_by_length: Falselength_column_name: lengthproject: huggingfacetrackio_space_id: trackioddp_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: Nonehub_always_push: Falsehub_revision: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_inputs_for_metrics: Falseinclude_for_metrics: []eval_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: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: noneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseliger_kernel_config: Noneeval_use_gather_object: Falseaverage_tokens_across_devices: Trueprompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: proportional
</details>
Training Logs
Framework Versions
- Python: 3.12.13
- Sentence Transformers: 3.3.1
- Transformers: 4.57.6
- PyTorch: 2.10.0+cu128
- Accelerate: 1.13.0
- Datasets: 4.0.0
- 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",
}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}
}<!--
Glossary
Clearly define terms in order to be accessible across audiences. -->
<!--
Model Card Authors
Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction. -->
<!--
Model Card Contact
Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors. -->
