Skip to content
Back to skills

Component Bm25 Retriever

ASecurity

Retrieve and rank title-and-text documents with a field-aware BM25F implementation. Use for exact names, identifiers, quotations, rare terms, and queries with reliable lexical overlap.

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

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-bm25-retriever --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Component Bm25 Retriever?

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

Security grade badge for Component Bm25 Retriever
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/docailab-component-bm25-retriever/badge)](https://www.skillsdirectory.com/skills/docailab-component-bm25-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-bm25-retriever
description: Retrieve and rank title-and-text documents with a field-aware BM25F implementation. Use for exact names, identifiers, quotations, rare terms, and queries with reliable lexical overlap.
---

# BM25F 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
- optional `k1` and `b` for saturation and body-length normalization
- optional `title_boost` and `title_b` for title weighting and normalization

Defaults are `top_k=10`, `k1=1.2`, `b=0.5`, `title_b=0.75`, and
`title_boost=3.0`. These are the B3 parameters selected by the frozen retrieval
benchmark; callers may override every value.

Output `RetrievalResult`:

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

## Execution

Run `scripts/component.py:run(inputs, context)`. Title and text term frequencies are
normalized against their own field lengths before being combined. This Component
performs retrieval only. Do not choose other Skills or generate an answer.

Files in this skill

  • SKILL.md1.2 KB
  • agents/openai.yaml188 B
  • ragskill.yaml259 B
  • scripts/component.py3.9 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.