Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lostintangent/codespaces-langchain
🦜🔗 A Codespaces template for getting up-and-running with LangChain in seconds!
https://github.com/lostintangent/codespaces-langchain
codespaces langchain llm
Last synced: 7 days ago
JSON representation
🦜🔗 A Codespaces template for getting up-and-running with LangChain in seconds!
- Host: GitHub
- URL: https://github.com/lostintangent/codespaces-langchain
- Owner: lostintangent
- Created: 2023-01-19T23:07:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-22T19:42:16.000Z (over 1 year ago)
- Last Synced: 2024-10-17T06:56:15.853Z (22 days ago)
- Topics: codespaces, langchain, llm
- Homepage:
- Size: 11.7 KB
- Stars: 109
- Watchers: 3
- Forks: 21
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-langchain-zh - Codespaces Template - langchain?style=social): 一个 Codespaces 模板,帮你在几秒内启动并运行 LangChain! (工具 / 模板)
- awesome-langchain - Codespaces Template - and-running with LangChain in seconds! ![GitHub Repo stars](https://img.shields.io/github/stars/lostintangent/codespaces-langchain?style=social) (Tools / Templates)
- jimsghstars - lostintangent/codespaces-langchain - 🦜🔗 A Codespaces template for getting up-and-running with LangChain in seconds! (Others)
README
# 🦜🔗 Codespaces LangChain Template
This template provides a one-click dev environment for building "LLM apps" with [LangChain](https://github.com/hwchase17/langchain), Codespaces, and GPT-3. With it, you'll get [free access](https://github.blog/changelog/2022-11-09-codespaces-for-free-and-pro-accounts/) to a VS Code-based web editor, complete with a fully-configured Python playground, that includes the neccessary SDKs, libraries, and IDE extensions 🐱💻
## Getting Started
1. Create a repo from this template, by clicking the green `Use this template` button, and selecting `Create a new repository`. Name the repo whatever you'd like 👍
1. In order to interact with GPT-3, you'll need to create an account with [OpenAI](https://openai.com/api/), and generate an API key that LangChain can use. Once you have that, create a new [Codespaces repo secret](https://docs.github.com/en/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-github-codespaces#adding-secrets-for-a-repository) named `OPENAI_API_KEY`, and set it to the value of your API key.
1. Open your new repo in a Codespace by clicking the green `Code` button on the repo's homepage, and selecting `Create codespace on main`
1. Once you're within the web editor, simply open any of the notebooks within the `/examples` folder, and select `Run All` in the notebook's toolbar. From there, you can change any of the prompts and/or code, and then re-run the cell/notebook, in order to get a better intuition for how LangChain can help you build your own custom chains 🚀
> Optionally, if you'd like to explore the sample that automates Google search qierues, create an account with [SerpAPI](https://serpapi.com/), generate an API key, and set it as a Codespaces secret called `SERPAPI_API_KEY`.