Step-1: Create RAG app
We provide a command line utility calledec
in embedchain that inherits the template for gradio.app
platform and help you deploy the app. Follow the instructions to create a gradio.app app using the template provided:
Install embedchain
Create application
app.py
: Contains API app codeembedchain.json
: Contains embedchain specific configuration for deployment (you don’t need to configure this)requirements.txt
: Contains python dependencies for your application
Step-2: Test app locally
You can run the app locally by simply doing:Run locally
Step-3: Deploy to gradio.app
Deploy to gradio.app
gradio deploy
which will prompt you questions and deploy your app directly to huggingface spaces.
