Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bagatur/community #14257

Closed
wants to merge 62 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
88d3970
scripts
baskaryan Dec 4, 2023
2d18c65
wip
baskaryan Dec 5, 2023
4965f9a
rm
baskaryan Dec 5, 2023
bf7b59e
ci
baskaryan Dec 5, 2023
ee1478b
update
baskaryan Dec 5, 2023
5535c78
deps
baskaryan Dec 5, 2023
f5ed74d
wip
baskaryan Dec 6, 2023
31c9081
merge
baskaryan Dec 6, 2023
98c4f2a
merge
baskaryan Dec 6, 2023
f56c035
latest
baskaryan Dec 6, 2023
c4f32cb
tests
baskaryan Dec 6, 2023
960faa6
more
baskaryan Dec 6, 2023
a212971
more
baskaryan Dec 6, 2023
e08017f
merge
baskaryan Dec 6, 2023
c6c9d93
ci
baskaryan Dec 6, 2023
f922f9f
more
baskaryan Dec 6, 2023
f62331a
script
baskaryan Dec 6, 2023
8ccc18f
more
baskaryan Dec 6, 2023
75ade61
fmt
baskaryan Dec 7, 2023
ce884f8
more
baskaryan Dec 7, 2023
11fc0a5
poetry
baskaryan Dec 7, 2023
d6403c6
poetry
baskaryan Dec 7, 2023
fd2fe4a
poetry
baskaryan Dec 7, 2023
6b1af2d
more
baskaryan Dec 7, 2023
85eae95
anyio
baskaryan Dec 7, 2023
12039a0
more
baskaryan Dec 7, 2023
280aec4
more
baskaryan Dec 7, 2023
8226b81
more
baskaryan Dec 7, 2023
a66df25
more
baskaryan Dec 7, 2023
5631e7e
more
baskaryan Dec 7, 2023
cea3d61
more
baskaryan Dec 7, 2023
de690b0
stubs
baskaryan Dec 7, 2023
6a0a7a7
poetry
baskaryan Dec 7, 2023
bbc795b
override llm config
efriis Dec 7, 2023
f0304a8
Merge branch 'bagatur/community' of github.com:langchain-ai/langchain…
efriis Dec 7, 2023
d7793a0
merge
baskaryan Dec 7, 2023
deab168
poetry
baskaryan Dec 7, 2023
9a5a52d
nit
baskaryan Dec 7, 2023
3249916
fmt
baskaryan Dec 7, 2023
243465d
poetry
baskaryan Dec 7, 2023
c3232a8
make
baskaryan Dec 7, 2023
60fc995
test
baskaryan Dec 7, 2023
af2ad3b
conftest
baskaryan Dec 7, 2023
91dd47b
ignore
baskaryan Dec 7, 2023
a7cbdcc
namespaces
baskaryan Dec 8, 2023
dee5fdf
extra
baskaryan Dec 8, 2023
89f74bf
rm mypy test cache
baskaryan Dec 8, 2023
f541e02
poetry
baskaryan Dec 8, 2023
a2c4479
nit
baskaryan Dec 8, 2023
279155f
switch cache
baskaryan Dec 8, 2023
34709ec
examples
baskaryan Dec 8, 2023
3e0c5a3
mypy cache
baskaryan Dec 8, 2023
0de6e09
examples
baskaryan Dec 8, 2023
9e745c8
examples
baskaryan Dec 8, 2023
d1a0140
lint
baskaryan Dec 8, 2023
76fb19f
telegrame
baskaryan Dec 8, 2023
7051e83
mv more
baskaryan Dec 8, 2023
247950e
hash
baskaryan Dec 8, 2023
b46802a
key
baskaryan Dec 8, 2023
0de98e7
Merge branch 'master' into bagatur/community
baskaryan Dec 8, 2023
251fd93
adapters
baskaryan Dec 8, 2023
b56bfd5
document script
baskaryan Dec 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
poetry
baskaryan committed Dec 7, 2023
commit fd2fe4aacf861eed68086c77f99272610489daa7
7 changes: 4 additions & 3 deletions libs/community/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion libs/community/pyproject.toml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/langchain-ai/langchain"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain-core = ">=0.0.9,<0.1"
langchain-core = ">=0.0.11,<0.1"
langchain-openai = { path = "../partners/openai", develop = true }
SQLAlchemy = ">=1.4,<3"
requests = "^2"
@@ -137,6 +137,7 @@ python-dotenv = "^1.0.0"
cassio = "^0.1.0"
tiktoken = "^0.3.2"
anthropic = "^0.3.11"
langchain-core = { path = "../core", develop = true }

[tool.poetry.group.lint.dependencies]
ruff = "^0.1.5"
56 changes: 52 additions & 4 deletions libs/experimental/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions libs/experimental/pyproject.toml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ repository = "https://github.com/langchain-ai/langchain"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain-core = ">=0.0.10,<0.1"
langchain-core = ">=0.0.11,<0.1"
langchain = ">=0.0.346,<0.1"
presidio-anonymizer = {version = "^2.2.33", optional = true}
presidio-analyzer = {version = "^2.2.33", optional = true}
@@ -42,7 +42,10 @@ langchain-core = {path = "../core", develop = true}

[tool.poetry.group.test_integration]
optional = true
dependencies = {}

[tool.poetry.group.test_integration.dependencies]
langchain = {path = "../langchain", develop = true}
langchain-core = {path = "../core", develop = true}

# An extra used to be able to add extended testing.
# Please use new-line on formatting to make it easier to add new packages without
4 changes: 2 additions & 2 deletions libs/partners/openai/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion libs/partners/openai/pyproject.toml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/langchain-ai/langchain"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain-core = ">=0.0.9,<0.1"
langchain-core = ">=0.0.11,<0.1"
numpy = "^1"
openai = {version = "<2", optional = true}
tiktoken = {version = ">=0.3.2,<0.6.0", optional = true, python=">=3.9"}
@@ -59,6 +59,7 @@ openai = "^1"
python-dotenv = "^1.0.0"
cassio = "^0.1.0"
tiktoken = "^0.3.2"
langchain-core = { path = "../../core", develop = true }

[tool.poetry.group.lint.dependencies]
ruff = "^0.1.5"

Unchanged files with check annotations Beta

from langchain_community.agent_toolkits.azure_cognitive_services import (
AzureCognitiveServicesToolkit,
)
from langchain_community.agent_toolkits.conversational_retrieval.openai_functions import (

Check failure on line 26 in libs/community/langchain_community/agent_toolkits/__init__.py

GitHub Actions / ci (libs/community) / lint / build (3.11)

Ruff (E501)

langchain_community/agent_toolkits/__init__.py:26:89: E501 Line too long (90 > 88)

Check failure on line 26 in libs/community/langchain_community/agent_toolkits/__init__.py

GitHub Actions / ci (libs/community) / lint / build (3.8)

Ruff (E501)

langchain_community/agent_toolkits/__init__.py:26:89: E501 Line too long (90 > 88)
create_conversational_retrieval_agent,
)
from langchain_community.agent_toolkits.file_management.toolkit import (
.. code-block:: python
from langchain_community.document_loaders.blob_loaders import FileSystemBlobLoader

Check failure on line 46 in libs/community/langchain_community/document_loaders/blob_loaders/file_system.py

GitHub Actions / ci (libs/community) / lint / build (3.11)

Ruff (E501)

langchain_community/document_loaders/blob_loaders/file_system.py:46:89: E501 Line too long (90 > 88)

Check failure on line 46 in libs/community/langchain_community/document_loaders/blob_loaders/file_system.py

GitHub Actions / ci (libs/community) / lint / build (3.8)

Ruff (E501)

langchain_community/document_loaders/blob_loaders/file_system.py:46:89: E501 Line too long (90 > 88)
loader = FileSystemBlobLoader("/path/to/directory")
for blob in loader.yield_blobs():
print(blob)
Examples:
.. code-block:: python
from langchain_community.document_loaders.blob_loaders import FileSystemBlobLoader

Check failure on line 79 in libs/community/langchain_community/document_loaders/blob_loaders/file_system.py

GitHub Actions / ci (libs/community) / lint / build (3.11)

Ruff (E501)

langchain_community/document_loaders/blob_loaders/file_system.py:79:89: E501 Line too long (98 > 88)

Check failure on line 79 in libs/community/langchain_community/document_loaders/blob_loaders/file_system.py

GitHub Actions / ci (libs/community) / lint / build (3.8)

Ruff (E501)

langchain_community/document_loaders/blob_loaders/file_system.py:79:89: E501 Line too long (98 > 88)
# Load a single file.
loader = FileSystemBlobLoader("/path/to/file.txt")
.. code-block:: python
from langchain_community.document_loaders import GenericLoader
from langchain_community.document_loaders.blob_loaders import FileSystemBlobLoader

Check failure on line 56 in libs/community/langchain_community/document_loaders/generic.py

GitHub Actions / ci (libs/community) / lint / build (3.11)

Ruff (E501)

langchain_community/document_loaders/generic.py:56:89: E501 Line too long (94 > 88)

Check failure on line 56 in libs/community/langchain_community/document_loaders/generic.py

GitHub Actions / ci (libs/community) / lint / build (3.8)

Ruff (E501)

langchain_community/document_loaders/generic.py:56:89: E501 Line too long (94 > 88)
loader = GenericLoader.from_filesystem(
.. code-block:: python
from langchain_community.document_loaders.parsers.generic import MimeTypeBasedParser

Check failure on line 25 in libs/community/langchain_community/document_loaders/parsers/generic.py

GitHub Actions / ci (libs/community) / lint / build (3.11)

Ruff (E501)

langchain_community/document_loaders/parsers/generic.py:25:89: E501 Line too long (92 > 88)

Check failure on line 25 in libs/community/langchain_community/document_loaders/parsers/generic.py

GitHub Actions / ci (libs/community) / lint / build (3.8)

Ruff (E501)

langchain_community/document_loaders/parsers/generic.py:25:89: E501 Line too long (92 > 88)
parser = MimeTypeBasedParser(
handlers={
Example:
.. code-block:: python
from langchain_community.document_transformers import BeautifulSoupTransformer

Check failure on line 11 in libs/community/langchain_community/document_transformers/beautiful_soup_transformer.py

GitHub Actions / ci (libs/community) / lint / build (3.11)

Ruff (E501)

langchain_community/document_transformers/beautiful_soup_transformer.py:11:89: E501 Line too long (90 > 88)

Check failure on line 11 in libs/community/langchain_community/document_transformers/beautiful_soup_transformer.py

GitHub Actions / ci (libs/community) / lint / build (3.8)

Ruff (E501)

langchain_community/document_transformers/beautiful_soup_transformer.py:11:89: E501 Line too long (90 > 88)
bs4_transformer = BeautifulSoupTransformer()
docs_transformed = bs4_transformer.transform_documents(docs)
"""
.. code-block::
Embeddings --> <name>Embeddings # Examples: BedrockEmbeddings, HuggingFaceEmbeddings

Check failure on line 10 in libs/community/langchain_community/embeddings/__init__.py

GitHub Actions / ci (libs/community) / lint / build (3.11)

Ruff (E501)

langchain_community/embeddings/__init__.py:10:89: E501 Line too long (89 > 88)

Check failure on line 10 in libs/community/langchain_community/embeddings/__init__.py

GitHub Actions / ci (libs/community) / lint / build (3.8)

Ruff (E501)

langchain_community/embeddings/__init__.py:10:89: E501 Line too long (89 > 88)
"""
.. code-block: python
from langchain_community.embeddings import CacheBackedEmbeddings, OpenAIEmbeddings

Check failure on line 65 in libs/community/langchain_community/embeddings/cache.py

GitHub Actions / ci (libs/community) / lint / build (3.11)

Ruff (E501)

langchain_community/embeddings/cache.py:65:89: E501 Line too long (94 > 88)

Check failure on line 65 in libs/community/langchain_community/embeddings/cache.py

GitHub Actions / ci (libs/community) / lint / build (3.8)

Ruff (E501)

langchain_community/embeddings/cache.py:65:89: E501 Line too long (94 > 88)
from langchain_community.storage import LocalFileStore
store = LocalFileStore('./my_cache')
Example:
.. code-block:: python
from langchain_community.embeddings import HuggingFaceInferenceAPIEmbeddings

Check failure on line 315 in libs/community/langchain_community/embeddings/huggingface.py

GitHub Actions / ci (libs/community) / lint / build (3.11)

Ruff (E501)

langchain_community/embeddings/huggingface.py:315:89: E501 Line too long (92 > 88)

Check failure on line 315 in libs/community/langchain_community/embeddings/huggingface.py

GitHub Actions / ci (libs/community) / lint / build (3.8)

Ruff (E501)

langchain_community/embeddings/huggingface.py:315:89: E501 Line too long (92 > 88)
hf_embeddings = HuggingFaceInferenceAPIEmbeddings(
api_key="your_api_key",
Example:
.. code-block:: python
from langchain_community.embeddings.johnsnowlabs import JohnSnowLabsEmbeddings

Check failure on line 16 in libs/community/langchain_community/embeddings/johnsnowlabs.py

GitHub Actions / ci (libs/community) / lint / build (3.11)

Ruff (E501)

langchain_community/embeddings/johnsnowlabs.py:16:89: E501 Line too long (90 > 88)

Check failure on line 16 in libs/community/langchain_community/embeddings/johnsnowlabs.py

GitHub Actions / ci (libs/community) / lint / build (3.8)

Ruff (E501)

langchain_community/embeddings/johnsnowlabs.py:16:89: E501 Line too long (90 > 88)
embedding = JohnSnowLabsEmbeddings(model='embed_sentence.bert')
output = embedding.embed_query("foo bar")