Add support for ec runserver command (#1112)

This commit is contained in:
Deshraj Yadav
2024-01-04 15:59:43 +05:30
committed by GitHub
parent a67d902b85
commit 60bbc180ba
6 changed files with 156 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
---
title: '💻 Full stack'
---
Embedchain provides a clean and simple cli utility that lets you create full-stack RAG applications locally with a single comand.
## Prerequisite
Make sure that you have installed the following:
- Embedchain python package (`pip install embedchain`)
- [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) and [Yarn](https://classic.yarnpkg.com/lang/en/docs/install/)
## Get started
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.
Now run the following command:
```bash
ec runserver
```
Once you run this command, Embedchain does the following:
1. Fetch full stack template that uses FastAPI for backend, and Next.JS template for frontend
2. Install necessary requirements
3. Launch the frontend and backend server for you to interact with.
Once you are done, visit `http://localhost:3000` and you will see a chat UI as shown below.
![full stack example](/images/fullstack.png)
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:
![full stack chunks](/images/fullstack-chunks.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 KiB

BIN
docs/images/fullstack.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 KiB

View File

@@ -63,6 +63,7 @@
"get-started/quickstart",
"get-started/introduction",
"get-started/faq",
"get-started/full-stack",
{
"group": "🔗 Integrations",
"pages": [