Repository navigation
chore: merge main into stateless_core - #203
Merged
Merged
Conversation
* 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the three commits on
main(#122, #124, #125) intostateless_core, so the branch merges intomainwithout conflicts.Conflicts
CHANGELOG.md: both entries are kept, the 0.3.0 entry above the[Unreleased]one frommain.lettucedetect/detectors/llm.pyandrag_fact_checker.py: fix: shared batch length check in BaseDetector (follow-up to #113) #122 added a shared length check that raisesValueError. This branch already raisesInvalidInputError(length_mismatch, aValueErrorsubclass) with the same message, so its version is kept.TransformerDetectoruses the shared check from fix: shared batch length check in BaseDetector (follow-up to #113) #122.Tests from
mainadaptedtests/test_rag_fact_checker_pytest.py(from #122) mockeddetect_hallucinations_batch.predict_prompt_batchnow makes onedetect_hallucinationscall per pair, so the tests mock that method.test_short_backend_result_raises_instead_of_truncatingis 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 checkandruff format --checkare clean.Rights & sign-off (required)
distributed under the repository's MIT license
(see CONTRIBUTING).