Instructions to use newmindai/TurkEmbed4Retrieval-Static with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use newmindai/TurkEmbed4Retrieval-Static with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("newmindai/TurkEmbed4Retrieval-Static") - sentence-transformers
How to use newmindai/TurkEmbed4Retrieval-Static with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("newmindai/TurkEmbed4Retrieval-Static") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
File size: 278 Bytes
72c7774 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | [
{
"idx": 0,
"name": "0",
"path": ".",
"type": "sentence_transformers.models.StaticEmbedding"
},
{
"idx": 1,
"name": "1",
"path": "1_Normalize",
"type": "sentence_transformers.models.Normalize"
}
] |