Skip to content
Back to skills

Inference

ASecurity

"Use rag_retrieval Reranker inference APIs to score query-document

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 9, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill inference --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inference?

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

Security grade badge for Inference
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-inference-297fde3a/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-inference-297fde3a)

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: inference
description: "Use rag_retrieval Reranker inference APIs to score query-document
  pairs, rerank passages, inspect RankedResults, and debug
  model_type/device/dtype issues."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# rag-retrieval inference

Use this sub-skill when a task asks to use the installed `rag_retrieval` reranker, score query-document pairs, rerank RAG passages, choose a reranker `model_type`, interpret `RankedResults`, or debug inference failures for BGE, BCE, Gemma, MiniCPM, or ColBERT-named rerankers.

## Fast routing

- Start with [API reference](references/api-reference.md) for constructor signatures, model type mappings, return objects, and current limitations.
- Use [workflows](references/workflows.md) for copy-ready scoring, reranking, long-document, LLM prompt, cutoff-layer, and no-download validation patterns.
- Use [troubleshooting](references/troubleshooting.md) when `model_type` is unsupported, ColBERT fails, downloads start unexpectedly, devices/dtypes misbehave, queries are too long, empty docs return a dict, BCE scores look normalized, LLM prompt/cutoff behavior is unclear, or Pydantic warnings appear.

## Scope

This sub-skill covers inference only: `rag_retrieval.Reranker`, cross-encoder rankers, LLM rankers, automatic model-type inference, query-document scoring, document reranking, long-document strategies, normalization, LLM prompt/cutoff-layer behavior, result helpers, and safe no-download environment checks.

Do not use this sub-skill for embedding training, reranker fine-tuning, or ColBERT training. Route those requests to sibling training sub-skills when present. Also do not promise ColBERT inference support: the current package has a `colbert` mapping name, but the ColBERT ranker is not registered or implemented for inference in the installed surface.

Files in this skill

  • SKILL.md1.8 KB
  • references/api-reference.md6.4 KB
  • references/troubleshooting.md6.7 KB
  • references/workflows.md7 KB
  • scripts/reranker_api_smoke.py6 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.