Instructions to use nomic-ai/CodeRankEmbed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use nomic-ai/CodeRankEmbed with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("nomic-ai/CodeRankEmbed", trust_remote_code=True) sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,7 +14,7 @@ Combine `CodeRankEmbed` with our re-ranker [`CodeRankLLM`](https://huggingface.c
|
|
| 14 |
|
| 15 |
# Performance Benchmarks
|
| 16 |
|
| 17 |
-
| Name | Parameters | CSN | CoIR |
|
| 18 |
| :-------------------------------:| :----- | :-------- | :------: |
|
| 19 |
| **CodeRankEmbed** | 137M | **77.9** |**60.1** |
|
| 20 |
| Arctic-Embed-M-Long | 137M | 53.4 | 43.0 |
|
|
|
|
| 14 |
|
| 15 |
# Performance Benchmarks
|
| 16 |
|
| 17 |
+
| Name | Parameters | CSN (MRR) | CoIR (NDCG@10) |
|
| 18 |
| :-------------------------------:| :----- | :-------- | :------: |
|
| 19 |
| **CodeRankEmbed** | 137M | **77.9** |**60.1** |
|
| 20 |
| Arctic-Embed-M-Long | 137M | 53.4 | 43.0 |
|