-
Notifications
You must be signed in to change notification settings - Fork 278
/
pyproject.toml
112 lines (102 loc) · 2.93 KB
/
pyproject.toml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[tool.poetry]
name = "generative-ai-with-langchain"
version = "0.2.0"
description = "Build large language model (LLM) apps with Python, ChatGPT and other models.."
authors = [
"Ben Auffarth <[email protected]>",
]
readme = "README.md"
repository = "https://github.com/benman1/generative_ai_with_langchain"
keywords = ["llms", "langchain", "ai", "chatgpt", "gpt", "openai", "huggingface", "claude3", "claude", "gemini"]
[pylint.FORMAT]
max-line-length = 120
[tool.poetry.dependencies]
# poetry doesn't seem to support dynamic dependencies - we have to keep this in sync with requirements.txt...
python = "^3.11"
accelerate = "0.33.0"
apify-client = "1.6.4"
arxiv = "2.1.0"
duckduckgo_search = "5.2.1"
faiss-cpu = "1.8.0"
google-api-python-client = "2.124.0"
google-cloud-aiplatform = "1.60.0"
google-generativeai = "0.4.1"
gpt4all = "2.3.2"
gradio = "3.50.2"
huggingface-hub = "0.24.5"
jupyter = "~1.0"
lanarky = {version = "0.8.6", python = ">=3.11,<3.12"}
langchain-anthropic = "0.1.4"
langchain-chroma = "0.1.2"
langchain-cli = "0.0.21"
langchain-cohere = "0.1.1"
langchain-core = "0.1.42 "
langchain-experimental = "0.0.55"
langchain-google-genai = "1.0.1"
langchain-google-vertexai = "0.1.2"
langchain-openai = "0.1.1"
langchain = {extras = ["docarray"], version = "0.1.13"}
langchainhub = "0.1.20"
langserve = {extras = ["all"], version = "0.0.51"}
numexpr = "2.10.0"
opencv-python = "4.9.0.80"
pandoc = "1.1.0" # needs system install as well!
pdf2image = "1.17.0"
"pdfminer.six" = "20231228"
pikepdf = "8.15.1"
pillow_heif = "0.16.0"
pymupdf = "1.24.1"
pypdf = "4.1.0"
replicate = "0.30.1"
ruff = "0.3.4"
sentence-transformers = "2.6.1"
streamlit = "1.37.0"
tiktoken = "0.6.0"
unstructured = {version = "0.15.0", python=">=3.11,<3.13"}
wikipedia = "1.4.0"
wolframalpha = "5.0.0"
torch = {version = "~2.2.2", python=">=3.11,<3.13"}
[tool.ruff]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"__pycache__",
"notebooks"
]
# Same as Black.
line-length = 99
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.11.
target-version = "py311"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10