feat(ai): shared system prompt
This commit is contained in:
parent
d284f74f6b
commit
33419cf204
3 changed files with 16 additions and 6 deletions
|
@ -1,5 +1,8 @@
|
||||||
|
# Load config
|
||||||
|
. ${HOME}/ayo.conf
|
||||||
|
|
||||||
if ! [ "$2" = "" ]; then
|
if ! [ "$2" = "" ]; then
|
||||||
ollama run qwen3-coder:30b "$@"
|
ollama run qwen3-coder:30b "$sys_prompt...<br /><hr />beginning prompt...<br /></hr /> $@"
|
||||||
else
|
else
|
||||||
ollama run qwen3-coder:30b
|
ollama run qwen3-coder:30b
|
||||||
fi
|
fi
|
||||||
|
|
15
ai.sh
15
ai.sh
|
@ -1,10 +1,15 @@
|
||||||
prompt="""
|
# Load config
|
||||||
## ROLE:
|
. ${HOME}/ayo.conf
|
||||||
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.
|
|
||||||
"""
|
|
||||||
|
|
||||||
if ! [ "$2" = "" ]; then
|
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
|
else
|
||||||
ollama run deepseek-r1:8b --hidethinking
|
ollama run deepseek-r1:8b --hidethinking
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -2,3 +2,5 @@ notes_dir="${HOME}/Notes"
|
||||||
tasks_dir="${HOME}/Notes/Tasks"
|
tasks_dir="${HOME}/Notes/Tasks"
|
||||||
archive_dir="${HOME}/Notes/Archive"
|
archive_dir="${HOME}/Notes/Archive"
|
||||||
scripts_dir="${HOME}/Projects/scripts"
|
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"
|
||||||
|
|
Loading…
Reference in a new issue