Sentence Similarity
sentence-transformers
PyTorch
mpnet
feature-extraction
mteb
Eval Results (legacy)
text-embeddings-inference
Instructions to use consciousAI/cai-stellaris-text-embeddings with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use consciousAI/cai-stellaris-text-embeddings with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("consciousAI/cai-stellaris-text-embeddings") 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] - Notebooks
- Google Colab
- Kaggle
Example script errors on Python 3.12
#1
by isaacchung - opened
Hi! I'm trying to use the model using the example script on README, with
- python3.12
- torch==2.5.1
- torchvision==0.20.1
- sentence-transformers==3.3.1
Example:
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('consciousAI/cai-stellaris-text-embeddings')
embeddings = model.encode(sentences)
print(embeddings)
Here is the same error I got: https://github.com/embeddings-benchmark/mteb/issues/1660#issue-2764848417