Available Task-Specific Models
Explore our collection of task-specific models designed to enhance your AI applications.
🛡️ Guardrail Model
Guardrail models are used to flag unsafe, harmful or off-topic messages in chatbots and virtual assistants.
from artifex import Artifex
guardrail = Artifex().guardrail
guardrail.train(
instructions=[
"Soft medical advice is allowed, but it should be general and not specific to any individual.",
"Anything that is about cosmetic products, including available products or their usage, is allowed.",
"Anything else, including hard medical advice, is not allowed under any circumstances.",
]
)
🗣️ Intent Classification Model
Intent classification models help in understanding user intents in conversational AI applications.
from artifex import Artifex
intent_classifier = Artifex().intent_classifier
intent_classifier.train(
classes={
"send_email": "Intent to send an email to someone.",
"schedule_meeting": "Intent to schedule a meeting with someone.",
"cancel_meeting": "Intent to cancel a previously scheduled meeting.",
"reschedule_meeting": "Intent to change the date or time of a previously scheduled meeting.",
}
)