-
Notifications
You must be signed in to change notification settings - Fork 65
/
pyproject.toml
83 lines (68 loc) · 2.09 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = [
"rerankers",
"rerankers.models",
"rerankers.integrations",
]
[project]
name = "rerankers"
version = "0.6.1"
description = "A unified API for various document re-ranking models."
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
keywords = ["reranking", "retrieval", "rag", "nlp"]
authors = [
{name = "Ben Clavié", email = "[email protected]" }
]
maintainers = [
{name = "Ben Clavié", email = "[email protected]" }
]
classifiers = [
# Specify the Python versions you support here. In particular, ensure
# that you indicate you support Python 3. These classifiers are *not*
# checked by "pip install". See instead "requires-python" key in this file.
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"pydantic",
"tqdm",
]
[project.optional-dependencies]
all = [
"transformers>=4.45.0",
"torch",
"litellm",
"requests",
"sentencepiece",
"protobuf",
"flashrank",
"flash-attn",
"pillow",
"accelerate>=0.26.0",
"peft>=0.13.0",
"nmslib-metabrainz; python_version >= '3.10'",
"rank-llm; python_version >= '3.10'"
]
transformers = ["transformers>=4.45.0", "torch", "sentencepiece", "protobuf"]
api = ["requests"]
gpt = ["litellm"]
flashrank = ["flashrank"]
llmlayerwise = ["transformers>=4.45.0", "torch", "sentencepiece", "protobuf", "flash-attn"]
monovlm = ["transformers>=4.45.0", "torch", "sentencepiece", "protobuf", "flash-attn", "pillow", "accelerate>=0.26.0", "peft>=0.13.0"]
rankllm = [
"nmslib-metabrainz; python_version >= '3.10'",
"rank-llm; python_version >= '3.10'"
]
dev = ["ruff", "isort", "pytest", "ipyprogress", "ipython", "ranx", "ir_datasets", "srsly"]
[project.urls]
"Homepage" = "https://github.com/answerdotai/rerankers"