Purpose
Samples prompts for daily visibility checking, prioritizing prompts that have never been tested.Architecture
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
org_slug | string | required | Organization identifier |
sample_size | int | 10 | Number of prompts to sample |
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