Skip to content

chore: merge main into stateless_core - #203

Merged
adaamko merged 4 commits into
stateless_corefrom
sync-main-into-stateless-core
Nov 22, 2026
Merged

adaamko merged 4 commits into
stateless_corefrom
sync-main-into-stateless-core

Conversation

@adaamko

@adaamko adaamko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Brings the three commits on main (#122, #124, #125) into stateless_core, so the branch merges into main without conflicts.

Conflicts

Tests from main adapted

tests/test_rag_fact_checker_pytest.py (from #122) mocked detect_hallucinations_batch. predict_prompt_batch now makes one detect_hallucinations call per pair, so the tests mock that method. test_short_backend_result_raises_instead_of_truncating is removed: with one call per pair the backend cannot return fewer results than answers. The module gained the marker that allows the deprecation warning.

The full suite passes locally; ruff check and ruff format --check are clean.

Rights & sign-off (required)

  • I certify that I have the right to submit this code and that it may be
    distributed under the repository's MIT license
    (see CONTRIBUTING).

adaamko and others added 4 commits November 6, 2026 22:44
* docs: cite the v2 paper (GroundLM 2026 at EMNLP 2026)

The v2 paper is published in the GroundLM 2026 workshop proceedings at EMNLP 2026
(https://aclanthology.org/2026.groundlm-1.44/). Add its ACL BibTeX to the README
and the v2 model card mirrors, which still said the paper was in preparation, and
link it from the v2 section and the dataset doc. The arXiv link (2607.00895) stays.

Signed-off-by: Kovács Ádám <adaam.ko@gmail.com>

* docs: add the DOI to the GroundLM 2026 citation and name the paper by its content

---------

Signed-off-by: Kovács Ádám <adaam.ko@gmail.com>
…ter (#124)

The Stop hook filtered spans with
(confidence or hallucination_score or 0.0) >= min_confidence, so a span
without a score counted as 0.0 and was dropped once --min-confidence was
above 0. In --llm-model mode neither the judge path nor the native v2
generative path produces a score, so every flagged span was dropped and
the hook reported a clean answer.

Keep unscored spans, the same rule as
BaseDetector._filter_spans_by_confidence, and document in --help and the
integration README that the threshold applies to scored spans only.

Closes #117

Signed-off-by: Clannad47 <clannad47@users.noreply.github.com>
Co-authored-by: Clannad47 <clannad47@users.noreply.github.com>
Add BaseDetector._validate_batch_lengths(prompts, answers). It raises
ValueError when the two lengths differ. The message shows both lengths.
TransformerDetector, LLMDetector and RAGFactCheckerDetector now call
the helper instead of an inline check. The old message text stays as a
prefix, so the #113 tests pass without edits.

RAGFactCheckerDetector.predict_prompt_batch now zips the answers and
the backend results with strict=True. Before this change, a short
backend result dropped answers with no error.

Add tests for the helper and a new test file for the RAG detector.

Follow-up to #113, refs #114.

Signed-off-by: yassinnouh21 <yassinnouh21@gmail.com>
Conflicts: CHANGELOG.md keeps both entries; llm.py and rag_fact_checker.py keep the typed
length check of this branch. The fact checker batch tests from main mock the single-call
method the batch path now uses, and the short-backend-result test is dropped because the
batch path makes one call per pair.
@adaamko adaamko self-assigned this Nov 22, 2026
@adaamko
adaamko merged commit 0921212 into stateless_core Nov 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants