forked from osi1880vr/prompt_quill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare_global_cache.bat
51 lines (32 loc) · 1.07 KB
/
prepare_global_cache.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@echo off
cd /D "%~dp0"
set PATH=%PATH%;%SystemRoot%\system32
@rem config
set BASE_DIR=%cd%
set CACHE_DIR=%cd%\installer_cache
if not exist "%CACHE_DIR%" (
mkdir "%CACHE_DIR%"
)
if not exist "%CACHE_DIR%/llama_index" (
mkdir "%CACHE_DIR%/llama_index"
)
if not exist "%CACHE_DIR%/qdrant-x86_64-pc-windows-msvc.zip" (
ECHO Download Qdrant Portable Version
curl -L https://github.com/qdrant/qdrant/releases/download/v1.10.0/qdrant-x86_64-pc-windows-msvc.zip --output %CACHE_DIR%/qdrant-x86_64-pc-windows-msvc.zip
) else (
ECHO skipped Download Qdrant Portable Version
)
if not exist "%CACHE_DIR%/dist-qdrant.zip" (
ECHO Download Qdrant Web UI
curl -L https://github.com/qdrant/qdrant-web-ui/releases/download/v0.1.29/dist-qdrant.zip --output %CACHE_DIR%/dist-qdrant.zip
) else (
ECHO skipped Download Qdrant Web UI
)
if not exist "%CACHE_DIR%/data.zip" (
ECHO Download LLama-index QDrant data
curl -L https://civitai.com/api/download/models/567736 --output %CACHE_DIR%/data.zip
) else (
ECHO skipped Download LLama-index QDrant data
)
:end
exit