' is special token for query. queries = [ '안녕하세요', ] embeddings = model.encode(queries) # '' is special token for passage. passages = [ '
반갑습니다', ] embeddings = model.encode(passages) # Matryoshka Embeddings (half of the original dimension) # '
' is special token for query. queries = [ '안녕하세요', ] embeddings = model.encode(queries, normalize_embeddings=False, convert_to_tensor=True)[:, :192] embeddings = F.normalize(embeddings, p=2, dim=-1) ``` ## Contact Feel free to open an issue or pull request if you have any questions or suggestions about this project. You also can email (flash659@gmail.com).