compute.
sync_metadata
sync_metadata(workspace_id: str, async_req: bool)
Synchronize metadata for a workspace to update embeddings used by AI features.
This method triggers a metadata synchronization process that updates the embeddings used by AI features like search and chat. The embeddings are created from the workspace's metadata model and are essential for accurate AI functionality.
Note: Metadata synchronization already runs automatically in the background, so calling this method is not required under normal circumstances. It exists as a manual, emergency-only escape hatch for cases where an immediate synchronization is needed (e.g. troubleshooting), not as a temporary stopgap awaiting automation.
Parameters
| name | type | description |
|---|---|---|
| workspace_id | str | Workspace identifier |
| async_req | bool | If True, execute request asynchronously. Defaults to False. |
Returns
NoneExample
host = "https://www.example.com"
token = "<your_personal_access_token>"
sdk = GoodDataSdk.create(host, token)
sdk.compute.sync_metadata(workspace_id)