Collection Management
Manage the vector database collections that store code embeddings for AI-powered semantic search.
wdg collections <list|delete|validate|clean> [options]Collection Naming
Collections are isolated and named by what they index:
| Collection | Contents |
|---|---|
wdg_framework | Wikit framework (blocks, core classes, theme utilities, faceted search) |
platform | Platform code (MCP server, CLI, indexer, Docker configs) |
project_<name> | Project-specific code, one per project |
Collections are created automatically when you index. See Code Indexing for how content gets into them.
List Collections
wdg collections listLists every collection currently in the vector database. Running wdg collections with no subcommand also lists.
Delete a Collection
wdg collections delete <collection-name>Deletes a single collection by name. You are prompted for confirmation (y/N) before anything is removed.
Example:
wdg collections delete project_old_siteDeleting collection: project_old_site
Are you sure? This cannot be undone. (y/N)To recreate a deleted project collection, re-index the project:
wdg <project> indexValidate Collections
wdg collections validateChecks the collections against the projects and repositories on disk and reports inconsistencies (for example, collections that no longer have a corresponding project).
Clean Orphaned Collections
wdg collections cleanRemoves collections that no longer correspond to anything on disk. By default this runs interactively and prompts before removing. In a non-interactive context, pass --confirm to proceed without prompting:
wdg collections clean --confirmSee Also: