Feature Extraction
sentence-transformers
Safetensors
English
bert
sentence-similarity
retrieval
tool-use
llm-agent
r-language
text-embeddings-inference
Run this model with HF Jobs
Run Stephen-SMJ/DARE-R-Retriever on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Stephen-SMJ/DARE-R-Retriever. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Stephen-SMJ/DARE-R-Retriever on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Stephen-SMJ/DARE-R-Retriever with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Stephen-SMJ/DARE-R-Retriever with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Stephen-SMJ/DARE-R-Retriever") 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 files13 unmodified lines141516171819201 unmodified line2223242526272829303132333413 unmodified lines# DARE: Distribution-Aware Retrieval for R FunctionsDARE (Distribution-Aware Retrieval Embedding) is a specialized bi-encoder model designed to retrieve statistical and data analysis tools (R functions) based on **both natural language user queries and underlying data constraints** (data profiles).It is fine-tuned from `sentence-transformers/all-MiniLM-L6-v2` to serve as a high-precision tool retrieval module for Large Language Model (LLM) Agents in automated data science workflows.1 unmodified line- **Architecture:** Bi-encoder (Sentence Transformer)- **Base Model:** `sentence-transformers/all-MiniLM-L6-v2` (22.7M parameters)- **Task:** Dense Retrieval for Tool-Augmented LLMs- **Domain:** R programming language, Data Science, Statistical Analysis functions- **Max Sequence Length:** 256 tokens## 💡 Why DARE? (The Input Formatting)Unlike traditional semantic search models that only take a natural language query, DARE is trained to be **distribution-conditional**. It expects a concatenated input of the user's intent AND the data profile (e.g., high-dimensional, sparse, categorical).To get optimal retrieval results, **do not just pass the raw query**. Append the data constraints as a JSON-like string at the end of the query.### Usage (Sentence-Transformers)13 unmodified lines141516171819201 unmodified line22232425262728293031323313 unmodified lines# DARE: Distribution-Aware Retrieval for R FunctionsDARE (Distribution-Aware Retrieval Embedding) is a specialized bi-encoder model designed to retrieve statistical and data analysis tools (R functions) based on **both user queries and conditional on data profile**.It is fine-tuned from `sentence-transformers/all-MiniLM-L6-v2` to serve as a high-precision tool retrieval module for Large Language Model (LLM) Agents in automated data science workflows.1 unmodified line- **Architecture:** Bi-encoder (Sentence Transformer)- **Base Model:** `sentence-transformers/all-MiniLM-L6-v2` (22.7M parameters)- **Task:** Dense Retrieval for Tool-Augmented LLMs- **Performance**: SoTA on R package retrieval tasks.- **Domain:** R programming language, Data Science, Statistical Analysis functions- **Max Sequence Length:** 256 tokens<!-- ## 💡 Why DARE? (The Input Formatting)Unlike traditional semantic search models that only take a natural language query, DARE is trained to be **distribution-conditional**. It expects a concatenated input of the user's intent AND the data profile (e.g., high-dimensional, sparse, categorical). -->### Usage (Sentence-Transformers)
README.md+4-5