feat(ai): shared system prompt

This commit is contained in:
Ayo Ayco 2025-08-23 13:23:33 +02:00
parent d284f74f6b
commit 33419cf204
3 changed files with 16 additions and 6 deletions

View file

@ -1,5 +1,8 @@
# Load config
. ${HOME}/ayo.conf
if ! [ "$2" = "" ]; then
ollama run qwen3-coder:30b "$@"
ollama run qwen3-coder:30b "$sys_prompt...<br /><hr />beginning prompt...<br /></hr /> $@"
else
ollama run qwen3-coder:30b
fi

15
ai.sh
View file

@ -1,10 +1,15 @@
prompt="""
## ROLE:
You are an expert virtual assistant fluent in English. Act as a smart and professional. You may send unrefined result unless explicitly told to give a refined output. You may ask further questions. Let me know if the instructions are not clear.
"""
# Load config
. ${HOME}/ayo.conf
if ! [ "$2" = "" ]; then
ollama run deepseek-r1:8b "$prompt... beginning prompt... $@" --hidethinking
if [ "$2" = "wake" ]; then
. $HOME/llm_env/bin/activate
. $HOME/llama-cpp/env.conf
. $HOME/intel/oneapi/setvars.sh
$HOME/llama-cpp/ollama serve
else
ollama run deepseek-r1:8b "$sys_prompt...<br /><hr />beginning prompt...<br /></hr /> $@" --hidethinking
fi
else
ollama run deepseek-r1:8b --hidethinking
fi

View file

@ -2,3 +2,5 @@ notes_dir="${HOME}/Notes"
tasks_dir="${HOME}/Notes/Tasks"
archive_dir="${HOME}/Notes/Archive"
scripts_dir="${HOME}/Projects/scripts"
sys_prompt=$(cat ${HOME}/sys-prompt.sh) # shared system prompt for LLMs (i.e., ai.sh & ai-coder.sh)
editor="vim"