npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-reranker-ollama

v0.0.7

Published

Use Ollama Reranker to reorder documents after retrieval from a vector store by relevance to the given query.

Readme

Banner image

n8n-nodes-reranker-ollama

Use Ollama Reranker to reorder retrieved documents by their relevance to a given query.
This node leverages locally served reranker models (via Ollama) to perform cross-encoder–style relevance scoring.

Built on the official n8n Community Node Starter, so you can develop, lint, and ship confidently.


✨ Supported Models

This node currently supports Qwen3 Rerankers by @dengcao:

  • dengcao/Qwen3-Reranker-8B
  • dengcao/Qwen3-Reranker-4B
  • dengcao/Qwen3-Reranker-0.6B

All variants and quantizations (e.g., :Q5_K_M, :Q8_0) are automatically detected.

If you’d like to request support for other reranker models, please open a GitHub issue or feature request so it can be added to the whitelist.


📦 Installation

🧩 Community Nodes (recommended)

You can install this node directly from the n8n Community Nodes interface:

  1. Go to Settings → Community Nodes in your n8n instance.
  2. Enable Community Nodes if you haven’t already.
  3. Enter the package name:
  4. Confirm and install.

⚙️ Usage

  1. Add the Reranker Ollama node to your workflow.
  2. Connect it after a retriever or vector search node (e.g., Qdrant, Pinecone, Weaviate, etc.).
  3. Provide:
  • Query text – the user query or search question.
  • Documents array – the list of retrieved text chunks.
  1. Choose a supported Qwen3 Reranker model.
  2. The node outputs documents reordered by their relevance scores (0–1 scale).

🧠 Example

| Query | Documents | Output (ranked) | |--------|------------|----------------| | "What is the capital of China?" | 1️⃣ "Beijing is the capital of China." 2️⃣ "Gravity is a force that attracts masses." | ✅ 1️⃣ Relevant 🚫 2️⃣ Irrelevant |


🤝 Contributing

Contributions and new model requests are welcome!
If you’d like to see support for another reranker model, please:

  • Open a GitHub issue, or
  • Submit a pull request with your proposed model configuration.