Text / WORKFLOW

Improve local search with Qwen3 Reranker

Compare the same search candidates before and after reranking. Use a supplied example or upload the results from your private document search, then export the improved order.

EstimatedSource checked 9/29/2026
LOCAL
Freshness 14 out of 100. Repository age: 504 days old, May 29, 2025. Measures age, not quality.
Popularity 81 out of 100. 1,608,348 downloads in 30 days; 416 lifetime likes. Checked Oct 15, 2026. Measures adoption, not quality.
What do these scores mean?

Two ways to compare models. Neither score measures answer quality, benchmark performance, or whether a model fits your machine.

Freshness · release age

A new release starts at 100. The score halves every 180 days: 100 × 2^(−age in days / 180). When the release date is unavailable, a repository date is a fallback—not proof of when the model was released. Missing dates stay unscored.

Check the date source
Popularity · adoption

Downloads over the past 30 days carry 80% of the score; lifetime likes carry 20%. Both use a logarithmic scale, capped at 10 million downloads and 100,000 likes. If likes are unavailable, downloads carry all the weight. Missing download statistics stay unscored.

round(80 × min(1, log10(1 + downloads) / 7) + 20 × min(1, log10(1 + likes) / 5))

Check the statistics source
Scores as of Oct 15, 2026. Statistics checked Oct 15, 2026. Statistics are marked for refresh after 72 hours.Full scoring method

Before you begin

Hardware

Conservative starting points for this small CPU-first app. GPU memory is not required; the listed memory is system/unified RAM.

MachineQwen3 Reranker 0.6B
NVIDIA PC · 8 GB RAMRuns on CPU; 16 GB RAM gives more room for other apps
AMD PC · 8 GB RAMRuns on CPU; no ROCm or Vulkan dependency
Intel PC · 8 GB RAMRuns on CPU; an Arc GPU is not required
Apple Silicon · 8 GB unified memoryRuns on CPU; 16 GB unified memory gives more headroom
CPU only · 8 GB RAMSuitable for the supplied small collection; larger batches use more memory

These are memory estimates for short passages and one local user, not speed measurements. The guide uses CPU on every OS for a consistent first run.

Context window

MachineQwen3 Reranker 0.6B
CPU / Apple Silicon · 8–16 GB RAMStart at 2,048 tokens per query + passage; batch size 1

Long candidates are truncated at the tokenizer limit. Use the short overlapping passages from the search workflow so the answer stays inside the scored input.

LOCAL SEARCH RERANKINGSOURCE-LINKED SETUP

Improve local search with Qwen3 Reranker

Compare the same search candidates before and after reranking. Use a supplied example or upload the results from your private document search, then export the improved order.

Choose a package Run its commands Check the result
01
BEFORE YOU BEGIN

The documented package

This setup uses the package documented for this task. Review its source and supported platforms before starting.

Save your machine in My Hardware to get an automatic starting choice. You can always choose any package yourself.

CURRENT SETUP

Qwen3 Reranker 0.6B · official

Start at 2,048 tokens per pair and batch 1. More tokens or a larger batch raises RAM use.

Freshness 14 out of 100. Repository age: 504 days old, May 29, 2025. Measures age, not quality.
Popularity 81 out of 100. 1,608,348 downloads in 30 days; 416 lifetime likes. Checked Oct 15, 2026. Measures adoption, not quality.
What do these scores mean?

Two ways to compare models. Neither score measures answer quality, benchmark performance, or whether a model fits your machine.

Freshness · release age

A new release starts at 100. The score halves every 180 days: 100 × 2^(−age in days / 180). When the release date is unavailable, a repository date is a fallback—not proof of when the model was released. Missing dates stay unscored.

Check the date source
Popularity · adoption

Downloads over the past 30 days carry 80% of the score; lifetime likes carry 20%. Both use a logarithmic scale, capped at 10 million downloads and 100,000 likes. If likes are unavailable, downloads carry all the weight. Missing download statistics stay unscored.

round(80 × min(1, log10(1 + downloads) / 7) + 20 × min(1, log10(1 + likes) / 5))

Check the statistics source
Scores as of Oct 15, 2026. Statistics checked Oct 15, 2026. Statistics are marked for refresh after 72 hours.Full scoring method
View weight source
02
THE WORKFLOW

Set up Qwen3 Reranker 0.6B on your machine

Choose where you want to run it. The instructions below update to match your selection.

CHOOSE YOUR SETUPWindows

Native CPU inference. The browser is the same on each OS; project paths and Python executables differ.

01

Install uv · PowerShell

Install uv from its official instructions, then open a new PowerShell window. The commands below create an isolated Python 3.11 environment; there is no need to change your system Python.

uv installation
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
02

Create the project and install its dependencies

Use a new folder named yourunai-rerank in your home directory. These commands run in PowerShell. This starter deliberately uses CPU inference: its small model works with NVIDIA, AMD, Intel, Apple or no GPU. No CUDA installation is needed. Leave this window in the project folder for the remaining commands.

uv virtual environments PyTorch installation choices
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\yourunai-rerank" | Out-Null Set-Location "$env:USERPROFILE\yourunai-rerank" uv venv --python 3.11 uv pip install --python .\.venv\Scripts\python.exe torch --index-url https://download.pytorch.org/whl/cpu uv pip install --python .\.venv\Scripts\python.exe sentence-transformers==6.1.0 gradio==6.28.0
03

Download the complete starter app

Right-click the download link below and choose Save Link As. Save the .py file directly in the project folder created above; keep its .py extension, not .txt. This complete YouRunAI starter creates the browser interface and output folders. You can inspect it in a text editor. Model weights download separately when the runtime needs them.

Download rerank-results.py
04

Start the reranking app

Run this in PowerShell, leave it open, and open http://127.0.0.1:7861 after the weights finish downloading. Port 7861 lets this app run beside the document-search example.

.\.venv\Scripts\python.exe rerank-results.py
05

Rerank the supplied example

Leave the upload empty and click Rerank results. The sample asks how to return an item, with shipping, returns and support passages in an intentionally unhelpful initial order. Compare the Before and After tables; the return policy should move above unrelated opening hours.

06

Use your real search candidates

In the document-search app, run a query and download candidates.json. Upload that file here and click Rerank results. The file must contain a query string and 1–20 candidates, each with text and an optional file name. Reranking can reorder those candidates but cannot recover a relevant document the first search never found.

07

Compare and save the ranking

Read the top passage and confirm it answers the query. Check its Before rank against its new position; good candidates may already have been first. Download reranked.json and find the same file in outputs/reranked.json. Scores are relative relevance logits, not percentages. Keep the query with the ranked passages if you pass them to a local assistant.

08

Stop and return to the same project later

Press Ctrl+C in the running PowerShell window to stop the app. Your files stay in yourunai-rerank. Next time run the commands below, then reopen http://127.0.0.1:7861. Dependencies and downloaded weights are reused. Keep this address local; there is no public sharing link.

Set-Location "$env:USERPROFILE\yourunai-rerank" .\.venv\Scripts\python.exe rerank-results.py
03
SUCCESS CHECK · Qwen3 Reranker 0.6B

A better order, with the source still attached

The after table and saved JSON contain the original filenames/passages, their old ranks, and new relevance scores. You can compare the order rather than trusting an unexplained score.

Back to setup steps

When it doesn’t go to plan

The browser cannot connect

Keep the Python process open and wait until it prints the local URL. If another app uses that port, stop that app or run these examples one at a time.

The first launch appears slow

The first run downloads the publisher model to the Hugging Face cache. Watch the Terminal/PowerShell progress and allow the download to finish; later starts reuse it.

A dependency is missing

Run the installation command from this guide again in the project folder. Launch with the .venv Python path shown here so you use the same environment.

The model runs out of memory

Close memory-heavy apps and other models. Keep the supplied short input limits and batch size. The small-model CPU route needs system RAM, not GPU VRAM.

Upload rejected

Use candidates.json from the search guide, not vectors.npy or passages.json. It needs a nonempty query and 1–20 candidate objects, each containing a nonempty text field.

The answer is still missing

Improve the initial retrieval query or include more candidate passages first. The reranker only reorders the candidate set you gave it.

REFERENCE LIBRARY

Sources and files

Original instructions, model files, and compatibility notes behind this setup.

4 SOURCES

The model behind this workflow

Qwen3 Reranker · 0.6B

Keep exploring

Text
SETUP GUIDE

Qwen3.5 · 9B private chat setup

Source-backed package and platform-route plan for private local chat with Qwen3.5 · 9B. Preserves the official Ollama 9B package, a smaller 4B family fallback, and a clearly labeled community uncensored GGUF option.

Freshness 41 out of 100. Release age: 230 days old, Feb 27, 2026. Measures age, not quality.
Popularity 93 out of 100. 8,591,266 downloads in 30 days; 2,171 lifetime likes. Checked Oct 15, 2026. Measures adoption, not quality.
SOFTWAREOllama
Coding
SETUP GUIDE

Build a private coding assistant with Qwen3.8 27B

Run Qwen3.8 27B with Ollama, connect it to Cline in VS Code, and make one reviewable code change in a tiny local project.

Freshness 76 out of 100. Repository age: 71 days old, Aug 5, 2026. Measures age, not quality.
Popularity 95 out of 100. 7,363,968 downloads in 30 days; 17,749 lifetime likes. Checked Oct 15, 2026. Measures adoption, not quality.
Arena Open Source Web coding: rank 10 of 55. Ranked model: qwen3.8-27b. Original model ranking, not a benchmark of this package. Export dated Oct 13, 2026. Source checked Oct 15, 2026. Human preference ranking, not hardware suitability.+3
SOFTWAREOllama + Visual Studio Code + Cline + Python
Images
SETUP GUIDE

Create images locally with FLUX.2 Klein

Generate images from text prompts in ComfyUI with the fast distilled or more adjustable base 4B model. Save your results and reuse the visual workflow.

Freshness 35 out of 100. Release age: 273 days old, Jan 15, 2026. Measures age, not quality.
Popularity 76 out of 100. 423,736 downloads in 30 days; 1,043 lifetime likes. Checked Oct 15, 2026. Measures adoption, not quality.
SOFTWAREComfyUI
Improve local search with Qwen3 Reranker | YouRunAI