libvector

Index embeddings and retrieve similar items via cosine similarity with metadata filtering.

1|1|Updated Aug 7, 2025
One-click install
npx skills add https://github.com/copilot-ld/copilot-ld --skill libvector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: libvector
Source: https://github.com/copilot-ld/copilot-ld/tree/main/packages/libvector
Command: npx skills add https://github.com/copilot-ld/copilot-ld --skill libvector

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

libvector provides fast vector similarity search by storing embeddings with metadata and enabling cosine similarity-based retrieval for semantic search, RAG pipelines, and document similarity tasks.

Core Features & Use Cases

  • VectorIndex stores embeddings with metadata and offers cosine similarity search with metadata filtering.
  • VectorProcessor handles embedding generation and indexing to support efficient retrieval.
  • Use Case: Build semantic search, content recommendation, and knowledge-base navigation across large document collections.

Quick Start

Run the vector processing workflow to embed and index your documents for fast retrieval.

Frequently Asked Questions about libvector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find semantically similar documents using vector embeddings?

Semantic search finds similar documents by comparing embedding vectors using cosine similarity to calculate distance. The VectorIndex stores these embeddings with metadata, enabling fast retrieval of matching content across large document collections.

How does cosine similarity work for semantic search?

Cosine similarity enables semantic search by measuring the angle between embedding vectors to find closely aligned content. The VectorIndex applies this mathematical comparison to retrieve items with similar meaning, even when exact keywords differ.

Can I filter vector search results by metadata?

Yes, VectorIndex supports metadata filtering alongside cosine similarity retrieval. It stores embeddings with associated metadata, allowing you to narrow down semantic search results by applying specific metadata constraints during the vector search process.

What is the best way to generate and index embeddings for a RAG pipeline?

The best way to generate and index embeddings for a RAG pipeline is using a VectorProcessor to handle embedding generation and indexing. This prepares documents for fast semantic retrieval by storing vectors with metadata for cosine similarity search.

How do I retrieve content recommendations using vector similarity?

Content recommendation retrieves items by calculating cosine similarity between embedding vectors. The VectorIndex finds documents or conversations with closely matching semantic meaning, enabling threshold-based retrieval for precise content recommendations.

Does vector indexing support threshold-based retrieval?

Yes, vector indexing supports threshold-based retrieval to control semantic search precision. By setting a cosine similarity threshold, the VectorIndex returns only items exceeding a specific similarity score, ensuring high-quality retrieval results.