-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (69 loc) · 2.32 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
from setuptools import setup, find_packages
PROJNAME = "rag-with-langchain"
DESCRIPTION = "An introduction to Retrieval Augmented Generation (RAG) using LangChain."
with open("README.md") as f:
LONG_DESCRIPTION = f.read()
LONG_DESCRIPTION_CONTENT_TYPE = "text/markdown"
MAINTAINER = "Ibrahim Olalekan Alabi"
MAINTAINER_EMAIL = "[email protected]"
URL = "https://github.com/Ibrahim-Ola/RAG.git"
PROJECT_URLS = {
"Bug Tracker": "https://github.com/Ibrahim-Ola/RAG/issues",
"Documentation": "https://github.com/Ibrahim-Ola/RAG/blob/main/README.md",
"Source Code": "https://github.com/Ibrahim-Ola/RAG",
}
VERSION = "0.0.1"
LICENSE = "MIT"
PYTHON_REQUIRES = ">=3.9"
def setup_package():
metadata = dict(
name=PROJNAME,
version=VERSION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type=LONG_DESCRIPTION_CONTENT_TYPE,
url=URL,
project_urls=PROJECT_URLS,
license=LICENSE,
python_requires=PYTHON_REQUIRES,
packages=find_packages(),
install_requires=[
"torch==2.1.2",
"langchain==0.1.1",
"chromadb==0.4.22",
"accelerate==0.26.1",
"transformers==4.36.2",
"python-dotenv==1.0.0",
"bitsandbytes==0.42.0",
"sentence-transformers==2.3.1"
],
classifiers=[
"Development Status :: 4 - Beta",
# "Environment :: GPU :: NVIDIA CUDA",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
keywords=[
"RAG",
"LLM",
"LangChain",
"NLP",
"Deep Learning",
"AI",
"Machine Learning",
"Artificial Intelligence",
],
)
setup(**metadata)
if __name__ == "__main__":
setup_package()
print("Setup Complete.")