Build datasets from topics
Filter logs by topic to build targeted evaluation datasets.- Go to Logs and click Filter.
-
Select Topics and choose the topic you want to filter by.
Alternately, click SQL and enter a filter clause. See the SQL reference for more query patterns.
- Select the logs you want to include.
- Click Add to > Add to dataset, then choose an existing dataset or create a new one.
- “Error investigation” tasks → test your error handling.
- Negative sentiment interactions → improve responses.
- “Pricing questions” → evaluate your pricing explanations.
Score logs based on topics
Create scorers that flag logs with negative sentiment, penalize specific issue types, or alert when certain topics appear together. Example scorer that flags negative checkout experiences:- TypeScript
- Python
topic_scorer.ts
- Go to Settings > Automations and click + Rule.
- Select your scorer, set Scope to Trace, configure the sampling rate, and click Create rule.
Assign topics for review
Assign logs matching specific topics for human review.- Go to Logs and click Filter.
-
Select Topics and choose the topic you want to filter by.
Alternately, click SQL and enter a filter clause. See the SQL reference for more query patterns.
- Select the logs you want to assign.
- Select Assign and choose a team member.
Next steps
- Manage Topics to tune the pipeline that produces these classifications.
- Custom facets to define new dimensions to act on.