jglowa commited on
Commit
acc5ae8
verified
1 Parent(s): 8357a2b

Update prosty-rag.cmd

Browse files
Files changed (1) hide show
  1. prosty-rag.cmd +4 -4
prosty-rag.cmd CHANGED
@@ -4,12 +4,12 @@
4
  :; embedfile="bge-m3.embedfile"
5
  :; dbfile="prosty-rag.db"
6
  :; indeksator="indeksator.cmd"
7
- :; topK=5
8
  :; [ ! -f $llamafile ] && echo Pobieranie $llamafile... && curl -Lo $llamafile https://huggingface.co/jglowa/prosty-rag/resolve/main/prosty-rag.llamafile?download=true && chmod +x $llamafile && echo Gotowe!
9
  :; [ ! -f $embedfile ] && echo Pobieranie $embedfile... && curl -Lo $embedfile https://huggingface.co/asg017/embedfile/resolve/refs%2Fpr%2F2/bge-m3.embedfile?download=true && chmod +x $embedfile && echo Gotowe!
10
  :; [ ! -f $indeksator ] && echo Pobieranie $indeksator... && curl -Lo $indeksator https://huggingface.co/jglowa/prosty-rag/resolve/main/indeksator.cmd?download=true && chmod +x $indeksator && echo Gotowe!
11
  :; [ ! -f $dbfile ] && ./$indeksator
12
- :; read -p "Wpisz pytanie: " query
13
  :; [ -z "$query" ] && exit 0
14
  :; prompt="Jeste艣 pomocnym asystentem. Odpowiedz na pytanie u偶ytkownika korzystaj膮c z poni偶szego kontekstu, zawieraj膮cego wybrane fragmenty plik贸w. Na ko艅cu podaj odwo艂anie do pliku 藕r贸d艂a. Nie zmy艣laj.\n\n Kontekst:\n"
15
  :; echo "Wyszukiwanie w bazie danych..."
@@ -22,12 +22,12 @@ set llamafile=prosty-rag.llamafile
22
  set embedfile=bge-m3.embedfile
23
  set dbfile=prosty-rag.db
24
  set indeksator=indeksator.cmd
25
- set topK=5
26
  if not exist %llamafile% echo Pobieranie %llamafile%... && curl -Lo %llamafile% https://huggingface.co/jglowa/prosty-rag/resolve/main/prosty-rag.llamafile?download=true && echo Gotowe^!
27
  if not exist %embedfile% echo Pobieranie %embedfile%... && curl -Lo %embedfile% https://huggingface.co/asg017/embedfile/resolve/refs%2Fpr%2F2/bge-m3.embedfile?download=true && echo Gotowe^!
28
  if not exist %indeksator% echo Pobieranie %indeksator%... && curl -Lo %indeksator% https://huggingface.co/jglowa/prosty-rag/resolve/main/indeksator.cmd?download=true && echo Gotowe^!
29
  if not exist %dbfile% call %indeksator%
30
- set /p query=Wpisz pytanie:
31
  if "%query%"=="" goto :eof
32
  set "prompt=Jeste艣 pomocnym asystentem. Odpowiedz na pytanie u偶ytkownika korzystaj膮c z poni偶szego kontekstu, zawieraj膮cego wybrane fragmenty plik贸w. Na ko艅cu podaj odwo艂anie do pliku 藕r贸d艂a. Nie zmy艣laj.\n\n Kontekst:\n"
33
  set line=0
 
4
  :; embedfile="bge-m3.embedfile"
5
  :; dbfile="prosty-rag.db"
6
  :; indeksator="indeksator.cmd"
7
+ :; topK=3
8
  :; [ ! -f $llamafile ] && echo Pobieranie $llamafile... && curl -Lo $llamafile https://huggingface.co/jglowa/prosty-rag/resolve/main/prosty-rag.llamafile?download=true && chmod +x $llamafile && echo Gotowe!
9
  :; [ ! -f $embedfile ] && echo Pobieranie $embedfile... && curl -Lo $embedfile https://huggingface.co/asg017/embedfile/resolve/refs%2Fpr%2F2/bge-m3.embedfile?download=true && chmod +x $embedfile && echo Gotowe!
10
  :; [ ! -f $indeksator ] && echo Pobieranie $indeksator... && curl -Lo $indeksator https://huggingface.co/jglowa/prosty-rag/resolve/main/indeksator.cmd?download=true && chmod +x $indeksator && echo Gotowe!
11
  :; [ ! -f $dbfile ] && ./$indeksator
12
+ :; read -p "Zadaj pytanie: " query
13
  :; [ -z "$query" ] && exit 0
14
  :; prompt="Jeste艣 pomocnym asystentem. Odpowiedz na pytanie u偶ytkownika korzystaj膮c z poni偶szego kontekstu, zawieraj膮cego wybrane fragmenty plik贸w. Na ko艅cu podaj odwo艂anie do pliku 藕r贸d艂a. Nie zmy艣laj.\n\n Kontekst:\n"
15
  :; echo "Wyszukiwanie w bazie danych..."
 
22
  set embedfile=bge-m3.embedfile
23
  set dbfile=prosty-rag.db
24
  set indeksator=indeksator.cmd
25
+ set topK=3
26
  if not exist %llamafile% echo Pobieranie %llamafile%... && curl -Lo %llamafile% https://huggingface.co/jglowa/prosty-rag/resolve/main/prosty-rag.llamafile?download=true && echo Gotowe^!
27
  if not exist %embedfile% echo Pobieranie %embedfile%... && curl -Lo %embedfile% https://huggingface.co/asg017/embedfile/resolve/refs%2Fpr%2F2/bge-m3.embedfile?download=true && echo Gotowe^!
28
  if not exist %indeksator% echo Pobieranie %indeksator%... && curl -Lo %indeksator% https://huggingface.co/jglowa/prosty-rag/resolve/main/indeksator.cmd?download=true && echo Gotowe^!
29
  if not exist %dbfile% call %indeksator%
30
+ set /p query=Zadaj pytanie:
31
  if "%query%"=="" goto :eof
32
  set "prompt=Jeste艣 pomocnym asystentem. Odpowiedz na pytanie u偶ytkownika korzystaj膮c z poni偶szego kontekstu, zawieraj膮cego wybrane fragmenty plik贸w. Na ko艅cu podaj odwo艂anie do pliku 藕r贸d艂a. Nie zmy艣laj.\n\n Kontekst:\n"
33
  set line=0