Step-1: Install flyctl command line
Step-2: Create RAG app
We provide a command line utility calledec
in embedchain that inherits the template for fly.io
platform and help you deploy the app. Follow the instructions to create a fly.io app using the template provided:
Install embedchain
Create application
Dockerfile
: Defines the steps to setup the applicationapp.py
: Contains API app codefly.toml
: fly.io config file.env
: Contains environment variables for production.env.example
: Contains dummy environment variables (can ignore this file)embedchain.json
: Contains embedchain specific configuration for deployment (you don’t need to configure this)requirements.txt
: Contains python dependencies for your application
Step-3: Test app locally
You can run the app locally by simply doing:Run locally
Step-4: Deploy to fly.io
You can deploy to fly.io using the following command:Deploy app
fly dashboard
.
