儲存庫結構
如果您計劃貢獻 LangChain 程式碼或文件,了解儲存庫的高階結構會很有幫助。
LangChain 組織為包含多個套件的 monorepo。您可以查看我們的安裝指南,以了解它們如何組合在一起。
以下是以樹狀結構視覺化的結構
.
├── cookbook # Tutorials and examples
├── docs # Contains content for the documentation here: https://langchain-python.dev.org.tw/
├── 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.
根目錄也包含以下檔案
pyproject.toml
:用於建立文件和檢查文件、cookbook 的相依性。Makefile
:包含用於建立、檢查及文件和 cookbook 的捷徑的檔案。
根目錄層級還有其他檔案,但它們的存在應該是不言自明的。隨意瀏覽!
文件
/docs
目錄包含 https://langchain-python.dev.org.tw/ 上顯示的文件內容,以及相關的 API 參考 https://langchain-python.dev.org.tw/api_reference/langchain/index.html。
請參閱文件指南,了解如何貢獻文件。
程式碼
/libs
目錄包含 LangChain 套件的程式碼。
若要了解更多關於如何貢獻程式碼,請參閱以下指南