Skip to content
Development
Command

/generate-embeddings

Generate vector embeddings for text data using embedding models.

From plugin
rohitg00-claude-code-toolkit
2.8k199 skills138 agents199 commands
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

Command definition

generate-embeddings.md

/generate-embeddings - Generate Vector Embeddings

Generate vector embeddings for text data using embedding models.

Steps

1. Ask the user for the input data: text file, database table, or API responses 2. Select the embedding model: OpenAI text-embedding-3, Cohere embed, Sentence-BERT, or local model 3. Preprocess the input text: clean, normalize, truncate to model's max token length 4. Batch the inputs for efficient API calls (batch size based on model limits) 5. Generate embeddings with retry logic for API rate limits and transient errors 6. Validate embedding dimensions match the expected model output 7. Normalize embeddings to unit length for cosine similarity searches 8. Store embeddings with their source text and metadata in the vector database 9. Create an index for efficient nearest-neighbor search 10. Verify embedding quality by checking similarity of known-similar items 11. Report: total items embedded, dimensions, storage size, API cost estimate 12. Save the embedding configuration for future regeneration

Rules

  • Batch API calls to stay within rate limits and reduce costs
  • Implement exponential backoff retry for API failures
  • Truncate text to the model's maximum token length before embedding
  • Normalize embeddings for consistent similarity calculations
  • Store the model name and version with embeddings for reproducibility
  • Cache embeddings to avoid regenerating unchanged content
  • Monitor API costs and set spending alerts for large datasets
Read more
@rohitg00
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

2.8k40 skills138 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.8k
Star history of rohitg00/awesome-claude-code-toolkit on GitHub, a chart by star-history.com

Other commands on rohitg00-claude-code-toolkit.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command