full-stack.mdx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. title: '💻 Full stack'
  3. ---
  4. Embedchain provides a clean and simple cli utility that lets you create full-stack RAG applications locally with a single command.
  5. ## Prerequisite
  6. Make sure that you have installed the following:
  7. - Embedchain python package (`pip install embedchain`)
  8. - [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) and [Yarn](https://classic.yarnpkg.com/lang/en/docs/install/)
  9. ## Get started
  10. 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.
  11. Now run the following command:
  12. ```bash
  13. ec runserver
  14. ```
  15. Once you run this command, Embedchain does the following:
  16. 1. Fetch full stack template that uses FastAPI for backend, and Next.JS template for frontend
  17. 2. Install necessary requirements
  18. 3. Launch the frontend and backend server for you to interact with.
  19. Once you are done, visit `http://localhost:3000` and you will see a chat UI as shown below.
  20. ![full stack example](/images/fullstack.png)
  21. You can navigate to [Embedchain admin panel] where you can see the chunks created for your documents that you ingested for your RAG application. Below is a screenshot for the same:
  22. ![full stack chunks](/images/fullstack-chunks.png)