Add llama-index-postprocessor-heroku-rerank integration#20605
Open
dsouza-anush wants to merge 1 commit intorun-llama:mainfrom
Open
Add llama-index-postprocessor-heroku-rerank integration#20605dsouza-anush wants to merge 1 commit intorun-llama:mainfrom
dsouza-anush wants to merge 1 commit intorun-llama:mainfrom
Conversation
Adds reranking postprocessor for Heroku Inference API using Cohere models. Features: - HerokuRerank class for document reranking - Support for cohere-rerank-3-5 model - Configurable top_n for result limiting - Full sync/async support Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
AstraBert
requested changes
Feb 2, 2026
Member
There was a problem hiding this comment.
Looks like this pyproject is lacking many things and using poetry instead of hatchling + uv.
You should probably modify it taking this pyproject as reference:
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"black[jupyter]<=23.9.1,>=23.7.0",
"codespell[toml]>=v2.2.6",
"diff-cover>=9.2.0",
"ipython==8.10.0",
"jupyter>=1.0.0,<2",
"mypy==0.991",
"pre-commit==3.2.0",
"pylint==2.15.10",
"pytest==7.2.1",
"pytest-asyncio>=0.23.8",
"pytest-cov>=6.1.1",
"pytest-mock==3.11.1",
"ruff==0.11.11",
"types-Deprecated>=0.1.0",
"types-PyYAML>=6.0.12.12,<7",
"types-protobuf>=4.24.0.4,<5",
"types-redis==4.5.5.0",
"types-requests==2.28.11.8",
"types-setuptools==67.1.0.0",
]
[project]
name = "llama-index-llms-upstage"
version = "0.7.0"
description = "llama-index llms upstage integration"
authors = [{name = "Your Name", email = "you@example.com"}]
requires-python = ">=3.9,<4.0"
readme = "README.md"
license = "AGPL-3.0"
dependencies = [
"tokenizers>=0.19.1,<0.20",
"llama-index-core>=0.14.3,<0.15",
"llama-index-llms-openai>=0.6.0,<0.7",
"llama-index-readers-upstage>=0.4.0,<0.5",
]
[tool.codespell]
check-filenames = true
check-hidden = true
# Feel free to un-skip examples, and experimental, you will just need to
# work through many typos (--write-changes and --interactive will help)
skip = "*.csv,*.html,*.json,*.jsonl,*.pdf,*.txt,*.ipynb"
[tool.hatch.build.targets.sdist]
include = ["llama_index/"]
[tool.hatch.build.targets.wheel]
include = ["llama_index/"]
[tool.llamahub]
contains_example = false
import_path = "llama_index.llms.upstage"
[tool.llamahub.class_authors]
Upstage = "llama-index"
[tool.mypy]
disallow_untyped_defs = true
# Remove venv skip when integrated with pre-commit
exclude = ["_static", "build", "examples", "notebooks", "venv"]
ignore_missing_imports = true
python_version = "3.8"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
llama-index-postprocessor-heroku-rerankpackage for Heroku Inference API reranking support.Description
This integration enables LlamaIndex users to rerank retrieved documents using Heroku's managed inference service, which provides access to Cohere reranking models.
Features
HerokuRerankclass extending LlamaIndexBaseNodePostprocessorcohere-rerank-3-5modeltop_nfor limiting reranked resultsUsage
Testing
Related
llama-index-llms-herokupackage🤖 Generated with Claude Code