Skip to content

Commit

Permalink
chore: version compatibility for 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bclavie committed May 17, 2024
1 parent 01febd3 commit 835b7a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ pip install "rerankers[api]"
pip install "rerankers[fastrank]"

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

# All of the above
Expand Down
13 changes: 11 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,17 @@ dependencies = [
]

[project.optional-dependencies]
all = ["transformers", "torch", "litellm", "requests", "sentencepiece", "protobuf", "flashrank", "rank-llm"]
transformers = ["transformers", "torch", "sentencepiece", "protobuf"]
all = [
"transformers",
"torch",
"litellm",
"requests",
"sentencepiece",
"protobuf",
"flashrank",
"rank-llm; python_version >= '3.10'"
]
transformers = ["transformers", "torch", "sentencepiece", "protobuf"]
api = ["requests"]
gpt = ["litellm"]
flashrank = ["flashrank"]
Expand Down

0 comments on commit 835b7a8

Please sign in to comment.