make default installation faster (#2)

* remove cohere as default

* refractor dependencies

* use llama-index pdf reader as default (pypdf)

* fix some lazy docstring

* update install scripts

* minor fix
This commit is contained in:
ian_Cin
2024-03-21 22:48:20 +07:00
committed by GitHub
parent a8f92b3f9e
commit d22ae88c7a
11 changed files with 30 additions and 33 deletions

View File

@@ -17,6 +17,8 @@ description = "Kotaemon core library for AI development."
dependencies = [
"langchain",
"langchain-community",
"langchain-openai",
"openai",
"theflow",
"llama-index>=0.9.0,<0.10.0",
"llama-hub",
@@ -27,6 +29,11 @@ dependencies = [
"pandas",
"trogon",
"tenacity",
"python-dotenv", # currently used to read configs from file, should be remove in the future
"chromadb",
"unstructured",
"pypdf",
"html2text",
]
readme = "README.md"
license = { text = "MIT License" }
@@ -42,6 +49,18 @@ classifiers = [
]
[project.optional-dependencies]
adv = [
"wikipedia",
"duckduckgo-search",
"googlesearch-python",
"python-docx",
"pytest-mock",
"unstructured[pdf]",
"sentence_transformers",
"cohere",
"elasticsearch",
"llama-cpp-python",
]
dev = [
"ipython",
"pytest",
@@ -50,23 +69,8 @@ dev = [
"flake8",
"sphinx",
"coverage",
"openai",
"langchain-openai",
"chromadb",
"wikipedia",
"duckduckgo-search",
"googlesearch-python",
"python-docx",
"python-dotenv",
"pytest-mock",
"unstructured[pdf]",
"sentence_transformers",
"cohere",
"elasticsearch",
"pypdf",
"html2text",
"llama-cpp-python",
]
all = ["kotaemon[adv,dev]"]
[project.scripts]
kh = "kotaemon.cli:main"