Add support for ec runserver command (#1112)
This commit is contained in:
35
docs/get-started/full-stack.mdx
Normal file
35
docs/get-started/full-stack.mdx
Normal 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.
|
||||
|
||||

|
||||
|
||||
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:
|
||||
|
||||

|
||||
BIN
docs/images/fullstack-chunks.png
Normal file
BIN
docs/images/fullstack-chunks.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 758 KiB |
BIN
docs/images/fullstack.png
Normal file
BIN
docs/images/fullstack.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 605 KiB |
@@ -63,6 +63,7 @@
|
||||
"get-started/quickstart",
|
||||
"get-started/introduction",
|
||||
"get-started/faq",
|
||||
"get-started/full-stack",
|
||||
{
|
||||
"group": "🔗 Integrations",
|
||||
"pages": [
|
||||
|
||||
Reference in New Issue
Block a user