You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Harrison Chase 8bb3109b7f cr 1 year ago
.github/workflows cr 1 year ago
ci_scripts cr 1 year ago
prompts cr 1 year ago
Makefile cr 1 year ago
README.md cr 1 year ago
readme_template.md update readmes 1 year ago

README.md

LangChainHub

[Warning: very beta, may change drastically]

Taking inspiration from Hugging Face Hub, LangChainHub is collection of all artifacts useful for working with LangChain primitives such as prompts, chains and agents. The goal of this repository is to be a central resource for sharing and discovering high quality prompts, chains and agents that combine together to form complex LLM applications.

We are starting off the hub with a collection of prompts, and we look forward to the LangChain community adding to this collection. We hope to expand to chains and agents shortly.

📖 Prompts

At a high level, prompts are organized by use case inside the prompts directory. To load a prompt in LangChain, you should use the following code snippet:

from langchain.prompts import load_prompt

prompt = load_prompt('lc://prompts/path/to/file.json')

In addition to prompt files themselves, each sub-directory also contains a README explaining how best to use that prompt in the appropriate LangChain chain.

For more detailed information on how prompts are organized in the Hub, and how best to upload one, please see the documentation here

🔗 Chains

Coming soon!

🤖 Agents

Coming soon!