Skip to content
Back to skills

Component Vector Retriever

ASecurity

Retrieve and rank documents by cosine similarity using the embedding service supplied by the runtime context. Use for paraphrases, semantic matching, and weak lexical overlap.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 1, 2026
ai-agents

Works with

  • claude code

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 1, 2026

npx -y skills add DocAILab/Agentic-RAG-Skill --skill component-vector-retriever --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Component Vector Retriever?

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

Security grade badge for Component Vector Retriever
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/docailab-component-vector-retriever/badge)](https://www.skillsdirectory.com/skills/docailab-component-vector-retriever)

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: component-vector-retriever
description: Retrieve and rank documents by cosine similarity using the embedding service supplied by the runtime context. Use for paraphrases, semantic matching, and weak lexical overlap.
---

# Vector Retriever Component

Provide the `retriever` capability for an Agentic RAG slot.

## Interface

Input `RetrievalRequest`:

- `query`: retrieval query
- `documents`: JSON-compatible documents containing `id` and `text`
- `top_k`: maximum returned documents

The default is `top_k=10`. The runtime embedding configuration used for the
validated BGE run uses `BAAI/bge-large-en-v1.5`, normalized vectors, and
`batch_size=8`; callers may supply another compatible embedding service.

Output `RetrievalResult`:

- `documents`: ranked document dictionaries with cosine `score`

## Execution

Run `scripts/component.py:run(inputs, context)`. The runtime must provide `context.embed(texts)`. When the runtime additionally provides `context.search_vector_index(...)`, the Component uses its persistent corpus index; otherwise it falls back to direct embedding and cosine scoring. This optional acceleration keeps the Skill executable in Claude Code and other Agent environments that only implement the basic embedding contract. This Component performs similarity retrieval only and does not select a model or another Skill.

Files in this skill

  • SKILL.md1.3 KB
  • agents/openai.yaml206 B
  • ragskill.yaml261 B
  • scripts/component.py3.4 KB

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.

Comments

Loading comments…

Newsletter

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