Sentence Similarity
sentence-transformers
Safetensors
bert
information-retrieval
biomedical
metasyn
text-embeddings-inference
Instructions to use BFTree/MA-Retriever with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use BFTree/MA-Retriever with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("BFTree/MA-Retriever") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| [ | |
| { | |
| "path": ".gitattributes", | |
| "bytes": 50, | |
| "sha256": "ee05350c7fda0af4da116020dd7b976d731de3beed4f5e717d5bcc95ead24550" | |
| }, | |
| { | |
| "path": "1_Pooling/config.json", | |
| "bytes": 297, | |
| "sha256": "13e69897522ee8255104483ed9f219465d1be3936654a54a318758738052789e" | |
| }, | |
| { | |
| "path": "LICENSE", | |
| "bytes": 1072, | |
| "sha256": "8b8b52057027c23382997be7fd01368a0bbd0ea3596e20973bffa7053b4e8fe3" | |
| }, | |
| { | |
| "path": "config.json", | |
| "bytes": 742, | |
| "sha256": "3d0c874396f8eebd33c1554428f72475494ec68e5bc3abb3e740cfe1f73ccb03" | |
| }, | |
| { | |
| "path": "config_sentence_transformers.json", | |
| "bytes": 283, | |
| "sha256": "ab257f3f160a1f6d256c13c29740444e974992a89716e6f64ab122f1f45d7bfd" | |
| }, | |
| { | |
| "path": "model.safetensors", | |
| "bytes": 1340612432, | |
| "sha256": "608a6b98c77ce79d9d14d8d6480c0f7586741083cb5be761cfe448efd4a84322" | |
| }, | |
| { | |
| "path": "modules.json", | |
| "bytes": 349, | |
| "sha256": "84e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf" | |
| }, | |
| { | |
| "path": "sentence_bert_config.json", | |
| "bytes": 52, | |
| "sha256": "84e39fda68ccbff05bfa723ae9c0e70e23e2ec373b76e0f8c6e71af72a693cbf" | |
| }, | |
| { | |
| "path": "special_tokens_map.json", | |
| "bytes": 695, | |
| "sha256": "5d5b662e421ea9fac075174bb0688ee0d9431699900b90662acd44b2a350503a" | |
| }, | |
| { | |
| "path": "tokenizer.json", | |
| "bytes": 711649, | |
| "sha256": "91f1def9b9391fdabe028cd3f3fcc4efd34e5d1f08c3bf2de513ebb5911a1854" | |
| }, | |
| { | |
| "path": "tokenizer_config.json", | |
| "bytes": 1272, | |
| "sha256": "7b082b48a08a0b5c5939d99472e33addce3d96202155e33f7928cecd171186a0" | |
| }, | |
| { | |
| "path": "training_metadata.json", | |
| "bytes": 1317, | |
| "sha256": "3037d33b70f00f62a16a2182f79051bd48026f8caeccfbd93f0809b2ce5e6319" | |
| }, | |
| { | |
| "path": "vocab.txt", | |
| "bytes": 231508, | |
| "sha256": "07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3" | |
| } | |
| ] | |