Instructions to use basinfy/BasinRAG with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use basinfy/BasinRAG with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("basinfy/BasinRAG") 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
|
|
|
| 1 |
+
pipeline_tag: sentence-similarity
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- feature-extraction
|
| 5 |
+
- sentence-similarity
|
| 6 |
+
- mteb
|
| 7 |
+
model-index:
|
| 8 |
+
- name: Basinfy/BasinRAG
|
| 9 |
+
results:
|
| 10 |
+
- task:
|
| 11 |
+
type: Retrieval
|
| 12 |
+
dataset:
|
| 13 |
+
type: mteb/scifact
|
| 14 |
+
name: MTEB SciFact
|
| 15 |
+
config: default
|
| 16 |
+
split: test
|
| 17 |
+
revision: d56462d0e63a25450459c4f213e49ffdb866f7f9
|
| 18 |
+
metrics:
|
| 19 |
+
- type: map_at_1
|
| 20 |
+
value: 54.944
|
| 21 |
+
- type: map_at_3
|
| 22 |
+
value: 60.255
|
| 23 |
+
- type: map_at_5
|
| 24 |
+
value: 61.31
|
| 25 |
+
- type: map_at_10
|
| 26 |
+
value: 61.881
|
| 27 |
+
- type: map_at_20
|
| 28 |
+
value: 62.036
|
| 29 |
+
- type: map_at_100
|
| 30 |
+
value: 62.304
|
| 31 |
+
- type: map_at_1000
|
| 32 |
+
value: 62.356
|
| 33 |
+
- type: mrr_at_1
|
| 34 |
+
value: 57.0
|
| 35 |
+
- type: mrr_at_3
|
| 36 |
+
value: 61.7222
|
| 37 |
+
- type: mrr_at_5
|
| 38 |
+
value: 62.5722
|
| 39 |
+
- type: mrr_at_10
|
| 40 |
+
value: 62.9439
|
| 41 |
+
- type: mrr_at_20
|
| 42 |
+
value: 63.0346
|
| 43 |
+
- type: mrr_at_100
|
| 44 |
+
value: 63.2485
|
| 45 |
+
- type: mrr_at_1000
|
| 46 |
+
value: 63.2971
|
| 47 |
+
- type: ndcg_at_1
|
| 48 |
+
value: 57.0
|
| 49 |
+
- type: ndcg_at_3
|
| 50 |
+
value: 62.205
|
| 51 |
+
- type: ndcg_at_5
|
| 52 |
+
value: 63.764
|
| 53 |
+
- type: ndcg_at_10
|
| 54 |
+
value: 64.967
|
| 55 |
+
- type: ndcg_at_20
|
| 56 |
+
value: 65.5
|
| 57 |
+
- type: ndcg_at_100
|
| 58 |
+
value: 67.649
|
| 59 |
+
- type: ndcg_at_1000
|
| 60 |
+
value: 69.118
|
| 61 |
+
- type: precision_at_1
|
| 62 |
+
value: 57.0
|
| 63 |
+
- type: precision_at_3
|
| 64 |
+
value: 23.778
|
| 65 |
+
- type: precision_at_5
|
| 66 |
+
value: 15.267
|
| 67 |
+
- type: precision_at_10
|
| 68 |
+
value: 8.2
|
| 69 |
+
- type: precision_at_20
|
| 70 |
+
value: 4.267
|
| 71 |
+
- type: precision_at_100
|
| 72 |
+
value: 0.993
|
| 73 |
+
- type: precision_at_1000
|
| 74 |
+
value: 0.112
|
| 75 |
+
- type: recall_at_1
|
| 76 |
+
value: 54.944
|
| 77 |
+
- type: recall_at_3
|
| 78 |
+
value: 65.694
|
| 79 |
+
- type: recall_at_5
|
| 80 |
+
value: 69.539
|
| 81 |
+
- type: recall_at_10
|
| 82 |
+
value: 73.078
|
| 83 |
+
- type: recall_at_20
|
| 84 |
+
value: 75.056
|
| 85 |
+
- type: recall_at_100
|
| 86 |
+
value: 87.033
|
| 87 |
+
- type: recall_at_1000
|
| 88 |
+
value: 98.667
|
| 89 |
+
- type: accuracy
|
| 90 |
+
value: 54.944
|
| 91 |
+
- type: hit_rate_at_1
|
| 92 |
+
value: 57.0
|
| 93 |
+
- type: hit_rate_at_10
|
| 94 |
+
value: 74.667
|
| 95 |
+
- type: hit_rate_at_100
|
| 96 |
+
value: 87.333
|
| 97 |
+
- type: hit_rate_at_1000
|
| 98 |
+
value: 98.667
|
| 99 |
+
- type: hit_rate_at_20
|
| 100 |
+
value: 76.333
|
| 101 |
+
- type: hit_rate_at_3
|
| 102 |
+
value: 67.667
|
| 103 |
+
- type: hit_rate_at_5
|
| 104 |
+
value: 71.333
|
| 105 |
+
- type: main_score
|
| 106 |
+
value: 64.967
|
| 107 |
---
|
| 108 |
license: apache-2.0
|
| 109 |
---
|