How to use Salesforce/codet5p-110m-embedding with Transformers:
# Load model directly from transformers import CodeT5p_Embedding model = CodeT5p_Embedding.from_pretrained("Salesforce/codet5p-110m-embedding", trust_remote_code=True, dtype="auto")
hey I tried to use thecodet5p-110m-embedding as the embedding model of my vector database, I'd like to know what is the best distance/similarity measure metric between the embedding vectors? L2 or IP or Cosine similarity?
· Sign up or log in to comment