deploy.mdx 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. ---
  2. title: 🚀 deploy
  3. ---
  4. Using the `deploy()` method, Embedchain allows developers to easily launch their LLM-powered applications on the [Embedchain Platform](https://app.embedchain.ai). This platform facilitates seamless access to your data's context via a free and user-friendly REST API. Once your pipeline is deployed, you can update your data sources at any time.
  5. The `deploy()` method not only deploys your pipeline but also efficiently manages LLMs, vector databases, embedding models, and data syncing, enabling you to focus on querying, chatting, or searching without the hassle of infrastructure management.
  6. ## Usage
  7. ```python
  8. from embedchain import App
  9. # Initialize app
  10. app = App()
  11. # Add data source
  12. app.add("https://www.forbes.com/profile/elon-musk")
  13. # Deploy your pipeline to Embedchain Platform
  14. app.deploy()
  15. # 🔑 Enter your Embedchain API key. You can find the API key at https://app.embedchain.ai/settings/keys/
  16. # ec-xxxxxx
  17. # 🛠️ Creating pipeline on the platform...
  18. # 🎉🎉🎉 Pipeline created successfully! View your pipeline: https://app.embedchain.ai/pipelines/xxxxx
  19. # 🛠️ Adding data to your pipeline...
  20. # ✅ Data of type: web_page, value: https://www.forbes.com/profile/elon-musk added successfully.
  21. ```