Console ↗

Content audit

Find stale claims across a collection of help articles.

Prepare the input

Keep the user request and the record it applies to in separate fields. Repeat the same question for each record in the workflow.

Model request

{
  "model": "ngila-judge",
  "state": {
    "request": "Current policy: loans last three weeks.",
    "source": "Article: Return all books within fourteen days."
  },
  "questions": {
    "decision": {
      "type": "noul",
      "instructions": "Does the article conflict with the current policy?"
    }
  }
}

Run locally

Save ngila.py next to your script and set NGILA_API_KEY.

import json
from ngila import NgilaClient

state = {'request': 'Current policy: loans last three weeks.',
 'source': 'Article: Return all books within fourteen days.'}
questions = {'decision': {'type': 'noul',
              'instructions': 'Does the article conflict with the current '
                              'policy?'}}

response = NgilaClient().system_one(state, questions)
a = response["answers"]
print(json.dumps(a, indent=2, ensure_ascii=False))

Wire the application

Split articles at section boundaries and preserve each URL and heading. Evaluate the policy and excerpt together. Collect flagged sections into an editorial queue with the evidence used for the judgment.