-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
79 lines (75 loc) · 2.26 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
78
79
from setuptools import setup
# read the contents of your README file
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text(encoding="utf-8")
install_requires = [
"pypdf",
"langchain-core>=0.3,<0.4",
"langchain>=0.3,<0.4",
"langchain-community>=0.3,<0.4",
"langchain_openai>=0.1.0",
"langchain-huggingface>=0.1.2",
"langchain-chroma",
"lark",
"chromadb==0.4.14",
"openai>=0.27",
"tiktoken",
"scikit-learn>=1.3.0",
"jieba>=0.42.1",
"opencc-python-reimplemented==0.1.7",
"sentence-transformers>=3.1.1",
"transformers>=4.45.0", #==4.41.1
"tqdm>=4.65.0",
"docx2txt==0.8",
"rouge==1.0.1",
"rouge-chinese==1.0.3",
"bert-score==0.3.13",
"click",
"tokenizers>=0.19.1",
"streamlit>=1.33.0",
"streamlit_option_menu>=0.3.6",
"rank_bm25",
"unstructured",
"python-pptx",
"wikipedia",
"numpy<2",
"sentencepiece",
"google-cloud-aiplatform>=1.64",
"google-generativeai",
"langchain-google-genai",
"anthropic",
]
### install different torch version###
install_requires.append("torch==2.2.0; platform_system=='Windows'")
install_requires.append("torch==2.0.1; platform_system=='Darwin'")
install_requires.append("torch==2.2.0; platform_system=='Linux'")
install_requires.append("torchvision==0.17.0; platform_system=='Windows'")
install_requires.append("torchvision==0.15.2; platform_system=='Darwin'")
install_requires.append("torchvision==0.17.0; platform_system=='Linux'")
setup(
name="akasha_terminal",
version="0.8.88",
description="document QA(RAG) package using langchain and chromadb",
long_description=long_description,
long_description_content_type="text/markdown",
author="chih chuan chang",
url="https://github.com/iii-org/akasha",
author_email="[email protected]",
install_requires=install_requires,
extras_require={
'llama-cpp': [
"llama-cpp-python>=0.3.1",
],
'peft': ["auto-gptq==0.3.1"]
},
packages=[
"akasha",
"akasha.models",
"cli",
"akasha.eval",
"akasha.interface",
],
entry_points={"console_scripts": ["akasha = cli.glue:akasha"]},
python_requires=">=3.9",
)