2023-02-15 19:02:30 -06:00
|
|
|
[build-system]
|
2023-02-17 17:08:05 -06:00
|
|
|
requires = ["hatchling", "hatch-vcs"]
|
2023-02-15 19:02:30 -06:00
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
[project]
|
|
|
|
name = "khoj-assistant"
|
2023-10-13 20:22:33 -07:00
|
|
|
description = "An AI copilot for your Second Brain"
|
2023-02-15 19:02:30 -06:00
|
|
|
readme = "README.md"
|
2024-01-29 18:03:43 +05:30
|
|
|
license = "AGPL-3.0-or-later"
|
2024-07-09 12:28:11 +05:30
|
|
|
requires-python = ">=3.10"
|
2023-02-15 19:02:30 -06:00
|
|
|
authors = [
|
2023-02-16 03:12:04 -06:00
|
|
|
{ name = "Debanjum Singh Solanky, Saba Imran" },
|
2023-02-15 19:02:30 -06:00
|
|
|
]
|
|
|
|
keywords = [
|
|
|
|
"search",
|
|
|
|
"semantic-search",
|
|
|
|
"productivity",
|
|
|
|
"NLP",
|
|
|
|
"AI",
|
|
|
|
"org-mode",
|
|
|
|
"markdown",
|
|
|
|
"images",
|
2023-06-01 09:55:48 +05:30
|
|
|
"pdf",
|
2023-02-15 19:02:30 -06:00
|
|
|
]
|
|
|
|
classifiers = [
|
2024-03-28 23:58:15 +05:30
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
2023-02-15 19:02:30 -06:00
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
2023-06-29 14:54:51 -07:00
|
|
|
"Programming Language :: Python :: 3.11",
|
2024-04-07 10:37:54 +05:30
|
|
|
"Programming Language :: Python :: 3.12",
|
2023-02-15 19:02:30 -06:00
|
|
|
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
|
|
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
|
|
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
|
2024-03-28 23:58:15 +05:30
|
|
|
"Intended Audience :: Information Technology",
|
2023-02-15 19:02:30 -06:00
|
|
|
]
|
|
|
|
dependencies = [
|
2024-03-10 00:08:48 +05:30
|
|
|
"beautifulsoup4 ~= 4.12.3",
|
2023-08-06 22:48:40 -07:00
|
|
|
"dateparser >= 1.1.1",
|
2023-02-15 19:02:30 -06:00
|
|
|
"defusedxml == 0.7.1",
|
2023-11-17 18:22:45 -08:00
|
|
|
"fastapi >= 0.104.1",
|
2024-02-14 17:32:47 +05:30
|
|
|
"python-multipart >= 0.0.7",
|
2024-06-04 09:05:53 +05:30
|
|
|
"jinja2 == 3.1.4",
|
2023-12-03 18:16:00 -05:00
|
|
|
"openai >= 1.0.0",
|
2023-08-08 23:00:40 -07:00
|
|
|
"tiktoken >= 0.3.2",
|
2023-03-25 12:36:51 +07:00
|
|
|
"tenacity >= 8.2.2",
|
2024-04-03 10:24:16 +05:30
|
|
|
"magika ~= 0.5.1",
|
2024-06-22 15:12:39 +05:30
|
|
|
"pillow ~= 10.0.0",
|
2024-06-24 14:58:56 +05:30
|
|
|
"pydantic[email] >= 2.0.0",
|
2024-04-07 10:37:54 +05:30
|
|
|
"pyyaml ~= 6.0",
|
2023-02-15 19:02:30 -06:00
|
|
|
"rich >= 13.3.1",
|
|
|
|
"schedule == 1.1.0",
|
2024-07-05 16:07:42 +05:30
|
|
|
"sentence-transformers == 3.0.1",
|
|
|
|
"einops == 0.8.0",
|
2023-08-02 09:10:14 -07:00
|
|
|
"transformers >= 4.28.0",
|
2024-04-07 10:37:54 +05:30
|
|
|
"torch == 2.2.2",
|
2023-02-15 19:02:30 -06:00
|
|
|
"uvicorn == 0.17.6",
|
2023-11-28 16:57:07 -08:00
|
|
|
"aiohttp ~= 3.9.0",
|
2024-06-17 14:52:11 +05:30
|
|
|
"langchain == 0.2.5",
|
2024-06-17 14:38:05 +05:30
|
|
|
"langchain-openai == 0.1.7",
|
2024-06-17 14:52:11 +05:30
|
|
|
"langchain-community == 0.2.5",
|
2023-06-17 01:39:57 -07:00
|
|
|
"requests >= 2.26.0",
|
2024-06-17 14:52:11 +05:30
|
|
|
"tenacity == 8.3.0",
|
2023-08-31 14:14:13 -07:00
|
|
|
"anyio == 3.7.1",
|
2023-10-26 09:42:29 -07:00
|
|
|
"pymupdf >= 1.23.5",
|
2024-07-11 16:35:10 +05:30
|
|
|
"django == 5.0.7",
|
2023-10-14 19:39:13 -07:00
|
|
|
"authlib == 1.2.1",
|
2024-06-04 09:05:53 +05:30
|
|
|
"llama-cpp-python == 0.2.76",
|
2023-10-14 19:39:13 -07:00
|
|
|
"itsdangerous == 2.1.2",
|
|
|
|
"httpx == 0.25.0",
|
2023-12-20 13:25:43 +05:30
|
|
|
"pgvector == 0.2.4",
|
2023-10-26 09:42:29 -07:00
|
|
|
"psycopg2-binary == 2.9.9",
|
2023-10-31 17:59:53 -07:00
|
|
|
"lxml == 4.9.3",
|
2023-11-02 23:02:38 -07:00
|
|
|
"tzdata == 2023.3",
|
2024-06-22 16:00:06 +05:30
|
|
|
"rapidocr-onnxruntime == 1.3.22",
|
2023-11-26 03:37:45 -08:00
|
|
|
"openai-whisper >= 20231117",
|
2024-01-18 05:54:14 -08:00
|
|
|
"django-phonenumber-field == 7.3.0",
|
|
|
|
"phonenumbers == 8.13.27",
|
2024-03-10 00:08:48 +05:30
|
|
|
"markdownify ~= 0.11.6",
|
2024-04-27 01:05:29 +05:30
|
|
|
"markdown-it-py ~= 3.0.0",
|
2024-03-20 14:11:18 +05:30
|
|
|
"websockets == 12.0",
|
2024-04-13 22:15:34 +05:30
|
|
|
"psutil >= 5.8.0",
|
2024-04-17 01:09:36 +05:30
|
|
|
"huggingface-hub >= 0.22.2",
|
2024-03-12 02:59:32 +05:30
|
|
|
"apscheduler ~= 3.10.0",
|
2024-04-27 00:56:49 +05:30
|
|
|
"pytz ~= 2024.1",
|
2024-04-29 18:54:54 +05:30
|
|
|
"cron-descriptor == 1.4.3",
|
2024-04-30 17:43:27 +05:30
|
|
|
"django_apscheduler == 0.6.2",
|
2024-05-26 22:50:34 +05:30
|
|
|
"anthropic == 0.26.1",
|
2024-06-20 01:48:01 -04:00
|
|
|
"docx2txt == 0.8"
|
2023-02-15 19:02:30 -06:00
|
|
|
]
|
2023-02-17 17:08:05 -06:00
|
|
|
dynamic = ["version"]
|
2023-02-15 19:02:30 -06:00
|
|
|
|
|
|
|
[project.urls]
|
2024-03-15 04:03:39 +05:30
|
|
|
Homepage = "https://khoj.dev"
|
|
|
|
Documentation = "https://docs.khoj.dev"
|
|
|
|
Code = "https://github.com/khoj-ai/khoj"
|
2023-02-15 19:02:30 -06:00
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
khoj = "khoj.main:run"
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
2024-02-14 15:20:27 +05:30
|
|
|
prod = [
|
2024-04-24 11:28:55 +05:30
|
|
|
"gunicorn == 22.0.0",
|
2024-02-14 15:20:27 +05:30
|
|
|
"google-auth == 2.23.3",
|
|
|
|
"stripe == 7.3.0",
|
|
|
|
"twilio == 8.11",
|
2024-03-08 10:54:13 +05:30
|
|
|
"boto3 >= 1.34.57",
|
2024-05-30 07:05:11 +05:30
|
|
|
"resend == 1.0.1",
|
2024-02-14 15:20:27 +05:30
|
|
|
]
|
2024-02-14 15:57:32 +05:30
|
|
|
dev = [
|
|
|
|
"khoj-assistant[prod]",
|
2023-02-17 12:07:59 -06:00
|
|
|
"pytest >= 7.1.2",
|
2024-02-14 15:57:32 +05:30
|
|
|
"pytest-xdist[psutil]",
|
|
|
|
"pytest-django == 4.5.2",
|
|
|
|
"pytest-asyncio == 0.21.1",
|
2023-06-28 22:04:34 -07:00
|
|
|
"freezegun >= 1.2.0",
|
|
|
|
"factory-boy >= 3.2.1",
|
2023-02-17 12:07:59 -06:00
|
|
|
"mypy >= 1.0.1",
|
|
|
|
"black >= 23.1.0",
|
|
|
|
"pre-commit >= 3.0.4",
|
2023-02-15 19:02:30 -06:00
|
|
|
]
|
|
|
|
|
2023-02-17 17:08:05 -06:00
|
|
|
[tool.hatch.version]
|
|
|
|
source = "vcs"
|
|
|
|
raw-options.local_scheme = "no-local-version" # PEP440 compliant version for PyPi
|
|
|
|
|
2023-02-15 19:02:30 -06:00
|
|
|
[tool.hatch.build.targets.sdist]
|
|
|
|
include = ["src/khoj"]
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
2023-02-16 03:33:08 -06:00
|
|
|
packages = ["src/khoj"]
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
files = "src/khoj"
|
|
|
|
pretty = true
|
|
|
|
strict_optional = false
|
|
|
|
install_types = true
|
2023-02-17 12:07:59 -06:00
|
|
|
ignore_missing_imports = true
|
2023-02-16 03:33:08 -06:00
|
|
|
non_interactive = true
|
|
|
|
show_error_codes = true
|
2023-02-17 16:11:17 -06:00
|
|
|
warn_unused_ignores = false
|
2023-02-17 10:04:26 -06:00
|
|
|
|
|
|
|
[tool.black]
|
2023-02-17 12:07:59 -06:00
|
|
|
line-length = 120
|
2023-03-14 18:56:14 -06:00
|
|
|
|
2023-11-21 12:48:12 -08:00
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
|
|
|
|
2023-03-14 18:56:14 -06:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = "--strict-markers"
|
|
|
|
markers = [
|
|
|
|
"chatquality: Evaluate chatbot capabilities and quality",
|
|
|
|
]
|