MIGRATION GUIDE
Migrate from LLM moderation to Sentiqra.
Prompted LLMs are flexible, but they can give different answers to the same input. When you need results you can replay, structured taxonomies, or audit trails - it's time to migrate.
Before and after
const response = await openai.chat.completions.create({
model: "gpt-4o",
messages: [{
role: "user",
content: `Analyze this text for toxicity: "${text}"`
}]
});
// Response: free-form text; can vary between runs
// "This text contains harassment and insults."
const response = await sentiqra.analyze({
text: "You're an idiot and I hope you fail.",
language: "en",
analyzers: ["trust-safety"]
});
// Response: structured signals with config ID
// {
// "signals": [
// { "code": "insults_derogation", "score": 0.86, ... },
// { "code": "insult", "score": 0.99, ... }
// ],
// "verification": { "configuration": "sqcfg_HJW2EMH1", ... }
// }
Field mapping
| LLM Moderation | Sentiqra | Notes |
|---|---|---|
| Free-form text response | signals[].code | Structured signal codes, not free-form labels |
| - | signals[].score | Per-label signal-match score (0-1) |
| - | signals[].level | Category vs label - hierarchical taxonomy |
| - | verification.configuration | Immutable config ID - enables reproducibility |
| - | verification.fingerprint | Fingerprint for audit trail |
Migration checklist
Map your prompt categories to Sentiqra signal codes
Sentiqra's Trust & Safety taxonomy includes structured signal codes for common moderation categories. Map your prompt's categories to these codes.
Update your API client
Replace the LLM client with Sentiqra's REST API. Use the code examples above as a starting point.
Test with your production data
Run 20 representative samples through both systems. Compare outputs side by side.
Update your policy mapping
Map Sentiqra's signal codes to your enforcement rules. Sentiqra's structured taxonomy allows more precise policy mapping than free-form LLM labels.
Enable verification receipts
Store the configuration ID - the pinned version the result was produced under - and the fingerprint from each successful analysis response. That is what lets you reproduce the result for appeals and audits.
Ready to migrate?
Start with 5,000 analyzer runs per month. Access by request.