
LLM-as-reranker over a local Ollama runtime. Sends the query and documents from a RerankInput to a chat model, parses its JSON relevance scores, sorts descending, optionally truncates, and emits [RerankResult] with each document, score and original index.
Rerank retrieved passages and serve the ordered results as JSON.
Rerank, serialise the ordered list, then push it over HTTP.
temperature at zero for deterministic, repeatable orderings.
top_k zero returns every document, appending any the model did not score at the tail with a zero score to preserve coverage; a positive value truncates after sorting and drops unscored documents entirely.
RerankResult keeps the document's original position in the RerankInput list as its index.
Automated release