|
--- |
|
sidebar_position: 0.5 |
|
--- |
|
|
|
|
|
If you plan on contributing to LangChain code or documentation, it can be useful |
|
to understand the high level structure of the repository. |
|
|
|
LangChain is organized as a [monorepo](https://en.wikipedia.org/wiki/Monorepo) that contains multiple packages. |
|
You can check out our [installation guide](/docs/how_to/installation/) for more on how they fit together. |
|
|
|
Here's the structure visualized as a tree: |
|
|
|
```text |
|
. |
|
βββ cookbook |
|
βββ docs |
|
βββ libs |
|
β βββ langchain |
|
β β βββ langchain |
|
β β βββ tests/unit_tests |
|
β β βββ tests/integration_tests |
|
β βββ community |
|
β β βββ langchain-community |
|
β βββ core |
|
β β βββ langchain-core |
|
β βββ experimental |
|
β β βββ langchain-experimental |
|
| βββ cli |
|
β β βββ langchain-cli |
|
β βββ text-splitters |
|
β β βββ langchain-text-splitters |
|
β βββ standard-tests |
|
β β βββ langchain-standard-tests |
|
β βββ partners |
|
β βββ langchain-partner-1 |
|
β βββ langchain-partner-2 |
|
β βββ ... |
|
β |
|
βββ templates |
|
``` |
|
|
|
The root directory also contains the following files: |
|
|
|
* `pyproject.toml`: Dependencies for building docs and linting docs, cookbook. |
|
* `Makefile`: A file that contains shortcuts for building, linting and docs and cookbook. |
|
|
|
There are other files in the root directory level, but their presence should be self-explanatory. Feel free to browse around! |
|
|
|
|
|
|
|
The `/docs` directory contains the content for the documentation that is shown |
|
at https://python.langchain.com/ and the associated API Reference https://python.langchain.com/v0.2/api_reference/langchain/index.html. |
|
|
|
See the [documentation](/docs/contributing/documentation/) guidelines to learn how to contribute to the documentation. |
|
|
|
|
|
|
|
The `/libs` directory contains the code for the LangChain packages. |
|
|
|
To learn more about how to contribute code see the following guidelines: |
|
|
|
- [Code](/docs/contributing/code/): Learn how to develop in the LangChain codebase. |
|
- [Integrations](./integrations.mdx): Learn how to contribute to third-party integrations to `langchain-community` or to start a new partner package. |
|
- [Testing](./testing.mdx): Guidelines to learn how to write tests for the packages. |
|
|