HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
codelion
adaptive-classifier
Python2025–2025
codelion / adaptive-classifier

adaptive-classifier

A flexible, adaptive classification system for dynamic text classification

2Distinct people
7Mentions
0Explicit recommenders
577GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A flexible, adaptive classification system for dynamic text classification

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 1:03:20 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by week7 dated mentions

Observed mentions: 2025-01-21 23:54:32 UTC to 2025-03-07 11:56:47 UTC. Weeks start Monday, UTC.

0122025-01-20 00:00:00 UTC to 2025-01-27 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 commentsJan 202025-01-27 00:00:00 UTC to 2025-02-03 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 comments2025-02-03 00:00:00 UTC to 2025-02-10 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2025-02-10 00:00:00 UTC to 2025-02-17 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsFeb 102025-02-17 00:00:00 UTC to 2025-02-24 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-02-24 00:00:00 UTC to 2025-03-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-03-03 00:00:00 UTC to 2025-03-10 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 commentsMar 3

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jan 202025-01-20 00:00:00 UTC2025-01-27 00:00:00 UTC220
Jan 272025-01-27 00:00:00 UTC2025-02-03 00:00:00 UTC220
Feb 32025-02-03 00:00:00 UTC2025-02-10 00:00:00 UTC110
Feb 102025-02-10 00:00:00 UTC2025-02-17 00:00:00 UTC000
Feb 172025-02-17 00:00:00 UTC2025-02-24 00:00:00 UTC000
Feb 242025-02-24 00:00:00 UTC2025-03-03 00:00:00 UTC000
Mar 32025-03-03 00:00:00 UTC2025-03-10 00:00:00 UTC211

What Hacker News says

2 sources
I built an open-source hallucination detector that identifies when LLM outputs contain information not present in the source context. The tool is particularly useful for RAG systems where ensuring factual accuracy is critical. Unlike most hallucination detection approaches that require separate LLM calls (which add cost and latency), this is a lightweight classifier built on HuggingFace transformers. It's adaptive, meaning it continuously improves as it processes more examples. Technical approach: - Uses a prototype memory system that maintains class examples for quick adaptation - Combines transformer embeddings with an adaptive neural layer - Trained on the RAGTruth benchmark dataset across QA, summarization, and data-to-text tasks - Achieves 80.7% recall overall (51.5% F1), with strongest performance on data-to-text generation Example
Read the rest
usage: from adaptive_classifier import AdaptiveClassifier # Load pre-trained detector detector = AdaptiveClassifier.from_pretrained("adaptive-classifier/llm-hallucination-detector") # Format input with context, query and response input_text = f"Context: {your_context}\nQuestion: {your_question}\nAnswer: {llm_response}" # Get prediction prediction = detector.predict(input_text) # Returns: [('HALLUCINATED', 0.72), ('NOT_HALLUCINATED', 0.28)] Current limitations: - Performance varies by task type (stronger on data-to-text, weaker on summarization precision) - Initial version focuses on binary classification; token-level detection is planned - The model is relatively small, so it won't catch subtle nuanced hallucinations that require deep domain knowledge The library's wider goal is to enable adaptive classification for use cases where models need to continuously learn from new examples. We've also built LLM routers and configuration optimizers with it. Would love feedback from anyone working on RAG systems or LLM evaluation. What metrics or capabilities would be most useful to you in a hallucination detector? Project: https://github.com/codelion/adaptive-classifier Docs: https://github.com/codelion/adaptive-classifier#hallucinatio...
In Show HN: An adaptive classifier that detects hallucinations in LLM/RAG outputs

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.