Skip to content

Commit 3498321

Browse files
authored
Merge branch 'langchain-ai:master' into master
2 parents a498b99 + f027696 commit 3498321

File tree

727 files changed

+76796
-49528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

727 files changed

+76796
-49528
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ There are many ways to contribute to LangChain. Here are some common ways people
1313

1414
- [**Documentation**](https://python.langchain.com/docs/contributing/documentation): Help improve our docs, including this one!
1515
- [**Code**](https://python.langchain.com/docs/contributing/code): Help us write code, fix bugs, or improve our infrastructure.
16-
- [**Integrations**](https://python.langchain.com/docs/contributing/integration): Help us integrate with your favorite vendors and tools.
16+
- [**Integrations**](https://python.langchain.com/docs/contributing/integrations): Help us integrate with your favorite vendors and tools.
1717

1818
### 🚩GitHub Issues
1919

.github/scripts/check_diff.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@
3636
elif "libs/partners" in file:
3737
partner_dir = file.split("/")[2]
3838
if os.path.isdir(f"libs/partners/{partner_dir}"):
39-
dirs_to_run.update(
40-
(
41-
f"libs/partners/{partner_dir}",
42-
"libs/langchain",
43-
"libs/experimental",
44-
)
45-
)
39+
dirs_to_run.add(f"libs/partners/{partner_dir}")
4640
# Skip if the directory was deleted
4741
elif "libs/langchain" in file:
4842
dirs_to_run.update(("libs/langchain", "libs/experimental"))

.github/workflows/_all_ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,35 @@ env:
3636

3737
jobs:
3838
lint:
39+
name: "-"
3940
uses: ./.github/workflows/_lint.yml
4041
with:
4142
working-directory: ${{ inputs.working-directory }}
4243
secrets: inherit
4344

4445
test:
46+
name: "-"
4547
uses: ./.github/workflows/_test.yml
4648
with:
4749
working-directory: ${{ inputs.working-directory }}
4850
secrets: inherit
4951

5052
compile-integration-tests:
53+
name: "-"
5154
uses: ./.github/workflows/_compile_integration_test.yml
5255
with:
5356
working-directory: ${{ inputs.working-directory }}
5457
secrets: inherit
5558

5659
dependencies:
60+
name: "-"
5761
uses: ./.github/workflows/_dependencies.yml
5862
with:
5963
working-directory: ${{ inputs.working-directory }}
6064
secrets: inherit
6165

6266
extended-tests:
67+
name: "make extended_tests #${{ matrix.python-version }}"
6368
runs-on: ubuntu-latest
6469
strategy:
6570
matrix:
@@ -68,7 +73,6 @@ jobs:
6873
- "3.9"
6974
- "3.10"
7075
- "3.11"
71-
name: Python ${{ matrix.python-version }} extended tests
7276
defaults:
7377
run:
7478
working-directory: ${{ inputs.working-directory }}

.github/workflows/_compile_integration_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- "3.9"
2525
- "3.10"
2626
- "3.11"
27-
name: Python ${{ matrix.python-version }}
27+
name: "poetry run pytest -m compile tests/integration_tests #${{ matrix.python-version }}"
2828
steps:
2929
- uses: actions/checkout@v4
3030

.github/workflows/_dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- "3.9"
2929
- "3.10"
3030
- "3.11"
31-
name: dependencies - Python ${{ matrix.python-version }}
31+
name: dependency checks ${{ matrix.python-version }}
3232
steps:
3333
- uses: actions/checkout@v4
3434

.github/workflows/_integration_test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
GOOGLE_SEARCH_API_KEY: ${{ secrets.GOOGLE_SEARCH_API_KEY }}
5858
GOOGLE_CSE_ID: ${{ secrets.GOOGLE_CSE_ID }}
5959
EXA_API_KEY: ${{ secrets.EXA_API_KEY }}
60+
NOMIC_API_KEY: ${{ secrets.NOMIC_API_KEY }}
6061
run: |
6162
make integration_tests
6263

.github/workflows/_lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ env:
2121

2222
jobs:
2323
build:
24+
name: "make lint #${{ matrix.python-version }}"
2425
runs-on: ubuntu-latest
2526
strategy:
2627
matrix:
@@ -85,7 +86,7 @@ jobs:
8586
with:
8687
path: |
8788
${{ env.WORKDIR }}/.mypy_cache
88-
key: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', env.WORKDIR)) }}
89+
key: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }}
8990

9091

9192
- name: Analysing the code with our lint
@@ -113,7 +114,7 @@ jobs:
113114
with:
114115
path: |
115116
${{ env.WORKDIR }}/.mypy_cache_test
116-
key: mypy-test-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', env.WORKDIR)) }}
117+
key: mypy-test-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }}
117118

118119
- name: Analysing the code with our lint
119120
working-directory: ${{ inputs.working-directory }}

.github/workflows/_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ jobs:
175175
GOOGLE_SEARCH_API_KEY: ${{ secrets.GOOGLE_SEARCH_API_KEY }}
176176
GOOGLE_CSE_ID: ${{ secrets.GOOGLE_CSE_ID }}
177177
EXA_API_KEY: ${{ secrets.EXA_API_KEY }}
178+
NOMIC_API_KEY: ${{ secrets.NOMIC_API_KEY }}
178179
run: make integration_tests
179180
working-directory: ${{ inputs.working-directory }}
180181

.github/workflows/_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- "3.9"
2929
- "3.10"
3030
- "3.11"
31-
name: Python ${{ matrix.python-version }}
31+
name: "make test #${{ matrix.python-version }}"
3232
steps:
3333
- uses: actions/checkout@v4
3434

.github/workflows/check_diffs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Check library diffs
2+
name: CI
33

44
on:
55
push:
@@ -32,6 +32,7 @@ jobs:
3232
outputs:
3333
dirs-to-run: ${{ steps.set-matrix.outputs.dirs-to-run }}
3434
ci:
35+
name: cd ${{ matrix.working-directory }}
3536
needs: [ build ]
3637
strategy:
3738
matrix:

0 commit comments

Comments
 (0)