{"id":27347,"library":"rf-clip","title":"RF-CLIP","description":"A library for performing inference with RF-CLIP (Risk Factor CLIP) models. Integrates CLIP-based vision-language understanding with risk factor analysis. Latest version: 1.1. Release cadence: infrequent.","status":"active","version":"1.1","language":"python","source_language":"en","source_url":"https://github.com/microsoft/rf-clip","tags":["clip","risk-factor","vision-language","inference"],"install":[{"cmd":"pip install rf-clip","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Package uses underscore, not hyphen.","wrong":"from rfclip import RFCLIP","symbol":"RFCLIP","correct":"from rf_clip import RFCLIP"}],"quickstart":{"code":"from rf_clip import RFCLIP\nmodel = RFCLIP()\nresult = model.predict(image_path='path/to/image.jpg', text='a risky scenario')\nprint(result)","lang":"python","description":"Basic usage: load the model and run inference on an image and text prompt."},"warnings":[{"fix":"Always refer to the latest API docs for the correct parameters.","message":"The 'predict' method signature may change; check version notes for parameter deprecations.","severity":"deprecated","affected_versions":"<=1.1"},{"fix":"Use 'from rf_clip import ...' even though the package is pip installed as rf-clip.","message":"Import must use underscore 'rf_clip' not hyphen 'rf-clip'.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from rf_clip import RFCLIP'","cause":"Incorrect import name; package uses 'rf_clip' (underscore).","error":"ModuleNotFoundError: No module named 'rfclip'"},{"fix":"Check that you have the latest version (pip install --upgrade rf-clip) and verify the correct class name in the docs.","cause":"Possibly outdated version or wrong class name.","error":"ImportError: cannot import name 'RFCLIP' from 'rf_clip'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}