- Allow periodic execution of the vectorizer to process new or updated data
- Provide fine-grained control over when and how often the vectorizer runs
Samples
Basic usage
Run every 5 minutes (default).Custom interval
Run every hour.Specific start time and timezone
Fixed schedule
Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| schedule_interval | interval | ’10m’ | ✔ | Set how frequently the vectorizer checks for new or updated data to process |
| initial_start | timestamptz | - | ✖ | Delay the start of scheduling. This is useful for coordinating with other system processes or maintenance windows |
| fixed_schedule | bool | - | ✖ | Set to true to use a fixed schedule such as every day at midnight. Set to false for a sliding window such as every 24 hours from the last run |
| timezone | text | - | ✖ | Set the timezone this schedule operates in. This ensures that schedules are interpreted correctly, especially important for fixed schedules or when coordinating with business hours |
Returns
A JSON configuration object that you can use inai.create_vectorizer.