cURL
curl --request PATCH \ --url https://{appid}.api-{region}.cometchat.io/v3/ai-agents/agent-builder/knowledge-base/{sourceType}/{uniqueId}/sync \ --header 'apikey: <api-key>'
Triggers re-indexing for a specific knowledge base source by its type and unique ID. Use this endpoint to sync the vector embeddings when the source content has been updated.
Source types: Supports uploads, text entries, and website sources.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Source type (uploads, knowledge-base, etc.)
Unique source ID to sync
Revectorization triggered successfully.
Was this page helpful?