dejanseo / query-grounding

huggingface.co
Total runs: 67
24-hour runs: 0
7-day runs: -2
30-day runs: 29
Model's Last Updated: April 01 2025
text-classification

Introduction of query-grounding

Model Details of query-grounding

Dejan AI Logo

Prompt Grounding Classifier

This model predicts whether a prompt requires grounding in external sources like web search, databases, or RAG pipelines.

It was fine-tuned from microsoft/deberta-v3-large using binary labels:

  • 1 = grounding required
  • 0 = grounding not required

🚀 Use Case

This classifier acts as a routing layer in an LLM pipeline, helping decide:

  • When to trigger retrieval
  • When to let the model respond from internal knowledge
  • How to optimize for latency and cost

📦 Training Details
  • Model: DeBERTa v3 Large
  • Fine-tuning: Full (no adapters)
  • Dropout: 0.1
  • Scheduler: Cosine with warmup
  • Batch size: 24 (accumulated)
  • Evaluation: every 500 steps
  • Metric used for best checkpoint: F1

🧪 Example Predictions
Prompt Grounding Confidence
What’s the exchange rate for USD to Yen right now? 1 0.999
Tell me a bedtime story about a robot and a dragon. 0 0.9961
Who is the current CEO of Microsoft? 1 0.9986

🧠 How to Use
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch.nn.functional as F

model = AutoModelForSequenceClassification.from_pretrained("dejanseo/query-grounding")
tokenizer = AutoTokenizer.from_pretrained("dejanseo/query-grounding")

prompt = "What time is the next train from Tokyo to Osaka?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model(**inputs).logits
probs = F.softmax(outputs, dim=-1)
label = probs.argmax().item()
confidence = probs[0][label].item()

🧾 Dataset Origin

Prompts were collected using a Gemini 2.5 Pro + Google Search toolchain with grounding enabled. Each prompt's response was parsed to extract Gemini's grounding confidence, used as soft supervision for binary labeling:

  • Label 1 if grounded confidence present
  • Label 0 if response required no external evidence

Runs of dejanseo query-grounding on huggingface.co

67
Total runs
0
24-hour runs
-4
3-day runs
-2
7-day runs
29
30-day runs

More Information About query-grounding huggingface.co Model

More query-grounding license Visit here:

https://choosealicense.com/licenses/link-attribution

query-grounding huggingface.co

query-grounding huggingface.co is an AI model on huggingface.co that provides query-grounding's model effect (), which can be used instantly with this dejanseo query-grounding model. huggingface.co supports a free trial of the query-grounding model, and also provides paid use of the query-grounding. Support call query-grounding model through api, including Node.js, Python, http.

query-grounding huggingface.co Url

https://huggingface.co/dejanseo/query-grounding

dejanseo query-grounding online free

query-grounding huggingface.co is an online trial and call api platform, which integrates query-grounding's modeling effects, including api services, and provides a free online trial of query-grounding, you can try query-grounding online for free by clicking the link below.

dejanseo query-grounding online free url in huggingface.co:

https://huggingface.co/dejanseo/query-grounding

query-grounding install

query-grounding is an open source model from GitHub that offers a free installation service, and any user can find query-grounding on GitHub to install. At the same time, huggingface.co provides the effect of query-grounding install, users can directly use query-grounding installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

query-grounding install url in huggingface.co:

https://huggingface.co/dejanseo/query-grounding

Url of query-grounding

query-grounding huggingface.co Url

Provider of query-grounding huggingface.co

dejanseo
ORGANIZATIONS

Other API from dejanseo

huggingface.co

Total runs: 479
Run Growth: 230
Growth Rate: 48.02%
Updated:November 20 2025
huggingface.co

Total runs: 59
Run Growth: 2
Growth Rate: 3.39%
Updated:August 15 2024
huggingface.co

Total runs: 36
Run Growth: 0
Growth Rate: 0.00%
Updated:July 10 2024
huggingface.co

Total runs: 30
Run Growth: 0
Growth Rate: 0.00%
Updated:July 09 2024
huggingface.co

Total runs: 26
Run Growth: 13
Growth Rate: 50.00%
Updated:August 15 2024
huggingface.co

Total runs: 24
Run Growth: 0
Growth Rate: 0.00%
Updated:July 17 2024
huggingface.co

Total runs: 22
Run Growth: 8
Growth Rate: 36.36%
Updated:April 22 2025
huggingface.co

Total runs: 20
Run Growth: -33
Growth Rate: -165.00%
Updated:November 20 2025
huggingface.co

Total runs: 18
Run Growth: 2
Growth Rate: 11.11%
Updated:April 25 2025
huggingface.co

Total runs: 18
Run Growth: 8
Growth Rate: 44.44%
Updated:September 04 2024
huggingface.co

Total runs: 12
Run Growth: 0
Growth Rate: 0.00%
Updated:July 26 2024
huggingface.co

Total runs: 9
Run Growth: -9
Growth Rate: -100.00%
Updated:July 05 2026
huggingface.co

Total runs: 8
Run Growth: 3
Growth Rate: 37.50%
Updated:June 14 2025
huggingface.co

Total runs: 6
Run Growth: -11
Growth Rate: -183.33%
Updated:August 15 2024
huggingface.co

Total runs: 5
Run Growth: 0
Growth Rate: 0.00%
Updated:May 10 2024
huggingface.co

Total runs: 3
Run Growth: -3
Growth Rate: -100.00%
Updated:April 17 2025
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:June 29 2024
huggingface.co

Total runs: 2
Run Growth: -3
Growth Rate: -150.00%
Updated:April 17 2025
huggingface.co

Total runs: 2
Run Growth: -2
Growth Rate: -100.00%
Updated:September 17 2025
huggingface.co

Total runs: 1
Run Growth: -5
Growth Rate: -500.00%
Updated:April 09 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 17 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 17 2026