How to use FINGU-AI/FinguMv3 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("FINGU-AI/FinguMv3", trust_remote_code=True) sentences = [ "Paracrystalline materials are defined as having short and medium range ordering in their lattice (similar to the liquid crystal phases) but lacking crystal-like long-range ordering at least in one direction.", "Instruct: Given a web search query, retrieve relevant passages that answer the query.\nQuery: Paracrystalline", "Instruct: Given a web search query, retrieve relevant passages that answer the query.\nQuery: Øystein Dahle", "Instruct: Given a web search query, retrieve relevant passages that answer the query.\nQuery: Makis Belevonis" ] 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!