← Back to Skills Marketplace
ivangdavila

Embeddings

by Iván · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
1096
Downloads
2
Stars
5
Active Installs
1
Versions
Install in OpenClaw
/install embeddings
Description
Generate, store, and search vector embeddings with provider selection, chunking strategies, and similarity search optimization.
README (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

  1. Generate embeddings — Call provider APIs (OpenAI, Cohere, Voyage, local models)
  2. Chunk content — Split documents with overlap, semantic boundaries, token limits
  3. Store vectors — Insert into Pinecone, Weaviate, Qdrant, pgvector, Chroma
  4. Similarity search — Query with top-k, filters, hybrid search
  5. Batch processing — Handle large datasets with rate limiting and retries
  6. 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
)
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install embeddings
  3. After installation, invoke the skill by name or use /embeddings
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Slug embeddings
Version 1.0.0
License
All-time Installs 5
Active Installs 5
Total Versions 1
Frequently Asked Questions

What is Embeddings?

Generate, store, and search vector embeddings with provider selection, chunking strategies, and similarity search optimization. It is an AI Agent Skill for Claude Code / OpenClaw, with 1096 downloads so far.

How do I install Embeddings?

Run "/install embeddings" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Embeddings free?

Yes, Embeddings is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Embeddings support?

Embeddings is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Embeddings?

It is built and maintained by Iván (@ivangdavila); the current version is v1.0.0.

💬 Comments