|
:; shopt -s expand_aliases || setopt aliases; alias @set='' @echo='echo' |
|
@echo Prosty RAG v0.4 - Jerzy Glowacki na licencji Apache 2.0 |
|
:; # *NIX: |
|
:; [ ! -f zipalign ] && echo Pobieranie zipalign... && curl -Lo zipalign https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/zipalign-0.9.3 && echo Gotowe! |
|
:; [ ! -f llamafile ] && echo Pobieranie llamafile... && curl -Lo llamafile https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/llamafile-0.9.3 && echo Gotowe! |
|
:; [ ! -f .args ] && echo Pobieranie .args... && curl -Lo .args https://huggingface.co/jglowa/prosty-rag/resolve/main/.args?download=true && echo Gotowe! |
|
:; [ ! -f www/chatbot.js ] && echo Pobieranie www/chatbot.js... && curl --create-dirs -Lo www/chatbot.js https://huggingface.co/jglowa/prosty-rag/resolve/main/www/chatbot.js?download=true && echo Gotowe! |
|
:; chmod +x zipalign llamafile |
|
:; cp llamafile prosty-rag.llamafile |
|
:; echo Budowanie prosty-rag.llamafile... && ./zipalign prosty-rag.llamafile .args www/chatbot.js && echo Gotowe! Uruchom ./prosty-rag.cmd i otwórz http://localhost:8080 w przeglądarce internetowej.; exit $? |
|
:; # Windows: |
|
@echo off |
|
chcp 65001 >nul |
|
if not exist zipalign.exe echo Pobieranie zipalign.exe... && curl -Lo zipalign.exe https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/zipalign-0.9.3 && echo Gotowe! |
|
if not exist llamafile.exe echo Pobieranie llamafile.exe... && curl -Lo llamafile.exe https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/llamafile-0.9.3 && echo Gotowe! |
|
if not exist .args echo Pobieranie .args... && curl -Lo .args https://huggingface.co/jglowa/prosty-rag/resolve/main/.args?download=true && echo Gotowe! |
|
if not exist www\chatbot.js echo Pobieranie www\chatbot.js... && curl --create-dirs -Lo www\chatbot.js https://huggingface.co/jglowa/prosty-rag/resolve/main/www/chatbot.js?download=true && echo Gotowe! |
|
copy /b /y llamafile.exe prosty-rag.llamafile >NUL |
|
echo Budowanie prosty-rag.llamafile... && zipalign prosty-rag.llamafile .args www/chatbot.js && echo Gotowe! Uruchom prosty-rag.cmd i otwórz http://localhost:8080 w przeglądarce internetowej. |
|
|