Skip to content

Commit d076b36

Browse files
authored
Merge branch 'master' into openai-embeddings-not-respecting-chunk-size
2 parents 05fc58b + 4ff576e commit d076b36

File tree

656 files changed

+10078
-4764
lines changed

Some content is hidden

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

656 files changed

+10078
-4764
lines changed

.github/workflows/_release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,11 @@ jobs:
395395
396396
# Checkout the latest package files
397397
rm -rf $GITHUB_WORKSPACE/libs/partners/${{ matrix.partner }}/*
398-
cd $GITHUB_WORKSPACE/libs/partners/${{ matrix.partner }}
399-
git checkout "$LATEST_PACKAGE_TAG" -- .
398+
rm -rf $GITHUB_WORKSPACE/libs/standard-tests/*
399+
cd $GITHUB_WORKSPACE/libs/
400+
git checkout "$LATEST_PACKAGE_TAG" -- standard-tests/
401+
git checkout "$LATEST_PACKAGE_TAG" -- partners/${{ matrix.partner }}/
402+
cd partners/${{ matrix.partner }}
400403
401404
# Print as a sanity check
402405
echo "Version number from pyproject.toml: "
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Check `langchain-core` version equality
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'libs/core/pyproject.toml'
7+
- 'libs/core/langchain_core/version.py'
8+
9+
jobs:
10+
check_version_equality:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Check version equality
17+
run: |
18+
PYPROJECT_VERSION=$(grep -Po '(?<=^version = ")[^"]*' libs/core/pyproject.toml)
19+
VERSION_PY_VERSION=$(grep -Po '(?<=^VERSION = ")[^"]*' libs/core/langchain_core/version.py)
20+
21+
# Compare the two versions
22+
if [ "$PYPROJECT_VERSION" != "$VERSION_PY_VERSION" ]; then
23+
echo "langchain-core versions in pyproject.toml and version.py do not match!"
24+
echo "pyproject.toml version: $PYPROJECT_VERSION"
25+
echo "version.py version: $VERSION_PY_VERSION"
26+
exit 1
27+
else
28+
echo "Versions match: $PYPROJECT_VERSION"
29+
fi

.github/workflows/codspeed.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ on:
1414
jobs:
1515
codspeed:
1616
name: Run benchmarks
17-
runs-on: codspeed-macro
17+
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-codspeed-benchmarks')) || github.event_name == 'workflow_dispatch' || github.event_name == 'push'
18+
runs-on: ubuntu-latest
1819
steps:
1920
- uses: actions/checkout@v4
2021

@@ -40,3 +41,4 @@ jobs:
4041
run: |
4142
cd libs/core
4243
uv run --no-sync pytest ./tests/benchmarks --codspeed
44+
mode: walltime

cookbook/advanced_rag_eval.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"outputs": [],
3131
"source": [
3232
"# lock to 0.10.19 due to a persistent bug in more recent versions\n",
33-
"! pip install \"unstructured[all-docs]==0.10.19\" pillow pydantic lxml pillow matplotlib tiktoken open_clip_torch torch"
33+
"! pip install \"unstructured[all-docs]==0.10.19\" pillow pydantic lxml matplotlib tiktoken open_clip_torch torch"
3434
]
3535
},
3636
{
@@ -409,7 +409,7 @@
409409
" table_summaries,\n",
410410
" tables,\n",
411411
" image_summaries,\n",
412-
" image_summaries,\n",
412+
" img_base64_list,\n",
413413
")"
414414
]
415415
},

docs/docs/how_to/tools_human.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"\n",
1616
"To build a production application, you will need to do more work to keep track of application state appropriately.\n",
1717
"\n",
18-
"We recommend using `langgraph` for powering such a capability. For more details, please see this [guide](https://langchain-ai.github.io/langgraph/how-tos/human-in-the-loop/).\n",
18+
"We recommend using `langgraph` for powering such a capability. For more details, please see this [guide](https://langchain-ai.github.io/langgraph/concepts/human_in_the_loop/).\n",
1919
":::\n"
2020
]
2121
},
@@ -209,7 +209,7 @@
209209
"metadata": {},
210210
"outputs": [
211211
{
212-
"name": "stdin",
212+
"name": "stdout",
213213
"output_type": "stream",
214214
"text": [
215215
"Do you approve of the following tool invocations\n",
@@ -252,7 +252,7 @@
252252
"metadata": {},
253253
"outputs": [
254254
{
255-
"name": "stdin",
255+
"name": "stdout",
256256
"output_type": "stream",
257257
"text": [
258258
"Do you approve of the following tool invocations\n",

0 commit comments

Comments
 (0)