A template for LangChain apps!
- Docker containment
- Debugging in Visual Studio Code
- NVIDIA driver support
- Streamlit UI support
- Install:
- Docker
- Docker Compose (if it's not included with your Docker distribution)
- Visual Studio Code
- The Python extension for Visual Studio Code
- For NVIDIA driver support, set up the NVIDIA Container Toolkit for Docker.
-
Clone this repo:
git clone https://whatever-the-url/of-this-repo-is.git
-
Open the repo folder in Visual Studio Code.
-
Create a file named
.env
for your API keys and other secrets (it should be ignored by GIT and Docker). To run the demo app, you should at least provide an OpenAI key. For example:OPENAI_API_KEY=my-openai-key
-
Configure options in
.vscode/settings.json
-
Hit F5 to say hello to an AI!
-
Start developing your app in the
Source
folder.
.vscode
– configuration for VS Codesettings.json
– Includes LangChainTemplate feature settings
Data/Home
– the container's home directory (mounted to/home/user
as read/write)Data/Models
– a place to put big files (mounted to/data/models
as read-only)Source
packages
– a place to organise custom packages for your appmain.py
– your app's main entrypointrequirements.txt
– a PIP requirements file for your app's package dependenciesHome.py
– the home page for streamlit appspages/*.py
– additional pages for streamlit apps
- Streamlit CSS template
- Offline model installer
- GPU demo
- HTTPS
- Testing framework
- UI authentication (e.g. Streamlit-Authenticator)
- Update guide
- Improve feature selection (more features and less spaghetti!)