Skip to content
Back to skills

Libvector Copilot Ld Copilot Ld 2

ASecurity

libvector - Vector similarity search. VectorIndex stores embeddings with metadata and performs cosine similarity search. VectorProcessor handles embedding generation and indexing. Supports filtering by metadata and threshold-based retrieval. Use for semantic search, RAG retrieval, and similarity matching.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentsjavascriptjavaperformance

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill libvector-copilot-ld-copilot-ld-2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Libvector Copilot Ld Copilot Ld 2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Libvector Copilot Ld Copilot Ld 2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-libvector-copilot-ld-copilot-ld-2-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-libvector-copilot-ld-copilot-ld-2-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: libvector
description: >
  libvector - Vector similarity search. VectorIndex stores embeddings with
  metadata and performs cosine similarity search. VectorProcessor handles
  embedding generation and indexing. Supports filtering by metadata and
  threshold-based retrieval. Use for semantic search, RAG retrieval, and
  similarity matching.
---

# libvector Skill

## When to Use

- Building semantic search functionality
- Implementing RAG retrieval pipelines
- Finding similar documents by embedding
- Filtering vector results by metadata

## Key Concepts

**VectorIndex**: Storage-backed index for vectors with cosine similarity search
and metadata filtering.

**VectorProcessor**: Processes documents into embeddings and indexes them.

**calculateDotProduct**: Utility function for computing dot product (cosine
similarity for normalized vectors) with loop unrolling for performance.

## Usage Patterns

### Pattern 1: Search by vector

```javascript
import { VectorIndex } from "@copilot-ld/libvector/index.js";

const index = new VectorIndex(storage, "content");
const results = await index.search(queryVector, {
  limit: 10,
  threshold: 0.7,
  filter: { type: "document" },
});
```

### Pattern 2: Add vectors

```javascript
await index.add({
  id: "doc-123",
  vector: embedding,
  metadata: { type: "document", title: "Example" },
});
```

### Pattern 3: Calculate similarity directly

```javascript
import { calculateDotProduct } from "@copilot-ld/libvector";

// For normalized vectors, dot product equals cosine similarity
const similarity = calculateDotProduct(vectorA, vectorB);
```

## Integration

Used by Vector service. Embeddings generated via LLM service. Stored in
data/vectors/.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.