steamship-packages / langchain-production-starter

Deploy LangChain Agents and connect them to Telegram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi-Modal LangChain agents in Production

Open in a VS Code Dev Container Steamship

This starter project contains the necessary scaffolding to deploy LangChain Agents with memory and connect them to Telegram.

Get started: https://twitter.com/eniascailliau/status/1658544730324492303

Add/Edit voice: https://twitter.com/eniascailliau/status/1658841969211088905

πŸš€ Features

  • 🧠 Support for OpenAI GPT-4 and GPT-3.5
  • πŸ”— Embeddable chat window
  • πŸ”Œ Connect your chatbot to Telegram
  • πŸ”ˆ Give your Agent a voice
  • πŸ’Έ Moneytize your agent

Quick-start guide πŸ› οΈ

Getting your agent online only takes 4 steps. If not, shoot me a message on Discord. Happy to help you out.

  1. Clone the repository
  2. Add your agent to src/api.py
  3. Install required dependencies: pip install --upgrade -r requirements.txt
  4. Run ship deploy && ship use

Getting started

To run your companion locally:

pip install -r requirements.txt
python src/api.py 

To deploy your companion & connect it to Telegram:

pip install -r requirements.txt
ship deploy && ship use 

You will need to fetch a Telegram key to connect your companion to Telegram. This guide will show you how.

If you want to set-up billing you will need to fetch a payment provider key. This guide will show you how.

Development 😎

..in a Local VS Code Container

Just click here: Open in a VS Code Dev Container

..in a Web VS Code Container

Open in a VS Code Dev Container

..on localhost with your own IDE

Clone this repository, then set up a Python virtual environment with:

pip install -r requirements.txt

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

Happy building! πŸŽ‰

About

Deploy LangChain Agents and connect them to Telegram


Languages

Language:Python 100.0%