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.
Scanned 9/1/2026
Install to Claude Code
npx -y skills add DocAILab/Agentic-RAG-Skill --skill component-bge-reranker --agent claude-codeInstalls 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 automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/docailab-component-bge-reranker)More formats (shields.io, HTML) on the badges page.
---
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.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.