audit_csv_labels
Audit a text-and-label CSV to flag conflicting or likely incorrect labels; returns counts, observed labels, supporting text excerpts, and weighted neighbour votes for human review.
Instructions
Flag conflicting and likely incorrect labels in one text-and-label CSV.
Returns counts, observed labels, supporting text excerpts and weighted neighbour votes. Exact-text conflicts come first. Suggestions require human review. The input limit is 2 MiB and 5,000 records. Processing uses local character TF-IDF.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "audit_csv_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path to a user-selected UTF-8 CSV inside CLARITY_DATA_DIR. | |
| max_findings | No | Maximum number of findings to return. Summary counts cover the full file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| findings | Yes | ||
| embedding | Yes | ||
| neighbors | Yes | ||
| input_records | Yes | ||
| distinct_texts | Yes | ||
| min_similarity | Yes | ||
| min_vote_share | Yes | ||
| total_findings | Yes | ||
| findings_returned | Yes | ||
| records_for_review | Yes |