How to use redis/langcache-embed-v3-small with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("redis/langcache-embed-v3-small") sentences = [ "\"How much would I need to narrate a \"\"Let's Play\"\" video in order to make money from it on YouTube?\"", "How much money do people make from YouTube videos with 1 million views?", "\"How much would I need to narrate a \"\"Let's Play\"\" video in order to make money from it on YouTube?\"", "\"Does the sentence, \"\"I expect to be disappointed,\"\" make sense?\"" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]