| :; # Prosty RAG v0.2 - Jerzy Głowacki na licencji Apache 2.0 | |
| :; # *NIX: | |
| :; [ ! -f "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" ] && echo Pobieranie Bielik-4.5B-v3.0-Instruct.gguf... && curl -Lo "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" https://huggingface.co/gaianet/Bielik-4.5B-v3.0-Instruct-GGUF/resolve/main/Bielik-4.5B-v3.0-Instruct-Q6_K.gguf?download=true && echo Gotowe! | |
| :; [ ! -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 llamafile 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 llamafile 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... && ./zipalign -j0 prosty-rag.llamafile "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" && ./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: | |
| @if not exist "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" echo Pobieranie Bielik-4.5B-v3.0-Instruct.gguf... && curl -Lo "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" https://huggingface.co/gaianet/Bielik-4.5B-v3.0-Instruct-GGUF/resolve/main/Bielik-4.5B-v3.0-Instruct-Q6_K.gguf?download=true && echo Gotowe! | |
| @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... && zipalign -j0 prosty-rag.llamafile "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" && zipalign prosty-rag.llamafile .args www/chatbot.js && echo Gotowe! Uruchom prosty-rag.cmd i otwórz http://localhost:8080 w przeglądarce internetowej. | |