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.
langchain-hub/README.md

33 lines
1.2 KiB
Markdown

2 years ago
# LangChainHub
2 years ago
[Warning: very beta, may change drastically]
2 years ago
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.
2 years ago
2 years ago
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.
2 years ago
2 years ago
## 📖 Prompts
2 years ago
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:
2 years ago
```python
2 years ago
from langchain.prompts import load_prompt
2 years ago
prompt = load_prompt('lc://prompts/path/to/file.json')
2 years ago
```
2 years ago
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.
2 years ago
2 years ago
For more detailed information on how prompts are organized in the Hub, and how best to upload one, please see the documentation [here](./prompts/README.md)
2 years ago
2 years ago
## 🔗 Chains
Coming soon!
2 years ago
## 🤖 Agents
2 years ago
Coming soon!