IBM/responsible-prompting-api

Responsible Prompting is an LLM-agnostic tool that aims at dynamically supporting users in crafting prompts that embed responsible intentions and help avoid harmful, adversarial prompts.

52
/ 100
Established

Flask-based API that provides prompt recommendations via semantic similarity matching using sentence transformers, comparing user inputs against curated datasets of responsible-practice prompts and flagged adversarial examples. Supports multiple model backends including HuggingFace and Replicate, with customizable thresholds for "add" and "remove" recommendations and built-in visualization through t-SNE embeddings. The `recommend` endpoint returns scored prompt suggestions aligned with social values like fairness, inclusion, and transparency, enabling developers to integrate responsible prompting into LLM workflows.

No Package No Dependents
Maintenance 10 / 25
Adoption 8 / 25
Maturity 16 / 25
Community 18 / 25

How are scores calculated?

Stars

45

Forks

12

Language

Jupyter Notebook

License

Apache-2.0

Last pushed

Jan 26, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/IBM/responsible-prompting-api"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.