Embedchain has a nice and simple abstraction on top of the render.com tools to let developers deploy RAG application to render.com platform seamlessly.

Follow the instructions given below to deploy your first application quickly:

Step-1: Install render command line

brew tap render-oss/render
brew install render

In case you run into issues, refer to official render.com docs.

Step-2 Create RAG application:

We provide a command line utility called ec in embedchain that inherits the template for render.com platform and help you deploy the app. Follow the instructions to create a render.com app using the template provided:

Create application
pip install embedchain
mkdir my-rag-app
ec create --template=render.com

This create command will open a browser window and ask you to login to your render.com account and will generate a directory structure like this:

โ”œโ”€โ”€ app.py
โ”œโ”€โ”€ .env
โ”œโ”€โ”€ render.yaml
โ”œโ”€โ”€ embedchain.json
โ””โ”€โ”€ requirements.txt

Feel free to edit the files as required.

  • app.py: Contains API app code
  • .env: Contains environment variables for production
  • render.yaml: Contains render.com specific configuration for deployment (configure this according to your needs, follow this for more info)
  • 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
pip install -r requirements.txt
ec dev

Step-4: Deploy to render.com

Before deploying to render.com, you only have to set up one thing.

In the render.yaml file, make sure to modify the repo key by inserting the URL of your Git repository where your application will be hosted. You can create a repository from GitHub or GitLab.

After that, youโ€™re ready to deploy on render.com.

Deploy app
ec deploy

When you run this, it should open up your render dashboard and you can see the app being deployed. You can find your hosted link over there only.

You can also check the logs, monitor app status etc on their dashboard by running command render dashboard.

Seeking help?

If you run into issues with deployment, please feel free to reach out to us via any of the following methods: