---
description: Re-index a knowledge store
argument-hint: "[store-name-or-id]"
allowed-tools: ["mcp__bluera-knowledge__execute"]
---

# Re-index Knowledge Store

Re-index a knowledge store: **$ARGUMENTS**

## Steps

1. Parse the store name or ID from $ARGUMENTS (required)

2. Use mcp__bluera-knowledge__execute tool with command "store:index":
   - args.store: The store name or ID from $ARGUMENTS

3. Display results showing job ID for background indexing:

```
✓ Indexing store: react...
🔄 Indexing started in background
   Job ID: job_def456ghi789

Check status with: /bluera-knowledge:check-status job_def456ghi789
Or view all jobs: /bluera-knowledge:check-status
```

## When to Re-index

Re-index a store when:
- The source repository has been updated (for repo stores)
- Files have been added or modified (for file stores)
- You want to refresh embeddings with an updated model
- Search results seem out of date

## Error Handling

If indexing fails:

```
✗ Failed to index store: [error message]

Common issues:
- Store name or ID not found - use /bluera-knowledge:stores to list available stores
- Source directory no longer exists (for file stores)
- Network issues pulling latest changes (for repo stores)
```
