跳到主要內容
Open on GitHub

儲存庫結構

如果您計劃貢獻 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 套件的程式碼。

要了解更多關於如何貢獻程式碼的信息,請參閱以下指南

  • 程式碼:了解如何在 LangChain 程式碼庫中開發。
  • 整合:了解如何貢獻第三方整合到 langchain-community 或啟動新的合作夥伴套件。
  • 測試:學習如何為套件編寫測試的指南。

此頁面是否有幫助?