How to use rnbokade/custom-bge with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("rnbokade/custom-bge") sentences = [ "23-0125 - Crispr mRNA Fume Hood Installations->Construction->QC Lab 1218 Fume Hood Install->Electrical - Fume Hood Power/Grounding Terminations - QC Lab", "mat-3783s5 : 3783 Seq 5 - Material Order", "21-1313-2.0 : Layout Drawings", "26-0500-1.0a : Breakers (2P 20A)" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
The community tab is the place to discuss and collaborate with the HF community!