Skip to content

Commit 2feb704

Browse files
committed
Merge branch 'master' into ssdev
* master: (158 commits) Fix link (langchain-ai#6501) docs/fix links (langchain-ai#6498) Update notebook for MD header splitter and create new cookbook (langchain-ai#6399) Vector store support for Cassandra (langchain-ai#6426) improve documentation on base chain (langchain-ai#6468) fix: change ddg to DDGS (langchain-ai#6480) release 207 (langchain-ai#6488) Add Alibaba Cloud OpenSearch as a new vector store (langchain-ai#6154) fix openai qa chain (langchain-ai#6487) add FunctionMessage support to `_convert_dict_to_message()` in OpenAI chat model (langchain-ai#6382) bump version to 206 (langchain-ai#6465) fix neo4j schema query (langchain-ai#6381) Update serpapi.py Support baidu list type answer_box (langchain-ai#6386) fix: llm caching for replicate (langchain-ai#6396) feat: use latest duckduckgo_search API to call (langchain-ai#6409) Harrison/unstructured page number (langchain-ai#6464) Improve error message (langchain-ai#6275) Fix the issue where ANTHROPIC_API_URL set in environment is not takin… (langchain-ai#6400) Fix broken links in autonomous agents docs (langchain-ai#6398) Update SinglStoreDB vectorstore (langchain-ai#6423) ...
2 parents d00d8ae + c91cf68 commit 2feb704

File tree

1,244 files changed

+38298
-44191
lines changed

Some content is hidden

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

1,244 files changed

+38298
-44191
lines changed

.devcontainer/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Dev container
2+
3+
This project includes a [dev container](https://containers.dev/), which lets you use a container as a full-featured dev environment.
4+
5+
You can use the dev container configuration in this folder to build and run the app without needing to install any of its tools locally! You can use it in [GitHub Codespaces](https://github.com/features/codespaces) or the [VS Code Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
6+
7+
## GitHub Codespaces
8+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/hwchase17/langchain)
9+
10+
You may use the button above, or follow these steps to open this repo in a Codespace:
11+
1. Click the **Code** drop-down menu at the top of https://github.com/hwchase17/langchain.
12+
1. Click on the **Codespaces** tab.
13+
1. Click **Create codespace on master** .
14+
15+
For more info, check out the [GitHub documentation](https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/creating-a-codespace#creating-a-codespace).
16+
17+
## VS Code Dev Containers
18+
[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/hwchase17/langchain)
19+
20+
If you already have VS Code and Docker installed, you can use the button above to get started. This will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
21+
22+
You can also follow these steps to open this repo in a container using the VS Code Dev Containers extension:
23+
24+
1. If this is your first time using a development container, please ensure your system meets the pre-reqs (i.e. have Docker installed) in the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started).
25+
26+
2. Open a locally cloned copy of the code:
27+
28+
- Clone this repository to your local filesystem.
29+
- Press <kbd>F1</kbd> and select the **Dev Containers: Open Folder in Container...** command.
30+
- Select the cloned copy of this folder, wait for the container to start, and try things out!
31+
32+
You can learn more in the [Dev Containers documentation](https://code.visualstudio.com/docs/devcontainers/containers).
33+
34+
## Tips and tricks
35+
36+
* If you are working with the same repository folder in a container and Windows, you'll want consistent line endings (otherwise you may see hundreds of changes in the SCM view). The `.gitattributes` file in the root of this repo will disable line ending conversion and should prevent this. See [tips and tricks](https://code.visualstudio.com/docs/devcontainers/tips-and-tricks#_resolving-git-line-ending-issues-in-containers-resulting-in-many-modified-files) for more info.
37+
* If you'd like to review the contents of the image used in this dev container, you can check it out in the [devcontainers/images](https://github.com/devcontainers/images/tree/main/src/python) repo.

.devcontainer/devcontainer.json

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,36 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2-
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose
33
{
4+
// Name for the dev container
5+
"name": "langchain",
6+
7+
// Point to a Docker Compose file
48
"dockerComposeFile": "./docker-compose.yaml",
9+
10+
// Required when using Docker Compose. The name of the service to connect to once running
511
"service": "langchain",
6-
"workspaceFolder": "/workspaces/langchain",
7-
"name": "langchain",
8-
"customizations": {
9-
"vscode": {
10-
"extensions": [
11-
"ms-python.python"
12-
],
13-
"settings": {
14-
"python.defaultInterpreterPath": "/home/vscode/langchain-py-env/bin/python3.11"
15-
}
16-
}
17-
18-
},
19-
20-
// Features to add to the dev container. More info: https://containers.dev/features.
21-
"features": {},
12+
13+
// The optional 'workspaceFolder' property is the path VS Code should open by default when
14+
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
15+
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
16+
17+
// Prevent the container from shutting down
18+
"overrideCommand": true
19+
20+
// Features to add to the dev container. More info: https://containers.dev/features
21+
// "features": {
22+
// "ghcr.io/devcontainers-contrib/features/poetry:2": {}
23+
// }
2224

2325
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2426
// "forwardPorts": [],
2527

2628
// Uncomment the next line to run commands after the container is created.
2729
// "postCreateCommand": "cat /etc/os-release",
2830

29-
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
30-
// "remoteUser": "devcontainer"
31-
"remoteUser": "vscode",
32-
"overrideCommand": true
31+
// Configure tool-specific properties.
32+
// "customizations": {},
33+
34+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
35+
// "remoteUser": "root"
3336
}

.devcontainer/docker-compose.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ version: '3'
22
services:
33
langchain:
44
build:
5-
dockerfile: .devcontainer/Dockerfile
6-
context: ../
5+
dockerfile: dev.Dockerfile
6+
context: ..
77
volumes:
8-
- ../:/workspaces/langchain
8+
# Update this to wherever you want VS Code to mount the folder of your project
9+
- ..:/workspaces:cached
910
networks:
1011
- langchain-network
1112
# environment:

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto eol=lf
2+
*.{cmd,[cC][mM][dD]} text eol=crlf
3+
*.{bat,[bB][aA][tT]} text eol=crlf

.github/CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ we do not want these to get in the way of getting good code into the codebase.
5959

6060
## 🚀 Quick Start
6161

62+
> **Note:** You can run this repository locally (which is described below) or in a [development container](https://containers.dev/) (which is described in the [.devcontainer folder](https://github.com/hwchase17/langchain/tree/master/.devcontainer)).
63+
6264
This project uses [Poetry](https://python-poetry.org/) as a dependency manager. Check out Poetry's [documentation on how to install it](https://python-poetry.org/docs/#installation) on your system before proceeding.
6365

6466
❗Note: If you use `Conda` or `Pyenv` as your environment / package manager, avoid dependency conflicts by doing the following first:

.github/workflows/linkcheck.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.gitignore

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ instance/
7373

7474
# Sphinx documentation
7575
docs/_build/
76+
docs/docs/_build/
7677

7778
# PyBuilder
7879
target/
@@ -152,4 +153,15 @@ data_map*
152153
\[('_type', 'fake'), ('stop', None)]
153154

154155
# Replit files
155-
*replit*
156+
*replit*
157+
158+
node_modules
159+
docs/.yarn/
160+
docs/node_modules/
161+
docs/.docusaurus/
162+
docs/.cache-loader/
163+
docs/_dist
164+
docs/api_reference/_build
165+
docs/docs_skeleton/build
166+
docs/docs_skeleton/node_modules
167+
docs/docs_skeleton/yarn.lock

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "docs/_docs_skeleton"]
2+
path = docs/_docs_skeleton
3+
url = https://github.com/langchain-ai/langchain-shared-docs
4+
branch = main

.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build:
1212

1313
# Build documentation in the docs/ directory with Sphinx
1414
sphinx:
15-
configuration: docs/conf.py
15+
configuration: docs/api_reference/conf.py
1616

1717
# If using Sphinx, optionally build your docs in additional formats such as PDF
1818
# formats:
@@ -23,4 +23,4 @@ python:
2323
install:
2424
- requirements: docs/requirements.txt
2525
- method: pip
26-
path: .
26+
path: .

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ coverage:
1010

1111
clean: docs_clean
1212

13+
docs_compile:
14+
poetry run nbdoc_build --srcdir $(srcdir)
15+
1316
docs_build:
1417
cd docs && poetry run make html
1518

0 commit comments

Comments
 (0)