This is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.
129,137 context-question pairs were used for training.
14,348 context-question pairs were used for evaluation (see the table below for results).
Using a 10% subset of the val dataset the following hit-rate performance was reached and is compared to the base model and OpenAI's default ada embedding model.
1from sentence_transformers import SentenceTransformer
2sentences =["This is an example sentence","Each sentence is converted"]34model = SentenceTransformer('adlumal/auslaw-embed-v1.0')5embeddings = model.encode(sentences)6print(embeddings)
Evaluation Results
The model was evauluated on 10% of the available data. The automated eval results for the final step are presented below.
Eval
Score
cos_sim-Accuracy@1
0.730206301
cos_sim-Accuracy@3
0.859562308
cos_sim-Accuracy@5
0.892737664
cos_sim-Accuracy@10
0.928352384
cos_sim-Precision@1
0.730206301
cos_sim-Recall@1
0.730206301
cos_sim-Precision@3
0.286520769
cos_sim-Recall@3
0.859562308
cos_sim-Precision@5
0.178547533
cos_sim-Recall@5
0.892737664
cos_sim-Precision@10
0.092835238
cos_sim-Recall@10
0.928352384
cos_sim-MRR@10
0.801075782
cos_sim-NDCG@10
0.832189447
cos_sim-MAP@100
0.803593645
dot_score-Accuracy@1
0.730136604
dot_score-Accuracy@3
0.859562308
dot_score-Accuracy@5
0.892737664
dot_score-Accuracy@10
0.928352384
dot_score-Precision@1
0.730136604
dot_score-Recall@1
0.730136604
dot_score-Precision@3
0.286520769
dot_score-Recall@3
0.859562308
dot_score-Precision@5
0.178547533
dot_score-Recall@5
0.892737664
dot_score-Precision@10
0.092835238
dot_score-Recall@10
0.928352384
dot_score-MRR@10
0.801040934
dot_score-NDCG@10
0.832163724
dot_score-MAP@100
0.803558796
Training
The model was trained with the parameters:
DataLoader:
torch.utils.data.dataloader.DataLoader of length 2583 with parameters: