zanegraper/ag_query_classifier
010
1---2language: en3license: apache-2.04pipeline_tag: text-classification5library_name: transformers6tags:7- agriculture8- agronomy9- query-classification10- farming11- corn12- soybeans13- rag14- routing15---16 17# Cornbelt AI Agronomy Query Router (MiniLM)18 19## Overview20 21The **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.22 23The model acts as a **routing layer** for a Retrieval-Augmented Generation (RAG) system by identifying:24 25- whether a query is agriculture-related26- which crop the query concerns27- agronomic topic categories28- whether additional context such as weather or location may be required29 30This allows an AI system to efficiently determine which knowledge sources and tools should be used to answer the question.31 32The model was trained using **MiniLM**, a compact transformer architecture optimized for fast inference.33 34---35 36## Intended Use37 38This model is intended to support agronomy-focused AI systems by performing **query understanding and routing** before deeper reasoning or retrieval occurs.39 40Example use cases include:41 42- agronomy chat assistants43- agricultural decision support systems44- RAG pipelines for extension publications45- crop management advisory tools46- agronomy knowledge search systems47 48Typical pipeline usage:49 