Instructions to use AutoDataBench/Retrieval-resources with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use AutoDataBench/Retrieval-resources with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("AutoDataBench/Retrieval-resources") 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
Add files using upload-large-folder tool
Browse files- README.md +13 -0
- config.json +4 -0
README.md
CHANGED
|
@@ -34,6 +34,19 @@ The fixed and OOD evaluations use standard MTEB datasets, which are downloaded
|
|
| 34 |
by MTEB and are not duplicated here. The task configuration names the exact
|
| 35 |
evaluation suites.
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
## Use with AutoDataBench
|
| 38 |
|
| 39 |
Copy or symlink `data/` and `models/` into the AutoDataBench repository. The
|
|
|
|
| 34 |
by MTEB and are not duplicated here. The task configuration names the exact
|
| 35 |
evaluation suites.
|
| 36 |
|
| 37 |
+
## Download
|
| 38 |
+
|
| 39 |
+
Download the complete resource bundle with `huggingface_hub`:
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
from huggingface_hub import snapshot_download
|
| 43 |
+
|
| 44 |
+
snapshot_download(
|
| 45 |
+
repo_id="AutoDataBench/Retrieval-resources",
|
| 46 |
+
local_dir="./Retrieval-resources",
|
| 47 |
+
)
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
## Use with AutoDataBench
|
| 51 |
|
| 52 |
Copy or symlink `data/` and `models/` into the AutoDataBench repository. The
|
config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "Retrieval-resources",
|
| 3 |
+
"description": "Resources for the AutoDataBench retrieval task."
|
| 4 |
+
}
|