Who it is forA Python developer building a batch job or pipeline that needs decisions on documents, chats or images.
The problemStanding up a separate server just to classify a set of records adds setup work for a one-off or scripted task.
The outcomeA script that returns a decision for each named question, with images passed in when needed.
What you need first
- Python with pip and git installed
- A GPU with enough memory for the chosen model, or an Apple silicon Mac for the MLX builds
- A 96 GB GPU if you want to serve the 27B model
Steps
- Install the package with
pip install "rsi-jev[fast,vision] @ git+https://github.com/Shanghua-Gao/RSI-Jev" - Create a Python file that imports Decider with
from rsijev import Decider - Load the model with
d = Decider("v6.1-vl-4b") - Call
d.decide(...)with the state text, a dictionary of typed questions and an images list, then run the script (inferred: withpython <your-file>.py) (inferred, check the README)
Prompt for your agent
Using the Shanghua-Gao/RSI-Jev package, write a Python script that loads Decider with v6.1-vl-4b and calls decide() on each record in <input-file> with a noul question about <topic>. Output one line per record with the option probabilities. Verify that every record gets a result and that image inputs are passed only when present.
Caveat. The README example passes one image path, so check the Decider interface in the repo before running it on a large batch.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Shanghua-Gao/RSI-Jev and "Make a typed decision in Python without a server"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer