[PR #11156] [CLOSED] Add reranking support #60153

Closed
opened 2026-04-29 15:04:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11156
Author: @halfcrazy
Created: 6/21/2025
Status: Closed

Base: mainHead: rerank-new


📝 Commits (1)

📊 Changes

11 files changed (+445 additions, -8 deletions)

View changed files

📝 api/types.go (+27 -0)
📝 docs/api.md (+76 -0)
📝 docs/modelfile.md (+6 -0)
📝 docs/template.md (+4 -0)
📝 llama/llama.go (+20 -1)
📝 llm/server.go (+68 -1)
📝 runner/llamarunner/runner.go (+116 -2)
📝 runner/ollamarunner/runner.go (+5 -0)
📝 server/routes.go (+109 -0)
📝 server/sched_test.go (+5 -0)
📝 template/template.go (+9 -4)

📄 Description

Fix #3368
Build on top of #7219 with some improvements.

  1. Using the template to avoid hardcoding
  2. Adjust the API to be compatible with jina formats

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/11156 **Author:** [@halfcrazy](https://github.com/halfcrazy) **Created:** 6/21/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `rerank-new` --- ### 📝 Commits (1) - [`f46ecd6`](https://github.com/ollama/ollama/commit/f46ecd61cc773c13d73d7d8f3f5b29bcdede475c) Add reranking support ### 📊 Changes **11 files changed** (+445 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+27 -0) 📝 `docs/api.md` (+76 -0) 📝 `docs/modelfile.md` (+6 -0) 📝 `docs/template.md` (+4 -0) 📝 `llama/llama.go` (+20 -1) 📝 `llm/server.go` (+68 -1) 📝 `runner/llamarunner/runner.go` (+116 -2) 📝 `runner/ollamarunner/runner.go` (+5 -0) 📝 `server/routes.go` (+109 -0) 📝 `server/sched_test.go` (+5 -0) 📝 `template/template.go` (+9 -4) </details> ### 📄 Description Fix #3368 Build on top of #7219 with some improvements. 1. Using the template to avoid hardcoding 2. Adjust the API to be compatible with [jina](https://api.jina.ai/redoc#tag/rerank) formats --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 15:04:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#60153