Batch Upload
Upload converted files to Supabase with automatic embedding
Upload converted markdown files to your Supabase knowledge base with automatic chunking and embedding.
Usage
Options
| Option | Default | Description |
|---|---|---|
--force | false | Re-upload even if already uploaded |
-v, --verbose | false | Enable verbose logging |
--dry-run | false | Preview without uploading |
--batch-size <n> | 10 | Files per batch |
Example
Upload Process
- Scan Directory: Find all
.mdfiles - Check Manifest: Skip already-uploaded files
- Parse Frontmatter: Extract metadata
- Chunk Content: Split into ~512 token chunks
- Generate Embeddings: Via OpenAI or Ollama
- Store in Supabase: Documents + chunks + embeddings
- Update Manifest: Track uploaded files
Manifest File
A .manifest.json file tracks uploaded files:
Use --force to ignore the manifest and re-upload everything.
Rate Limiting
Uploads are rate-limited to avoid API throttling:
- Embedding API: 60 requests/minute
- Supabase: 100 requests/minute
Error Handling
Partial Failures
If some files fail, the upload continues. Failed files are logged and can be retried.
Resume After Error
Re-run the same command. Successfully uploaded files are skipped via manifest.
Next Steps
- Search your knowledge using MCP tools