Skip to content

Add human review workflow for model predictions - #4

Open
Kaushik-Kumar-CEG wants to merge 6 commits into
gsoc/prediction-injectionfrom
gsoc/review-workflow
Open

Kaushik-Kumar-CEG wants to merge 6 commits into
gsoc/prediction-injectionfrom
gsoc/review-workflow

Conversation

@Kaushik-Kumar-CEG

@Kaushik-Kumar-CEG Kaushik-Kumar-CEG commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator

Adds the complete add-model-required-phrases command.

It can process one rule, a directory, or eligible installed ScanCode rules. The default mode reviews predictions interactively. It also supports read-only prediction, JSON output, explicit batch thresholds, dry runs, and resumable sessions. The pinned public model works without a token.

Try it:

python -m pip install -e ".[inference]"
add-model-required-phrases --rule path/to/example.RULE
add-model-required-phrases --rules-dir path/to/rules --predict-only
add-model-required-phrases --all --batch --auto-score 0.90 --review-score 0.70 --dry-run
add-model-required-phrases --resume path/to/session.jsonl

Test the complete package stack:

./configure --dev
python -m pip install -e ".[inference]"
venv/bin/pytest -q
venv/bin/ruff check src tests
make doc8
make docs-check

This PR is stacked on PR #3. Checking out this branch provides the complete package stack.

Signed-off-by: Kaushik Kumar <kaushikrjpm10@gmail.com>
Signed-off-by: Kaushik Kumar <kaushikrjpm10@gmail.com>
Signed-off-by: Kaushik Kumar <kaushikrjpm10@gmail.com>
Signed-off-by: Kaushik Kumar <kaushikrjpm10@gmail.com>
Signed-off-by: Kaushik Kumar <kaushikrjpm10@gmail.com>
Signed-off-by: Kaushik <kaushikrjpm10@gmail.com>
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.

1 participant