Skip to content
Back to skills

Component Bge Reranker

ASecurity

Rerank candidate documents by cross-encoder relevance score with a local BGE reranker model (BAAI/bge-reranker-large). Use after first-stage retrieval when semantic precision matters more than latency.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 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-bge-reranker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Component Bge Reranker?

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

Security grade badge for Component Bge Reranker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/docailab-component-bge-reranker/badge)](https://www.skillsdirectory.com/skills/docailab-component-bge-reranker)

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-bge-reranker
description: Rerank candidate documents by cross-encoder relevance score with a local BGE reranker model (BAAI/bge-reranker-large). Use after first-stage retrieval when semantic precision matters more than latency.
---

# BGE Reranker Component

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

## Interface

Input `RerankRequest`:

- `query`: original retrieval query
- `documents`: JSON-compatible documents containing `id` and `text`
- `top_k`: maximum returned documents
- optional `model`, `batch_size`, `max_length`, `device`

Output `RerankResult`:

- `documents`: documents re-ranked by normalized cross-encoder `score`

## Execution

Run `scripts/component.py:run(inputs, context)`. The Component lazily loads the local BGE cross-encoder and scores `(query, passage)` pairs with a Sigmoid-normalized relevance score. It performs reranking only; do not use it for first-stage retrieval or generation.

Files in this skill

  • SKILL.md953 B
  • agents/openai.yaml216 B
  • ragskill.yaml248 B
  • scripts/component.py2.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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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