forked from marella/chatdocs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
77 lines (74 loc) · 2.54 KB
/
setup.py
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
from setuptools import setup, find_packages
with open("README.md") as f:
long_description = f.read()
name = "chatdocs"
setup(
name=name,
version="0.2.6",
description="Chat with your documents offline using AI.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Ravindra Marella",
author_email="mv.ravindra007@gmail.com",
url="https://github.com/marella/{}".format(name),
license="MIT",
packages=find_packages(where="."),
package_data={name: ["data/chatdocs.yml"]},
entry_points={
"console_scripts": [
f"{name} = {name}.main:app",
],
},
install_requires=[
"accelerate>=0.25.0",
"chromadb>=0.4.16",
"ctransformers>=0.2.25,<0.3.0",
"deepmerge>=1.1.0,<2.0.0",
"InstructorEmbedding>=1.0.1,<2.0.0",
"langchain>=0.0.344",
"openai",
"pydantic>=1.9,<2.0",
"pyyaml>=6.0",
"sentence-transformers>=2.2.2,<3.0.0",
"scikit-learn>=1.3.2",
"tqdm>=4.64.1,<5.0.0",
"transformers>=4.35.0",
"typer>=0.9.0",
"typing-extensions>=4.4.0,<5.0.0",
# UI
"streamlit>=1.29.0",
"plotly>=5.17.0",
# Document Loaders
"extract-msg>=0.41.0,<0.42.0",
"pandoc>=2.3,<3.0.0",
"pypandoc>=1.11,<2.0.0",
"nougat-ocr==0.1.9", # needs specific version to avoid ERROR:root:daemonic processes are not allowed to have children
"unstructured>=0.6.0,<0.7.0",
# Temporary fix for version conflicts.
"lightning==2.1.2",
"numpy==1.26.0",
# Fix for https://github.com/GrahamDumpleton/wrapt/issues/196 dependency from fastapi from chromadb
"wrapt>=1.14.0",
],
extras_require={
"tests": [
"pytest",
],
},
zip_safe=False,
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords="{} ctransformers transformers langchain chroma ai llm".format(name),
)