deployment.mdx 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ---
  2. title: '🚀 Deployment'
  3. description: 'Deploy your embedchain RAG application to production'
  4. ---
  5. After successfully setting up and testing your Embedchain application locally, the next step is to deploy it to a hosting service to make it accessible to a wider audience. This section offers various options for hosting your app on the [Embedchain platform](https://app.embedchain.ai) or through [self-hosting options](#self-hosting).
  6. ## Option 1: Deploy on Embedchain Platform
  7. Embedchain enables developers to deploy their LLM-powered apps in production using the [Embedchain platform](https://app.embedchain.ai). The platform offers free access to context on your data through its REST API. Once the pipeline is deployed, you can update your data sources anytime after deployment.
  8. See the example below on how to use the deploy your app (for free):
  9. ```python
  10. from embedchain import Pipeline as App
  11. # Initialize app
  12. app = App()
  13. # Add data source
  14. app.add("https://www.forbes.com/profile/elon-musk")
  15. # Deploy your pipeline to Embedchain Platform
  16. app.deploy()
  17. # 🔑 Enter your Embedchain API key. You can find the API key at https://app.embedchain.ai/settings/keys/
  18. # ec-xxxxxx
  19. # 🛠️ Creating pipeline on the platform...
  20. # 🎉🎉🎉 Pipeline created successfully! View your pipeline: https://app.embedchain.ai/pipelines/xxxxx
  21. # 🛠️ Adding data to your pipeline...
  22. # ✅ Data of type: web_page, value: https://www.forbes.com/profile/elon-musk added successfully.
  23. ```
  24. ## Option 2: Self-hosting
  25. You can also deploy Embedchain as a self-hosted service using the dockerized REST API service that we provide. Please follow the [guide here](/examples/rest-api) on how to use the REST API service. Here are some tutorials on how to deploy a containerized application to different platforms like AWS, GCP, Azure etc:
  26. - [AWS EKS](https://docs.aws.amazon.com/eks/latest/userguide/sample-deployment.html)
  27. - [AWS ECS](https://docs.aws.amazon.com/codecatalyst/latest/userguide/deploy-tut-ecs.html)
  28. - [Google GKE](https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app)
  29. - [Azure App Service](https://learn.microsoft.com/en-us/training/modules/deploy-run-container-app-service/)
  30. - [Fly.io](https://fly.io/docs/languages-and-frameworks/python/)
  31. - [Render.com](https://render.com/docs/deploy-an-image)
  32. - [Huggingface Spaces](https://huggingface.co/new-space)
  33. ## Seeking help?
  34. If you run into issues with deployment, please feel free to reach out to us via any of the following methods:
  35. <Snippet file="get-help.mdx" />