Agent skill
embedding-service
文本向量化(Embedding)基础服务。将自然语言转换为高维稠密向量,为语义搜索、聚类分析、推荐系统等下游任务提供核心数据支持。
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/embedding-service-lin-a1-skills-agent
SKILL.md
功能
将输入文本转换为高维向量表示,用于语义相似度计算、聚类分析等下游任务。
调用方式
from services.embedding_service.client import EmbeddingServiceClient
client = EmbeddingServiceClient()
# 单个文本向量化
vector = client.embed_query("人工智能") # -> list[float]
# 多个文本向量化
texts = ["机器学习", "深度学习", "自然语言处理"]
vectors = client.embed_documents(texts) # -> list[list[float]]
返回格式
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [-0.031, -0.016, -0.007, ...]
}
],
"model": "Qwen/Qwen3-Embedding-0.6B"
}
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?