How do I schedule automatic reindexing for my knowledge bases?

Validated on 18 Mar 2026 • Last edited on 26 Mar 2026

You can create a scheduled function to automatically reindex your knowledge base at a schedule you choose.

For example, the following Python script uses PyDo’s create_indexing_job() method to start a reindexing job:

from pydo import Client
import os

c = Client(os.getenv("DO_API_KEY"))
c.genai.create_indexing_job(body={
  "knowledge_base_uuid": "KB UUID",
  "data_source_uuids": ["DS UUID"]  # optional, reindexes all data sources if not specified
})

Replace <your-kb-uuid> with your knowledge base UUID. To reindex only specific data sources, replace <your-ds-uuid> with one or more data source UUIDs. If you omit data_source_uuids, the job reindexes all data sources in the knowledge base.

You can run this script from a scheduled function to keep your knowledge base index up to date automatically.

You can also create your own function that sends a POST request to the indexing jobs API endpoint.

Learn More

How to Schedule Functions

Schedule functions to run periodically.

DigitalOcean API Reference

Complete reference documentation for the DigitalOcean API, including request samples in cURL, Python, Go, and Ruby.

Can I make BIOS-level changes to bare metal GPUs?

Request BIOS-level changes to bare metal GPUs through a support ticket. Some changes require reprovisioning.

Why is a speed test for my bare metal GPU showing slower network speeds?

Public speed test servers often do not reflect actual network performance for bare metal GPUs. Use iperf or real-world endpoints for more accurate results.

How do I fix a "system not initialized" error on multi-GPU Droplets?

Make sure NVIDIA Fabric Manager is running and has the same version number as the GPU drivers.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.