Views
No views yet
distilbert-base-uncased model trained to classify incoming user queries into one of three information-need categories:factual: Queries that are simple entity-centric lookups (suited for sparse/BM25 retrieval).abstractive: Queries requiring conceptual or thematic context (suited for dense/FAISS retrieval).multi-hop: Queries requiring synthesizing information across multiple documents (suited for iterative hybrid retrieval).distilbert-base-uncased1from transformers import pipeline
2
3router = pipeline("text-classification", model="your-username/adaptive-rag-router")
4prediction = router("What is the role of Wingless signaling in Drosophila hematopoiesis?")
5print(prediction)
6# [{'label': 'abstractive', 'score': 0.98}]factual, abstractive, multi-hop) due to project scope. It does not predict time-sensitive (recency-biased) or no-retrieval-needed (direct LLM answering) classes.multi-hop queries (escalating 47% of eligible non-multi-hop queries as a fallback).scifact and arguana were on Colab GPUs, while others (nfcorpus, hotpotqa) ran locally. Cross-dataset latency comparisons are invalid.