reindex
Update the vector index for knowledge base documents. Re-embeds only changed files by default, or rebuild all embeddings from scratch when forcing a full reindex.
Instructions
Re-index the knowledge base docs into the vector store.
Modifies the vector index in place. Does not modify source .md files.
By default only re-embeds changed files (fast, diff-aware). Set
force=True to rebuild all embeddings from scratch — use this after
changing the embedding model, not for routine updates.
Use git_pull_reindex() instead when the docs changes came from a
git push to the knowledge repo.
Args:
force: Rebuild all embeddings from scratch, not just changed files
(default: False — use only when changing embedding model)
project: Target project name (optional)
Returns:
Files indexed, changed, skipped; chunks upserted; stale chunks removed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| project | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |