AgentSkillsCN

Ai Embedding

AI嵌入

SKILL.md

Embedding Generator

Generate and manage embeddings for AI applications. Similarity search, caching, batch processing.

Quick Start

bash
npx ai-embedding embed "Hello world"

What It Does

  • Generate text embeddings
  • Calculate similarity between texts
  • Search and rank by relevance
  • Cache embeddings to save API calls
  • Batch process multiple texts

Usage

bash
# Generate embedding
npx ai-embedding embed "Hello world"

# Calculate similarity
npx ai-embedding similarity "cat" "dog"

# Rank texts
npx ai-embedding rank "pet" "cat" "car" "dog"

# Search embeddings file
npx ai-embedding search "query" --file embeddings.json

Part of the LXGIC Dev Toolkit

One of 110+ free developer tools from LXGIC Studios.

License

MIT. Free forever.