You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services/app/README.md
+1-116Lines changed: 1 addition & 116 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,119 +8,4 @@ Create a copy of `.env.example` with
8
8
cp .env.example .env
9
9
```
10
10
11
-
Install dependencies with `npm i` and start the dev server `npm run dev`.
12
-
13
-
### Building Electron app
14
-
15
-
> [!IMPORTANT]
16
-
> Make sure to install the dependencies and copy the `.env.example` before continuing as [shown above](#developing).
17
-
>
18
-
> Once copied, change the following values in the `.env` file as shown here:
19
-
> ```bash
20
-
> PUBLIC_JAMAI_URL="http://localhost:6969"
21
-
> PUBLIC_IS_SPA="true"
22
-
> CHECK_ORIGIN="false"
23
-
>```
24
-
25
-
Ensure that all cloud modules are removed from the project by running `scripts/remove_cloud_modules.sh`whilein the root directory. Cloud frontend cannot be built into static file for a single-page application.
26
-
27
-
The following is an equivalent script that can be run in PowerShell for building on Windows by running `scripts/remove_cloud_modules.ps1`:
Next, run the following to build the app in whatever OS you're currently in:
38
-
39
-
```bash
40
-
cd services/app
41
-
npm run package
42
-
```
43
-
44
-
The Electron Forge Package command packages the app into platform-specific executables. To create distributables, run `npm run make`. [See docs](https://www.electronforge.io/cli#package#:~:text=Please%20note%20that%20this%20does%20not%20make%20a%20distributable%20format.%20To%20make%20proper%20distributables%2C%20please%20use%20the%20Make%20command.)
45
-
46
-
Once done, the packaged app will be in `services/app/build-electron`.
3. Copy the executable into `services\app\build-electron\make\zip\win32\x64\jamaibase-app-win32-x64-0.2.0` (doing it this way speeds up compilation of the electron app) *Compiling through the electron-forge is too slow*:
63
-
- `infinity_server` (pyinstaller compile all the python services).
64
-
- `ellm_api_server` (pyinstaller compile all the python services).
65
-
- `docio` (pyinstaller compile all the python services).
66
-
- `unstructuredio_api` (pyinstaller compile all the python services).
67
-
- `api` (pyinstaller compile all the python services).
68
-
69
-
4. Download the embedding model and, reranker model into `services\app\build-electron\make\zip\win32\x64\jamaibase-app-win32-x64-0.2.0`.
70
-
```powershell
71
-
conda create -n hfcli python=3.10
72
-
conda activate hfcli
73
-
pip install -U "huggingface_hub[cli]"
74
-
cd .\services\app\build-electron\make\zip\win32\x64\jamaibase-app-win32-x64-0.2.0\resources
0 commit comments