SentenceTransformer based on Snowflake/snowflake-arctic-embed-l
This is a
sentence-transformers
model finetuned from
Snowflake/snowflake-arctic-embed-l
. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("llm-wizard/legal-ft-1")
# Run inference
sentences = [
'What criteria determine whether an AI system used in the administration of justice is classified as high-risk?',
'Certain AI systems intended for the administration of justice and democratic processes should be classified as high-risk, considering their potentially significant impact on democracy, the rule of law, individual freedoms as well as the right to an effective remedy and to a\xa0fair trial. In particular, to address the risks of potential biases, errors and opacity, it is appropriate to qualify as high-risk AI systems intended to be used by a\xa0judicial authority or on its behalf to assist judicial authorities in researching and interpreting facts and the law and in applying the law to a\xa0concrete set of facts. AI systems intended to be used by alternative dispute resolution bodies for those purposes should also be considered to be high-risk when',
'which one or more of the following conditions are fulfilled. The first such condition should be that the AI system is intended to perform a\xa0narrow procedural task, such as an AI system that transforms unstructured data into structured data, an AI system that classifies incoming documents into categories or an AI system that is used to detect duplicates among a\xa0large number of applications. Those tasks are of such narrow and limited nature that they pose only limited risks which are not increased through the use of an AI system in a\xa0context that is listed as a\xa0high-risk use in an annex to this Regulation. The second condition should be that the task performed by the AI system is intended to improve the result of a\xa0previously completed human',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
Approximate statistics based on the first 400 samples:
sentence_0
sentence_1
type
string
string
details
min: 10 tokens
mean: 20.52 tokens
max: 35 tokens
min: 5 tokens
mean: 93.01 tokens
max: 186 tokens
Samples:
sentence_0
sentence_1
What are the intended uses of AI systems by tax and customs authorities according to the context?
natural persons or groups, for profiling in the course of detection, investigation or prosecution of criminal offences. AI systems specifically intended to be used for administrative proceedings by tax and customs authorities as well as by financial intelligence units carrying out administrative tasks analysing information pursuant to Union anti-money laundering law should not be classified as high-risk AI systems used by law enforcement authorities for the purpose of prevention, detection, investigation and prosecution of criminal offences. The use of AI tools by law enforcement and other relevant authorities should not become a factor of inequality, or exclusion. The impact of the use of AI tools on the defence rights of suspects should
How should the use of AI tools by law enforcement authorities be managed to prevent inequality or exclusion?
natural persons or groups, for profiling in the course of detection, investigation or prosecution of criminal offences. AI systems specifically intended to be used for administrative proceedings by tax and customs authorities as well as by financial intelligence units carrying out administrative tasks analysing information pursuant to Union anti-money laundering law should not be classified as high-risk AI systems used by law enforcement authorities for the purpose of prevention, detection, investigation and prosecution of criminal offences. The use of AI tools by law enforcement and other relevant authorities should not become a factor of inequality, or exclusion. The impact of the use of AI tools on the defence rights of suspects should
@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{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}
}
Runs of llm-wizard legal-ft-1 on huggingface.co
4
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-58
30-day runs
More Information About legal-ft-1 huggingface.co Model
legal-ft-1 huggingface.co
legal-ft-1 huggingface.co is an AI model on huggingface.co that provides legal-ft-1's model effect (), which can be used instantly with this llm-wizard legal-ft-1 model. huggingface.co supports a free trial of the legal-ft-1 model, and also provides paid use of the legal-ft-1. Support call legal-ft-1 model through api, including Node.js, Python, http.
legal-ft-1 huggingface.co is an online trial and call api platform, which integrates legal-ft-1's modeling effects, including api services, and provides a free online trial of legal-ft-1, you can try legal-ft-1 online for free by clicking the link below.
llm-wizard legal-ft-1 online free url in huggingface.co:
legal-ft-1 is an open source model from GitHub that offers a free installation service, and any user can find legal-ft-1 on GitHub to install. At the same time, huggingface.co provides the effect of legal-ft-1 install, users can directly use legal-ft-1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.