langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
92.34k stars 14.76k forks source link

DOC: Documenting the use of subdirectory for template installation with 'langchain app add' #23777

Open norisuke3 opened 2 months ago

norisuke3 commented 2 months ago

URL

No response

Checklist

Issue with current documentation:

Description: I recently discovered a very useful feature in the LangChain CLI that allows templates to be installed from a specific subdirectory within a repository using a URL fragment, like so: git+ssh://git@github.com/norisuke3/llm.git#subdirectory=templates/japanese-speak

However, I was unable to find any documentation on this feature in the current LangChain documentation, and I had to dig into the source code to find out how to use it. This feature is incredibly useful for managing multiple templates in a single repository and would greatly benefit other users if it were documented.

Proposed Solution: Add a section in the documentation that explains how to install templates from a specific subdirectory within a repository using the URL fragment notation. Good place to put this description can be adding a new page under a section of Additional Resources in this page?

Example: langchain app add "git+ssh://git@github.com/norisuke3/llm.git#subdirectory=templates/japanese-speak"

Additional Context: This feature allows users to manage and install multiple templates from a single repository, which is a common use case for organizing LangChain templates. Including this in the documentation would improve user experience and reduce the need for source code exploration.

Idea or request for content:

No response

norisuke3 commented 2 months ago

Please create a sample repository for the documentation rather than using my repository used in my issue report. Thank you!