← 返回 Skills 市场
1096
总下载
2
收藏
5
当前安装
1
版本数
在 OpenClaw 中安装
/install embeddings
功能描述
Generate, store, and search vector embeddings with provider selection, chunking strategies, and similarity search optimization.
使用说明 (SKILL.md)
When to Use
User wants to convert text/images to vectors, build semantic search, or integrate embeddings into applications.
Quick Reference
| Topic | File |
|---|---|
| Provider comparison & selection | providers.md |
| Chunking strategies & code | chunking.md |
| Vector database patterns | storage.md |
| Search & retrieval tuning | search.md |
Core Capabilities
- Generate embeddings — Call provider APIs (OpenAI, Cohere, Voyage, local models)
- Chunk content — Split documents with overlap, semantic boundaries, token limits
- Store vectors — Insert into Pinecone, Weaviate, Qdrant, pgvector, Chroma
- Similarity search — Query with top-k, filters, hybrid search
- Batch processing — Handle large datasets with rate limiting and retries
- Model comparison — Evaluate embedding quality for specific use cases
Decision Checklist
Before recommending approach, ask:
- What content type? (text, code, images, multimodal)
- Volume and update frequency?
- Latency requirements? (real-time vs batch)
- Budget constraints? (API costs vs self-hosted)
- Existing infrastructure? (cloud provider, database)
Critical Rules
- Same model everywhere — Query embeddings MUST use identical model as document embeddings
- Normalize before storage — Most similarity metrics assume unit vectors
- Chunk with overlap — 10-20% overlap prevents context loss at boundaries
- Batch API calls — Never embed one item at a time in production
- Cache embeddings — Regenerating is expensive; store with source hash
- Monitor dimensions — Higher isn't always better; 768-1536 is usually optimal
Provider Quick Selection
| Need | Provider | Why |
|---|---|---|
| Best quality, any cost | OpenAI text-embedding-3-large |
Top benchmarks |
| Cost-sensitive | OpenAI text-embedding-3-small |
5x cheaper, 80% quality |
| Multilingual | Cohere embed-multilingual-v3 |
100+ languages |
| Code/technical | Voyage voyage-code-2 |
Optimized for code |
| Privacy/offline | Local (e5, bge, nomic) | No data leaves machine |
| Images | OpenAI CLIP, Cohere multimodal | Cross-modal search |
Common Patterns
# Batch embedding with retry
def embed_batch(texts, model="text-embedding-3-small"):
results = []
for chunk in batched(texts, 100): # API limit
response = client.embeddings.create(input=chunk, model=model)
results.extend([e.embedding for e in response.data])
return results
# Similarity search with filter
results = index.query(
vector=query_embedding,
top_k=10,
filter={"category": "technical"},
include_metadata=True
)
安全使用建议
This file bundle is a coherent, offline guide — it doesn't include executable code or request secrets itself. Before using the code snippets: (1) Understand that to call provider APIs you must supply API keys/credentials — only provide keys you trust and scope them if possible. (2) Embedding sensitive or private data will send that data to whichever provider you call (unless you run local models); consider privacy/compliance and prefer local models or on-prem storage for sensitive data. (3) The examples assume various third-party libraries and vector DBs; you will need to install and configure them separately. (4) If you let an agent run these workflows autonomously, ensure network access and credentials are limited to the intended providers and monitor API usage/costs. Overall this skill appears to be documentation/best-practices rather than an executable integration and is internally consistent.
功能分析
Type: OpenClaw Skill
Name: embeddings
Version: 1.0.0
The OpenClaw AgentSkills skill bundle for 'embeddings' is benign. All files (SKILL.md, chunking.md, providers.md, search.md, storage.md) consistently describe and illustrate standard practices for generating, storing, and searching vector embeddings using common AI/ML and database libraries (e.g., OpenAI, Cohere, Langchain, Pinecone, pgvector). There is no evidence of malicious intent, such as data exfiltration, backdoors, or unauthorized command execution. The markdown content does not contain any prompt injection attempts designed to manipulate the AI agent into harmful actions, and the code snippets are illustrative, using standard, non-risky libraries and practices.
能力评估
Purpose & Capability
The name/description match the content: guidance on generating, chunking, storing, and searching embeddings across many providers and storage backends. The examples show typical SDK usage for OpenAI, Cohere, Voyage, local models, Pinecone, Qdrant, pgvector, Chroma, etc., which is expected for a comprehensive embeddings handbook.
Instruction Scope
SKILL.md and the included files contain only standard, domain-appropriate instructions and code snippets (chunking, batching, normalization, vector DB queries, reranking, query expansion). There are no instructions to read unrelated system files, harvest environment variables, contact unknown endpoints, or exfiltrate data. The guidance does assume calling external provider APIs (which requires network access and credentials) and using local model libraries, which is expected for the stated functionality.
Install Mechanism
No install spec and no code files — instruction-only. This minimizes risk because nothing is written/executed by the skill itself. The docs reference common third-party libraries (OpenAI SDK, langchain, tiktoken, sentence-transformers, provider clients) but do not attempt to install them.
Credentials
The skill declares no required env vars or credentials, which is coherent for an instructions-only skill. However, the examples presuppose provider credentials and API keys (OpenAI, Pinecone, Cohere, etc.) and show inline placeholders (e.g., api_key="..."). Users will need to supply appropriate keys to actually run the snippets. This is proportionate but worth highlighting: providing provider keys gives those services access to any data you send for embedding, so credentials and data choice matter.
Persistence & Privilege
always is false and the skill does not request any persistent or elevated system privileges. It does not instruct changing other skills' configs or system-wide settings. Autonomous invocation is allowed by platform default but not uniquely privileged by this skill.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install embeddings - 安装完成后,直接呼叫该 Skill 的名称或使用
/embeddings触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Embeddings 是什么?
Generate, store, and search vector embeddings with provider selection, chunking strategies, and similarity search optimization. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1096 次。
如何安装 Embeddings?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install embeddings」即可一键安装,无需额外配置。
Embeddings 是免费的吗?
是的,Embeddings 完全免费(开源免费),可自由下载、安装和使用。
Embeddings 支持哪些平台?
Embeddings 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Embeddings?
由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。
推荐 Skills