Mihaiii/qa-assistant
Viewer • Updated • 7.17k • 117 • 7
How to use Mihaiii/Squirtle with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("Mihaiii/Squirtle")
sentences = [
"That is a happy person",
"That is a happy dog",
"That is a very happy person",
"Today is a sunny day"
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]Squirtle is a distill of bge-base-en-v1.5.
This model is designed for use in semantic-autocomplete (click here for demo).
Make sure you also pass pipelineParams={{ pooling: "cls", normalize: true }} since the default pooling in the component is mean.
Other than within semantic-autocomplete, you can use this model same as bge-base-en-v1.5.