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