File size: 2,852 Bytes
7677e00
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
sidebar_position: 0.5
---
# Repository Structure

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 # Tutorials and examples
β”œβ”€β”€ docs # Contains content for the documentation here: https://python.langchain.com/
β”œβ”€β”€ libs
β”‚   β”œβ”€β”€ langchain
β”‚   β”‚   β”œβ”€β”€ langchain
β”‚   β”‚   β”œβ”€β”€ tests/unit_tests # Unit tests (present in each package not shown for brevity)
β”‚   β”‚   β”œβ”€β”€ tests/integration_tests # Integration tests (present in each package not shown for brevity)
β”‚   β”œβ”€β”€ community # Third-party integrations
β”‚   β”‚   β”œβ”€β”€ langchain-community
β”‚   β”œβ”€β”€ core # Base interfaces for key abstractions
β”‚   β”‚   β”œβ”€β”€ langchain-core
β”‚   β”œβ”€β”€ experimental # Experimental components and chains
β”‚   β”‚   β”œβ”€β”€ langchain-experimental
|   β”œβ”€β”€ cli # Command line interface
β”‚   β”‚   β”œβ”€β”€ langchain-cli
β”‚   β”œβ”€β”€ text-splitters
β”‚   β”‚   β”œβ”€β”€ langchain-text-splitters
β”‚   β”œβ”€β”€ standard-tests
β”‚   β”‚   β”œβ”€β”€ langchain-standard-tests
β”‚   β”œβ”€β”€ partners
β”‚       β”œβ”€β”€ langchain-partner-1
β”‚       β”œβ”€β”€ langchain-partner-2
β”‚       β”œβ”€β”€ ...
β”‚
β”œβ”€β”€ templates # A collection of easily deployable reference architectures for a wide variety of tasks.
```

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!

## Documentation

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.

## Code

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.