2023-02-16 01:02:30 +00:00
|
|
|
[build-system]
|
2023-02-17 23:08:05 +00:00
|
|
|
requires = ["hatchling", "hatch-vcs"]
|
2023-02-16 01:02:30 +00:00
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
[project]
|
|
|
|
name = "khoj-assistant"
|
2023-10-14 03:22:33 +00:00
|
|
|
description = "An AI copilot for your Second Brain"
|
2023-02-16 01:02:30 +00:00
|
|
|
readme = "README.md"
|
2024-01-29 12:33:43 +00:00
|
|
|
license = "AGPL-3.0-or-later"
|
2024-03-28 06:49:07 +00:00
|
|
|
requires-python = ">=3.9"
|
2023-02-16 01:02:30 +00:00
|
|
|
authors = [
|
2023-02-16 09:12:04 +00:00
|
|
|
{ name = "Debanjum Singh Solanky, Saba Imran" },
|
2023-02-16 01:02:30 +00:00
|
|
|
]
|
|
|
|
keywords = [
|
|
|
|
"search",
|
|
|
|
"semantic-search",
|
|
|
|
"productivity",
|
|
|
|
"NLP",
|
|
|
|
"AI",
|
|
|
|
"org-mode",
|
|
|
|
"markdown",
|
|
|
|
"images",
|
2023-06-01 04:25:48 +00:00
|
|
|
"pdf",
|
2023-02-16 01:02:30 +00:00
|
|
|
]
|
|
|
|
classifiers = [
|
2024-03-28 18:28:15 +00:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
2023-02-16 01:02:30 +00:00
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
2023-06-29 21:54:51 +00:00
|
|
|
"Programming Language :: Python :: 3.11",
|
2023-02-16 01:02:30 +00:00
|
|
|
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
|
|
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
|
|
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
|
2024-03-28 18:28:15 +00:00
|
|
|
"Intended Audience :: Information Technology",
|
2023-02-16 01:02:30 +00:00
|
|
|
]
|
|
|
|
dependencies = [
|
2024-03-09 18:38:48 +00:00
|
|
|
"beautifulsoup4 ~= 4.12.3",
|
2023-08-07 05:48:40 +00:00
|
|
|
"dateparser >= 1.1.1",
|
2023-02-16 01:02:30 +00:00
|
|
|
"defusedxml == 0.7.1",
|
2023-11-18 02:22:45 +00:00
|
|
|
"fastapi >= 0.104.1",
|
2024-02-14 12:02:47 +00:00
|
|
|
"python-multipart >= 0.0.7",
|
2024-01-14 18:29:00 +00:00
|
|
|
"jinja2 == 3.1.3",
|
2023-12-03 23:16:00 +00:00
|
|
|
"openai >= 1.0.0",
|
2023-08-09 06:00:40 +00:00
|
|
|
"tiktoken >= 0.3.2",
|
2023-03-25 05:36:51 +00:00
|
|
|
"tenacity >= 8.2.2",
|
2023-11-29 00:57:07 +00:00
|
|
|
"pillow ~= 9.5.0",
|
2023-11-20 22:52:37 +00:00
|
|
|
"pydantic >= 2.0.0",
|
2023-02-16 01:02:30 +00:00
|
|
|
"pyyaml == 6.0",
|
|
|
|
"rich >= 13.3.1",
|
|
|
|
"schedule == 1.1.0",
|
2024-02-14 13:07:53 +00:00
|
|
|
"sentence-transformers == 2.5.1",
|
2023-08-02 16:10:14 +00:00
|
|
|
"transformers >= 4.28.0",
|
2023-10-26 20:15:31 +00:00
|
|
|
"torch == 2.0.1",
|
2023-02-16 01:02:30 +00:00
|
|
|
"uvicorn == 0.17.6",
|
2023-11-29 00:57:07 +00:00
|
|
|
"aiohttp ~= 3.9.0",
|
2024-01-11 20:02:46 +00:00
|
|
|
"langchain <= 0.2.0",
|
2024-01-29 08:46:50 +00:00
|
|
|
"langchain-openai >= 0.0.5",
|
2023-06-17 08:39:57 +00:00
|
|
|
"requests >= 2.26.0",
|
2023-08-31 21:14:13 +00:00
|
|
|
"anyio == 3.7.1",
|
2023-10-26 16:42:29 +00:00
|
|
|
"pymupdf >= 1.23.5",
|
2024-02-14 12:02:47 +00:00
|
|
|
"django == 4.2.10",
|
2023-10-15 02:39:13 +00:00
|
|
|
"authlib == 1.2.1",
|
Use llama.cpp for offline chat models
- Benefits of moving to llama-cpp-python from gpt4all:
- Support for all GGUF format chat models
- Support for AMD, Nvidia, Mac, Vulcan GPU machines (instead of just Vulcan, Mac)
- Supports models with more capabilities like tools, schema
enforcement, speculative ddecoding, image gen etc.
- Upgrade default chat model, prompt size, tokenizer for new supported
chat models
- Load offline chat model when present on disk without requiring internet
- Load model onto GPU if not disabled and device has GPU
- Load model onto CPU if loading model onto GPU fails
- Create helper function to check and load model from disk, when model
glob is present on disk.
`Llama.from_pretrained' needs internet to get repo info from
HuggingFace. This isn't required, if the model is already downloaded
Didn't find any existing HF or llama.cpp method that looked for model
glob on disk without internet
2024-03-15 20:19:44 +00:00
|
|
|
"llama-cpp-python == 0.2.56",
|
2023-10-15 02:39:13 +00:00
|
|
|
"itsdangerous == 2.1.2",
|
|
|
|
"httpx == 0.25.0",
|
2023-12-20 07:55:43 +00:00
|
|
|
"pgvector == 0.2.4",
|
2023-10-26 16:42:29 +00:00
|
|
|
"psycopg2-binary == 2.9.9",
|
2023-10-26 20:15:31 +00:00
|
|
|
"gunicorn == 21.2.0",
|
2023-11-01 00:59:53 +00:00
|
|
|
"lxml == 4.9.3",
|
2023-11-03 06:02:38 +00:00
|
|
|
"tzdata == 2023.3",
|
2024-02-14 12:02:47 +00:00
|
|
|
"rapidocr-onnxruntime == 1.3.11",
|
2023-11-26 11:37:45 +00:00
|
|
|
"openai-whisper >= 20231117",
|
2024-01-18 13:54:14 +00:00
|
|
|
"django-phonenumber-field == 7.3.0",
|
|
|
|
"phonenumbers == 8.13.27",
|
2024-03-09 18:38:48 +00:00
|
|
|
"markdownify ~= 0.11.6",
|
2024-03-20 08:41:18 +00:00
|
|
|
"websockets == 12.0",
|
2023-02-16 01:02:30 +00:00
|
|
|
]
|
2023-02-17 23:08:05 +00:00
|
|
|
dynamic = ["version"]
|
2023-02-16 01:02:30 +00:00
|
|
|
|
|
|
|
[project.urls]
|
2024-03-14 22:33:39 +00:00
|
|
|
Homepage = "https://khoj.dev"
|
|
|
|
Documentation = "https://docs.khoj.dev"
|
|
|
|
Code = "https://github.com/khoj-ai/khoj"
|
2023-02-16 01:02:30 +00:00
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
khoj = "khoj.main:run"
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
2024-02-14 09:50:27 +00:00
|
|
|
prod = [
|
|
|
|
"google-auth == 2.23.3",
|
|
|
|
"stripe == 7.3.0",
|
|
|
|
"twilio == 8.11",
|
2024-03-08 05:24:13 +00:00
|
|
|
"boto3 >= 1.34.57",
|
2024-02-14 09:50:27 +00:00
|
|
|
]
|
2024-02-14 10:27:32 +00:00
|
|
|
dev = [
|
|
|
|
"khoj-assistant[prod]",
|
2023-02-17 18:07:59 +00:00
|
|
|
"pytest >= 7.1.2",
|
2024-02-14 10:27:32 +00:00
|
|
|
"pytest-xdist[psutil]",
|
|
|
|
"pytest-django == 4.5.2",
|
|
|
|
"pytest-asyncio == 0.21.1",
|
2023-06-29 05:04:34 +00:00
|
|
|
"freezegun >= 1.2.0",
|
|
|
|
"factory-boy >= 3.2.1",
|
2023-11-05 11:32:29 +00:00
|
|
|
"psutil >= 5.8.0",
|
2023-02-17 18:07:59 +00:00
|
|
|
"mypy >= 1.0.1",
|
|
|
|
"black >= 23.1.0",
|
|
|
|
"pre-commit >= 3.0.4",
|
2023-02-16 01:02:30 +00:00
|
|
|
]
|
|
|
|
|
2023-02-17 23:08:05 +00:00
|
|
|
[tool.hatch.version]
|
|
|
|
source = "vcs"
|
|
|
|
raw-options.local_scheme = "no-local-version" # PEP440 compliant version for PyPi
|
|
|
|
|
2023-02-16 01:02:30 +00:00
|
|
|
[tool.hatch.build.targets.sdist]
|
|
|
|
include = ["src/khoj"]
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
2023-02-16 09:33:08 +00:00
|
|
|
packages = ["src/khoj"]
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
files = "src/khoj"
|
|
|
|
pretty = true
|
|
|
|
strict_optional = false
|
|
|
|
install_types = true
|
2023-02-17 18:07:59 +00:00
|
|
|
ignore_missing_imports = true
|
2023-02-16 09:33:08 +00:00
|
|
|
non_interactive = true
|
|
|
|
show_error_codes = true
|
2023-02-17 22:11:17 +00:00
|
|
|
warn_unused_ignores = false
|
2023-02-17 16:04:26 +00:00
|
|
|
|
|
|
|
[tool.black]
|
2023-02-17 18:07:59 +00:00
|
|
|
line-length = 120
|
2023-03-15 00:56:14 +00:00
|
|
|
|
2023-11-21 20:48:12 +00:00
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
|
|
|
|
2023-03-15 00:56:14 +00:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = "--strict-markers"
|
|
|
|
markers = [
|
|
|
|
"chatquality: Evaluate chatbot capabilities and quality",
|
|
|
|
]
|