Deprecate make_detector as an adapter
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 52/100
調査の方向性
Start by reading lettucedetect/detectors/factory.py and lettucedetect/detectors/__init__.py, then run uv run --extra dev pytest tests/test_factory_pytest.py tests/test_golden_factory_cache_pytest.py -q. Check how the deprecation helper from #135 works and how HallucinationDetector calls the factory. Done means the specified methods and unknown-method error remain unchanged, external callers get the named warning, internal callers do not, and the golden fixtures pass.
索引モデルが issue の本文から書いたものです。
説明
Parent: #172 · Epic: #126 · Blocked by: #173, #168, #171
Branch from stateless_core; open the PR against it.
Problem
make_detector is the old entry point (and HallucinationDetector calls it). It must warn outside the package, name load_detector, and keep returning today's detectors.
Current behavior
lettucedetect/detectors/factory.py:10-32buildsTransformerDetector,LLMDetectororRAGFactCheckerDetectorfrom kwargs and raisesValueErrorfor an unknown method.lettucedetect/detectors/__init__.py:5re-exports it as_make_detector.
Steps
- Mark
make_detectordeprecated (namingload_detector) with the helper from #135. - Keep building
"transformer","llm"and"rag_fact_checker"through the adapter classes and raising the same error for an unknown method. - Verify
HallucinationDetector(calls it from inside the package) returns today's output without a warning.
Acceptance criteria
- Calling from a test module warns
LettuceDetectDeprecationWarningnamingload_detector; calling fromlettucedetect.*doesn't. - #131 golden fixtures pass unchanged.
- Docstring has the
.. deprecated::note; existing tests pass.
Start here
uv run --extra dev pytest tests/test_factory_pytest.py tests/test_golden_factory_cache_pytest.py -q
- 主要言語
- Python
- スター
- 615
- フォーク
- 60
- 平均マージ
- 2日 18時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
KRLabsOrg/LettuceDetect のほかの issue
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
KRLabsOrg/LettuceDetect#108 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 半日 初心者へのやさしさ 70/100
KRLabsOrg/LettuceDetect#104 ·
メンテナーはふだん 1 日以内に返信
-
Bugs: One typed detect interface for the detectors package対応中かも @hslev が 1 日前に担当しました。 オープン
KRLabsOrg/LettuceDetect#192 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
ready-for-agent
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
KRLabsOrg/LettuceDetect#181 ·
メンテナーはふだん 1 日以内に返信
-
ready-for-agent
難易度 5/5 1週間以上 初心者へのやさしさ 22/100
KRLabsOrg/LettuceDetect#180 ·
メンテナーはふだん 1 日以内に返信
KRLabsOrg/LettuceDetect の issue をすべて見る
似ている issue
-
Wayback Linksオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
chnm/teachinghistory-hugo#53 ·
-
gpt-oss "Forcing a tool call" row no longer reproduces: tool_choice is now honoured on every surfaceオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
aws-samples/sample-per-model-bedrock#840 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#4318 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DiamondLightSource/eiger-correction#2 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
django-cms/djangocms-frontend#413 ·