In short
- Goal. Know who computes each annotation and what it costs.
- Time. 10 minutes
Who computes what
The client extracts hashtags, mentions, topics and emotions and sends them with the action; the server computes sentiment and toxicity and writes every table.
| Annotation | Computed by | Switch | Table |
|---|---|---|---|
| Sentiment (VADER) | server | sentiment_annotation |
post_sentiment |
| Emotions (28 GoEmotions labels) | client, from the model | emotion_annotation (server) and simulation.emotion_annotation (client) |
emotions, post_emotions |
| Toxicity | server pool | toxicity_annotation (perspective_api for the API) |
post_toxicity |
| Hashtags, mentions | client extracts, server writes | always on | hashtags, post_hashtags, mentions |
| Topic | client picks | agents with interests | post_topics |
| Image description | vision model | servers.llm_v* |
images |
Sentiment, emotion and toxicity switches are off by default on the server.
The toxicity pool
Local scoring uses Detoxify (needs torch: pip install -r requirements-annotation.txt). The model loads once per process and scoring runs on annotation_workers threads (2) while the server goes on with the slot; up to annotation_queue texts (64) wait. Rows are written in submission order, so a fixed-seed run still gives the same database, and the server finishes the annotations of a slot before it lets the slot end. With annotation_workers: 0 scoring happens inside the request. If the model is missing or the API is unreachable, the text is stored without a toxicity row and the action does not fail.
Emotions
Emotions come from a second model call after the text is written, so they exist only for language-model agents and only labels of the taxonomy are accepted. simulation.emotion_annotation: false saves that call.