| from InstructorEmbedding import INSTRUCTOR | |
| model = INSTRUCTOR('hkunlp/instructor-xl') | |
| sentence = "3D ActionSLAM: wearable person tracking in multi-floor environments" | |
| instruction = "Represent the Research Paper title for retrieval; Input:" | |
| embeddings = model.encode([[instruction,sentence]]) | |
| print(embeddings) |