Step-1: Create RAG app
Install embedchain
Create a full stack app using Embedchain CLITo use your hosted embedchain RAG app, you can easily set up a FastAPI server that can be used anywhere.
To easily set up a FastAPI server, check out Get started with Full stack page.Hosting this server on railway is super easy!
Step-2: Set up your project
With Docker
You can create aDockerfile
in the root of the project, with all the instructions. However, this method is sometimes slower in deployment.
Without Docker
By default, Railway uses Python 3.7. Embedchain requires the python version to be >3.9 in order to install. To fix this, create a.python-version
file in the root directory of your project and specify the correct version
.python-version
requirements.txt
file to specify the requirements.
requirements.txt
Step-3: Deploy to Railway 🚀
- Go to https://railway.app and create an account.
- Create a project by clicking on the “Start a new project” button
With Github
SelectEmpty Project
or Deploy from Github Repo
.
You should be all set!
Without Github
You can also use the railway CLI to deploy your apps from the terminal, if you don’t want to connect a git repository. To do this, just run this command in your terminalInstall and set up railway CLI
railway up
to deploy your app.
Deploy