Skip to content

Commit 9d4b06f

Browse files
Merge branch 'langchain-ai:master' into master
2 parents 704545b + 239f0a6 commit 9d4b06f

File tree

2,381 files changed

+278488
-101902
lines changed

Some content is hidden

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

2,381 files changed

+278488
-101902
lines changed

.github/CONTRIBUTING.md

+1-40
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,4 @@
33
Hi there! Thank you for even being interested in contributing to LangChain.
44
As an open-source project in a rapidly developing field, we are extremely open to contributions, whether they involve new features, improved infrastructure, better documentation, or bug fixes.
55

6-
To learn about how to contribute, please follow the [guides here](https://python.langchain.com/docs/contributing/)
7-
8-
## 🗺️ Guidelines
9-
10-
### 👩‍💻 Ways to contribute
11-
12-
There are many ways to contribute to LangChain. Here are some common ways people contribute:
13-
14-
- [**Documentation**](https://python.langchain.com/docs/contributing/documentation): Help improve our docs, including this one!
15-
- [**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/integrations): Help us integrate with your favorite vendors and tools.
17-
18-
### 🚩GitHub Issues
19-
20-
Our [issues](https://github.com/langchain-ai/langchain/issues) page is kept up to date with bugs, improvements, and feature requests.
21-
22-
There is a taxonomy of labels to help with sorting and discovery of issues of interest. Please use these to help organize issues.
23-
24-
If you start working on an issue, please assign it to yourself.
25-
26-
If you are adding an issue, please try to keep it focused on a single, modular bug/improvement/feature.
27-
If two issues are related, or blocking, please link them rather than combining them.
28-
29-
We will try to keep these issues as up-to-date as possible, though
30-
with the rapid rate of development in this field some may get out of date.
31-
If you notice this happening, please let us know.
32-
33-
### 🙋Getting Help
34-
35-
Our goal is to have the simplest developer setup possible. Should you experience any difficulty getting setup, please
36-
contact a maintainer! Not only do we want to help get you unblocked, but we also want to make sure that the process is
37-
smooth for future contributors.
38-
39-
In a similar vein, we do enforce certain linting, formatting, and documentation standards in the codebase.
40-
If you are finding these difficult (or even just annoying) to work with, feel free to contact a maintainer for help -
41-
we do not want these to get in the way of getting good code into the codebase.
42-
43-
### Contributor Documentation
44-
45-
To learn about how to contribute, please follow the [guides here](https://python.langchain.com/docs/contributing/)
6+
To learn how to contribute to LangChain, please follow the [contribution guide here](https://python.langchain.com/docs/contributing/).

.github/DISCUSSION_TEMPLATE/q-a.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ body:
33
- type: markdown
44
attributes:
55
value: |
6-
Thanks for your interest in 🦜️🔗 LangChain!
6+
Thanks for your interest in LangChain 🦜️🔗!
77
88
Please follow these instructions, fill every question, and do every step. 🙏
99
1010
We're asking for this because answering questions and solving problems in GitHub takes a lot of time --
11-
this is time that we cannot spend on adding new features, fixing bugs, write documentation or reviewing pull requests.
11+
this is time that we cannot spend on adding new features, fixing bugs, writing documentation or reviewing pull requests.
1212
13-
By asking questions in a structured way (following this) it will be much easier to help you.
13+
By asking questions in a structured way (following this) it will be much easier for us to help you.
1414
15-
And there's a high chance that you will find the solution along the way and you won't even have to submit it and wait for an answer. 😎
15+
There's a high chance that by following this process, you'll find the solution on your own, eliminating the need to submit a question and wait for an answer. 😎
1616
17-
As there are too many questions, we will **DISCARD** and close the incomplete ones.
17+
As there are many questions submitted every day, we will **DISCARD** and close the incomplete ones.
1818
1919
That will allow us (and others) to focus on helping people like you that follow the whole process. 🤓
2020

.github/ISSUE_TEMPLATE/bug-report.yml

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ body:
3535
required: true
3636
- label: I am sure that this is a bug in LangChain rather than my code.
3737
required: true
38+
- label: The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
39+
required: true
3840
- type: textarea
3941
id: reproduction
4042
validations:

.github/ISSUE_TEMPLATE/documentation.yml

+34-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,45 @@ title: "DOC: <Please write a comprehensive title after the 'DOC: ' prefix>"
44
labels: [03 - Documentation]
55

66
body:
7+
- type: markdown
8+
attributes:
9+
value: >
10+
Thank you for taking the time to report an issue in the documentation.
11+
12+
Only report issues with documentation here, explain if there are
13+
any missing topics or if you found a mistake in the documentation.
14+
15+
Do **NOT** use this to ask usage questions or reporting issues with your code.
16+
17+
If you have usage questions or need help solving some problem,
18+
please use [GitHub Discussions](https://github.com/langchain-ai/langchain/discussions).
19+
20+
If you're in the wrong place, here are some helpful links to find a better
21+
place to ask your question:
22+
23+
[LangChain documentation with the integrated search](https://python.langchain.com/docs/get_started/introduction),
24+
[API Reference](https://api.python.langchain.com/en/stable/),
25+
[GitHub search](https://github.com/langchain-ai/langchain),
26+
[LangChain Github Discussions](https://github.com/langchain-ai/langchain/discussions),
27+
[LangChain Github Issues](https://github.com/langchain-ai/langchain/issues?q=is%3Aissue),
28+
[LangChain ChatBot](https://chat.langchain.com/)
29+
- type: checkboxes
30+
id: checks
31+
attributes:
32+
label: Checklist
33+
description: Please confirm and check all the following options.
34+
options:
35+
- label: I added a very descriptive title to this issue.
36+
required: true
37+
- label: I included a link to the documentation page I am referring to (if applicable).
38+
required: true
739
- type: textarea
840
attributes:
941
label: "Issue with current documentation:"
1042
description: >
1143
Please make sure to leave a reference to the document/code you're
12-
referring to.
13-
44+
referring to. Feel free to include names of classes, functions, methods
45+
or concepts you'd like to see documented more.
1446
- type: textarea
1547
attributes:
1648
label: "Idea or request for content:"

.github/ISSUE_TEMPLATE/privileged.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body:
99
If you are not a LangChain maintainer or were not asked directly by a maintainer to create an issue, then please start the conversation in a [Question in GitHub Discussions](https://github.com/langchain-ai/langchain/discussions/categories/q-a) instead.
1010
1111
You are a LangChain maintainer if you maintain any of the packages inside of the LangChain repository
12-
or are a regular contributor to LangChain with previous merged merged pull requests.
12+
or are a regular contributor to LangChain with previous merged pull requests.
1313
- type: checkboxes
1414
id: privileged
1515
attributes:

.github/PULL_REQUEST_TEMPLATE.md

+21-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
1-
<!-- Thank you for contributing to LangChain!
1+
Thank you for contributing to LangChain!
22

3-
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
3+
- [ ] **PR title**: "package: description"
4+
- Where "package" is whichever of langchain, community, core, experimental, etc. is being modified. Use "docs: ..." for purely docs changes, "templates: ..." for template changes, "infra: ..." for CI changes.
5+
- Example: "community: add foobar LLM"
46

5-
Replace this entire comment with:
6-
- **Description:** a description of the change,
7-
- **Issue:** the issue # it fixes if applicable,
8-
- **Dependencies:** any dependencies required for this change,
9-
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
107

11-
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
8+
- [ ] **PR message**: ***Delete this entire checklist*** and replace with
9+
- **Description:** a description of the change
10+
- **Issue:** the issue # it fixes, if applicable
11+
- **Dependencies:** any dependencies required for this change
12+
- **Twitter handle:** if your PR gets announced, and you'd like a mention, we'll gladly shout you out!
1213

13-
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
1414

15-
If you're adding a new integration, please include:
15+
- [ ] **Add tests and docs**: If you're adding a new integration, please include
1616
1. a test for the integration, preferably unit tests that do not rely on network access,
1717
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
1818

19-
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
20-
-->
19+
20+
- [ ] **Lint and test**: Run `make format`, `make lint` and `make test` from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/
21+
22+
Additional guidelines:
23+
- Make sure optional dependencies are imported within a function.
24+
- Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests.
25+
- Most PRs should not touch more than one package.
26+
- Changes should be backwards compatible.
27+
- If you are adding something to community, do not re-import it in langchain.
28+
29+
If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, hwchase17.

.github/actions/people/Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM python:3.9
2+
3+
RUN pip install httpx PyGithub "pydantic==2.0.2" pydantic-settings "pyyaml>=5.3.1,<6.0.0"
4+
5+
COPY ./app /app
6+
7+
CMD ["python", "/app/main.py"]

.github/actions/people/action.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Adapted from https://github.com/tiangolo/fastapi/blob/master/.github/actions/people/action.yml
2+
name: "Generate LangChain People"
3+
description: "Generate the data for the LangChain People page"
4+
author: "Jacob Lee <jacob@langchain.dev>"
5+
inputs:
6+
token:
7+
description: 'User token, to read the GitHub API. Can be passed in using {{ secrets.LANGCHAIN_PEOPLE_GITHUB_TOKEN }}'
8+
required: true
9+
runs:
10+
using: 'docker'
11+
image: 'Dockerfile'

0 commit comments

Comments
 (0)