Purpose
Samples prompts for daily visibility checking, prioritizing prompts that have never been tested.Architecture
Query Parameters
Sampling Algorithm
- Get all prompts for the organization
- Separate into untested (
last_tested_at IS NULL) and tested - Prioritize untested - take as many as possible up to sample_size
- Fill remaining with random tested prompts
Response Format
Code Location
Used By
Daily cron job that:- Samples prompts with this endpoint
- Runs visibility analysis on each
- Updates
last_tested_attimestamp