Repository navigation
Conversation
Contributor
|
This pull request description is marked as long, 2606 characters exceeding the 2000 limit. This is usually a sign that the description is too verbose and e.g. due to being auto-generated. This poses undue strain on our contributors. Please reduce the length of the comment. Reviewers are free to close long PRs without providing a reason. See our contributing guidelines for details on what a good PR description should contain. |
Open
5 of 6 tasks
Samoed
reviewed
Oct 27, 2026
Comment on lines
+18
to
+32
| PROMPTS = { | ||
| "query": "Instruct: Given a web search query, retrieve relevant passages that answer the query\nQuery:", | ||
| "document": " ", | ||
| "AILACasedocs-query": "Instruct: Given a legal case scenario, retrieve the most relevant case documents\nQuery:", | ||
| "AILAStatutes-query": "Instruct: Given a legal scenario, retrieve the most relevant statute documents\nQuery:", | ||
| "GerDaLIRSmall-query": "Instruct: Given a passage from a German court decision, retrieve the legal case documents cited by that passage.\nQuery: ", | ||
| "LeCaRDv2-query": "Instruct: Retrieve text based on user query.\nQuery:", | ||
| "LegalBenchConsumerContractsQA-query": "Instruct: Retrieve text based on user query.\nQuery:", | ||
| "LegalBenchCorporateLobbying-query": "Instruct: Retrieve text based on user query.\nQuery:", | ||
| "LegalQuAD-query": "Instruct: Given a legal question, retrieve relevant legal documents that answer the question\nQuery:", | ||
| "LegalSummarization-query": "Instruct: Given a query, retrieve relevant legal documents for summarization\nQuery:", | ||
| } | ||
|
|
||
|
|
||
| class NGALawEncoder(SentenceTransformerEncoderWrapper): |
Member
There was a problem hiding this comment.
I think better to use InstructSentenceTransformerModel
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add NGA-KR/law-embed-0.6b-r70: 595,874,816 parameters, fine-tuned backbone and three output adapters.
Pinned release, model card and experiment history: https://huggingface.co/NGA-KR/law-embed-0.6b-r70/tree/e36d2b0b22d9502a55ef9059820975dbd1c9d65d
MTEB(Law,v1) Mean(Task): 73.50425 (MTEB 2.20.11, BF16, batch 4, max length 32768). The 4B teacher is training-only.
Disclosures
Validation
Checklist