Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (138 loc) · 4.59 KB
/
Copy pathpyproject.toml
File metadata and controls
150 lines (138 loc) · 4.59 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[project]
name = "kilin"
version = "0.1.0b1"
authors = [
{name = "Io̍k-uí Tiunn"},
{name = "Joana B. Pereira"},
{name = "Carlo Manzo"},
{name = "Giovanni Volpe"},
]
description = "Private, extensible local AI assistant for research and knowledge work"
readme = "README.pypi.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.12,<3.13"
keywords = ["question answering", "local LLM", "RAG", "literature", "code"]
classifiers = [
"Programming Language :: Python :: 3.12",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Environment :: X11 Applications :: Qt",
"Intended Audience :: Science/Research",
]
# Packages required regardless of the selected LLM backend.
dependencies = [
"huggingface-hub==1.29.0",
"numpy==2.5.2",
"olefile==0.47",
"pdfminer-six==20260107",
"pypdf==6.16.2",
"python-docx==1.2.0",
]
# Install one computation backend for model work; GUI adds only Qt.
[project.optional-dependencies]
mlx = [
"mlx-embeddings==0.0.5; sys_platform == 'darwin' and platform_machine == 'arm64'",
"mlx-lm==0.31.3; sys_platform == 'darwin' and platform_machine == 'arm64'",
]
torch = [
"torch==2.14.0",
"transformers==5.16.1",
]
gui = [
"PySide6>=6.8,<7",
"jinja2==3.1.6",
]
# Everything the desktop app needs on this computer: Qt plus the backend
# for the platform, MLX on Apple-silicon Macs and PyTorch elsewhere. This
# is what `pip install "kilin[app]"` and the macOS app install.
app = [
"PySide6>=6.8,<7",
"jinja2==3.1.6",
"mlx-embeddings==0.0.5; sys_platform == 'darwin' and platform_machine == 'arm64'",
"mlx-lm==0.31.3; sys_platform == 'darwin' and platform_machine == 'arm64'",
"torch==2.14.0; sys_platform != 'darwin' or platform_machine != 'arm64'",
"transformers==5.16.1; sys_platform != 'darwin' or platform_machine != 'arm64'",
]
# Extra dependencies for the CodeRAG-Bench evaluation notebooks only.
bench = [
"datasets==5.0.1",
"pytrec_eval==0.5",
"tzdata==2026.4; sys_platform == 'win32'",
]
[project.urls]
Repository = "https://github.com/DeepTrackAI/KiLin"
[project.scripts]
kilin = "kilin.cli:main"
# Opens the desktop window without a terminal (on Windows, no console).
[project.gui-scripts]
kilin-gui = "kilin.gui.app:main"
[build-system]
requires = ["setuptools==84.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["kilin*"]
[tool.setuptools.package-data]
# Data-only folders: project types and report templates.
"kilin" = [
"kilin_defaults.json",
"settings_info.json",
"repository_reason_codes.json",
"project_types/*.json",
]
"kilin.tools.project_inventory" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.scan_and_list" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.batch_classify" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.batch_review" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.filter_results" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.find_fact" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.find_passages" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.paper_overview" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.reference_check" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.show_source" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.suggest_reference" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.writing_check" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.project_summary" = [
"README.md",
"defaults.json",
"settings_info.json",
"templates/*.md",
]
"kilin.tools.assistant_guide" = ["README.md", "defaults.json", "settings_info.json"]
"kilin.tools.generate_paper_summary" = [
"README.md",
"defaults.json",
"settings_info.json",
"templates/*.md",
]
"kilin.gui" = [
"defaults.json",
"terms.txt",
"web/*.html",
"web/*.css",
"web/*.js",
"web/katex/katex.min.js",
"web/katex/LICENSE",
"web/katex/README.md",
"icons/*.png",
"icons/*.svg",
"icons/README.md",
"icons/BRAND_LICENSE.md",
]
# Development tools are installed by `uv sync` but are not runtime dependencies.
[dependency-groups]
dev = [
"black==26.5.1",
"ipykernel==7.3.0",
"jupyterlab==4.6.3",
"ruff==0.16.6",
]
[tool.black]
line-length = 79
target-version = ["py312"]
[tool.ruff]
line-length = 79
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F"]