ABHINAY2025
add FastAPI ML service with semantic engine
00ff675
raw
history blame contribute delete
190 Bytes
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("all-MiniLM-L6-v2")
def embed(texts: list[str]):
return model.encode(texts, normalize_embeddings=True)