MossaicMan's picture
Upload 33 files
345000b verified
raw
history blame contribute delete
199 Bytes
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("all-MiniLM-L6-v2")
def embed_texts(texts: list[str]):
return model.encode(texts, convert_to_numpy=True)