A fine-tune of
BAAI/bge-base-en-v1.5 specialised for
retrieval over Indian case law (Supreme Court of India + Delhi High Court). It embeds legal text so that a lawyer's question lands near the judgments that answer it — better than the generic base model on the distinctions that matter in law (e.g. §138 NI Act cheque-bounce vs §420 IPC cheating, anticipatory vs regular bail).
1from sentence_transformers import SentenceTransformer
2
3model = SentenceTransformer("Mannas/legal-bge-in")
4
5# For SHORT search queries, prepend the BGE instruction (passages are embedded bare):
6QUERY_PREFIX = "Represent this sentence for searching relevant passages: "
7query = QUERY_PREFIX + "notice requirements for cheque dishonour under Section 138"
8passages = [
9 "The complaint under Section 138 of the Negotiable Instruments Act, 1881 ...",
10 "Anticipatory bail under Section 438 CrPC is granted where ...",
11]
12q = model.encode(query, normalize_embeddings=True)
13p = model.encode(passages, normalize_embeddings=True)
14scores = p @ q # cosine similarities; higher = more relevant
Built on BAAI's BGE. If you use this model, a link back is appreciated.