Skip to content

Commit 835b7a8

Browse files
committed
chore: version compatibility for 0.3.0
1 parent 01febd3 commit 835b7a8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ pip install "rerankers[api]"
6161
pip install "rerankers[fastrank]"
6262

6363
# RankLLM rerankers (better RankGPT + support for local models such as RankZephyr and RankVicuna)
64+
# Note: RankLLM is only supported on Python 3.10+! This will not work with Python 3.9
6465
pip install "rerankers[rankllm]"
6566

6667
# All of the above

pyproject.toml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,17 @@ dependencies = [
5252
]
5353

5454
[project.optional-dependencies]
55-
all = ["transformers", "torch", "litellm", "requests", "sentencepiece", "protobuf", "flashrank", "rank-llm"]
56-
transformers = ["transformers", "torch", "sentencepiece", "protobuf"]
55+
all = [
56+
"transformers",
57+
"torch",
58+
"litellm",
59+
"requests",
60+
"sentencepiece",
61+
"protobuf",
62+
"flashrank",
63+
"rank-llm; python_version >= '3.10'"
64+
]
65+
transformers = ["transformers", "torch", "sentencepiece", "protobuf"]
5766
api = ["requests"]
5867
gpt = ["litellm"]
5968
flashrank = ["flashrank"]

0 commit comments

Comments
 (0)