sentence-transformers How to use 1shoomun/pq_cache_4 with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("1shoomun/pq_cache_4", trust_remote_code=True)
sentences = [
"Can you tell me how my portfolio did last week?",
"Show my riskiest holdings",
"Suggest recommendations for me",
"How did my portfolio perform last week ?"
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]