Run this model with HF Jobs
Run zanegraper/ag_query_classifier 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/zanegraper/ag_query_classifier. 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/zanegraper/ag_query_classifier 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 zanegraper/ag_query_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zanegraper/ag_query_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="zanegraper/ag_query_classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("zanegraper/ag_query_classifier") model = AutoModelForSequenceClassification.from_pretrained("zanegraper/ag_query_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("zanegraper/ag_query_classifier")
model = AutoModelForSequenceClassification.from_pretrained("zanegraper/ag_query_classifier", device_map="auto")Cornbelt AI Agronomy Query Router (MiniLM)
Overview
The Cornbelt AI Agronomy Query Router is a lightweight classification model designed to analyze farmer queries and determine how they should be processed by an agricultural AI assistant.
The model acts as a routing layer for a Retrieval-Augmented Generation (RAG) system by identifying:
- whether a query is agriculture-related
- which crop the query concerns
- agronomic topic categories
- whether additional context such as weather or location may be required
This allows an AI system to efficiently determine which knowledge sources and tools should be used to answer the question.
The model was trained using MiniLM, a compact transformer architecture optimized for fast inference.
Intended Use
This model is intended to support agronomy-focused AI systems by performing query understanding and routing before deeper reasoning or retrieval occurs.
Example use cases include:
- agronomy chat assistants
- agricultural decision support systems
- RAG pipelines for extension publications
- crop management advisory tools
- agronomy knowledge search systems
Typical pipeline usage:
- Downloads last month
- 5
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="zanegraper/ag_query_classifier")