mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 16:58:28 +00:00
19 lines
341 B
Bash
Executable File
19 lines
341 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Starting Ollama server..."
|
|
ollama serve &
|
|
OLLAMA_PID=$!
|
|
|
|
echo "Waiting for Ollama server to be ready..."
|
|
sleep 5
|
|
|
|
echo "Pulling mxbai-embed-large model..."
|
|
ollama pull mxbai-embed-large
|
|
|
|
echo "Model pulled successfully!"
|
|
echo "Ollama is ready to accept requests."
|
|
|
|
# Keep the Ollama server running
|
|
wait $OLLAMA_PID
|