full-stack.mdx 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ---
  2. title: '💻 Full stack'
  3. ---
  4. Get started with full-stack RAG applications using Embedchain's easy-to-use CLI tool. Set up everything with just a few commands, whether you prefer Docker or not.
  5. ## Prerequisites
  6. Choose your setup method:
  7. ### Without Docker
  8. Ensure these are installed:
  9. - Embedchain python package (`pip install embedchain`)
  10. - [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) and [Yarn](https://classic.yarnpkg.com/lang/en/docs/install/)
  11. ### With Docker
  12. Install Docker from [Docker's official website](https://docs.docker.com/engine/install/).
  13. ## Quick Start Guide
  14. ### Setting Up
  15. For the purpose of the demo, you have to set `OPENAI_API_KEY` to start with but you can choose any llm by changing the configuration easily.
  16. ### Installation Commands
  17. <CodeGroup>
  18. ```bash without docker
  19. ec create-app my-app
  20. cd my-app
  21. ec start
  22. ```
  23. ```bash with docker
  24. ec create-app my-app --docker
  25. cd my-app
  26. ec start --docker
  27. ```
  28. </CodeGroup>
  29. ### What Happens Next?
  30. 1. Embedchain fetches a full stack template (FastAPI backend, Next.JS frontend).
  31. 2. Installs required components.
  32. 3. Launches both frontend and backend servers.
  33. ### See It In Action
  34. Open http://localhost:3000 to view the chat UI.
  35. ![full stack example](/images/fullstack.png)
  36. ### Admin Panel
  37. Check out the Embedchain admin panel to see the document chunks for your RAG application.
  38. ![full stack chunks](/images/fullstack-chunks.png)