Relevance
Evaluates the relevance of a comment to the article it's a comment on, plus checks for topics the site admin does not want discussed. This is intended to help keep conversations relevant or on-topic, plus to allow site admins to disallow conversation on specific topics. (Our use case here is how legitimate-sounding comments with dog whistles or what-abouts can simply be disallowed.) As well as a boolean yes/no evaluation, there is a confidence score for both these evaluations between 0-1.
| Header Parameters |
|---|
X-User-Email email — REQUIREDAccount email address, for authentication |
X-API-Key string — REQUIREDAPI key owned by the user (email), for authentication |
| Request Body — REQUIRED |
|---|
article_context_id uuid — REQUIREDUUID that identifies the article context. |
comment string — REQUIREDThe comment text to evaluate for relevance. |
banned_topics string[]Optional list of banned topics to check against. |
| Responses | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
200Successful response - returns JSON result from relevance evaluation.
| ||||||||||
400Bad Request - Missing or invalid parameters. | ||||||||||
401Unauthorized - Missing or incorrect authentication. |