Skip to content

amwaters/LangChainTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangChainTemplate

A template for LangChain apps!

Features

  • Docker containment
  • Debugging in Visual Studio Code
  • NVIDIA driver support
  • Streamlit UI support

Quick Start

  1. Install:

  1. Clone this repo:

    git clone https://whatever-the-url/of-this-repo-is.git
  2. Open the repo folder in Visual Studio Code.

  3. 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
  4. Configure options in .vscode/settings.json

  5. Hit F5 to say hello to an AI!

  6. Start developing your app in the Source folder.

Directory

  • .vscode – configuration for VS Code
    • settings.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 app
    • main.py – your app's main entrypoint
    • requirements.txt – a PIP requirements file for your app's package dependencies
    • Home.py – the home page for streamlit apps
    • pages/*.py – additional pages for streamlit apps

Planned Features

  • 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!)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published