
This similarity model was trained for 2 epochs based on the sentence-transformers/paraphrase-multilingual-mpnet-base-v2. We used the SQuAD 1.1  dataset (brazilian portuguese version) to compare similarity between questions and sentences containing the answer to the question. We employed the MultipleNegativesRankingLoss as the objective function. To generate negative examples, our strategy involved using BM25 to retrieve similar examples from all sentences in the dataset that did not contain the answer.

We tested this model using Faquad QA portuguese dataset and improved dense retrieval by 10% in MRR@10 compared to the base model. 
{"language": ["pt"], "license": "apache-2.0", "library_name": "sentence-transformers", "pipeline_tag": "sentence-similarity", "widget": [{"source_sentence": "A quem a Virgem Maria supostamente apareceu em 1858 em Lourdes, Fran\u00e7a?", "sentences": ["\u00c9 uma r\u00e9plica da gruta de Lourdes, na Fran\u00e7a, onde a Virgem Maria apareceu para Santa Bernadette Soubirous em 1858.", "No topo da c\u00fapula de ouro do edif\u00edcio principal est\u00e1 uma est\u00e1tua de ouro da Virgem Maria."], "example_title": "Universidade de Notredame"}]}
sentence-transformers pytorch safetensors xlm-roberta sentence-similarity pt license:apache-2.0 endpoints_compatible region:us