Skip to content

Latest commit

 

History

History
93 lines (64 loc) · 2.27 KB

File metadata and controls

93 lines (64 loc) · 2.27 KB

Configuration

Configuration is read from ~/.yaadrc (key = value format). Create it with commented defaults:

yaad config init

Config file (~/.yaadrc)

# yaad configuration

# Ollama server
ollama.url           = http://localhost:11434

# Embedding model — mxbai-embed-large, nomic-embed-text, all-minilm
ollama.embed_model   = mxbai-embed-large

# Chat model — llama3.2:3b, mistral, gemma2:2b, phi3
ollama.chat_model    = llama3.2:3b

# Reminder daemon poll interval
reminder.poll_interval = 30s

# Notifier adapters — comma-separated, all fire together
# cli         — styled box printed to terminal (default, no dependencies)
# notify-send — desktop notification via notify-send (Linux only)
notifier = cli

All keys

Key Default Description
ollama.url http://localhost:11434 Ollama server URL
ollama.embed_model mxbai-embed-large Model for generating embeddings
ollama.chat_model llama3.2:3b Model for answering yaad ask queries
reminder.poll_interval 30s How often the daemon polls for due reminders
notifier cli Notifier adapter(s), comma-separated

Priority

built-in defaults  <  ~/.yaadrc  <  CLI flags

CLI flags override the rc file for a single invocation:

yaad --chat-model mistral ask "what was that command?"
yaad --ollama-url http://192.168.1.5:11434 add "remote ollama note"
yaad --notifier cli,notify-send check

Config commands

yaad config init                            # create ~/.yaadrc with defaults
yaad config list                            # show all set values
yaad config set ollama.chat_model mistral   # update a value
yaad config get ollama.chat_model           # read a value
yaad config path                            # print rc file location

Data storage

Memories are stored at $XDG_DATA_HOME/yaad/memories.db, defaulting to ~/.local/share/yaad/memories.db.


Notifiers

Notifiers are composable — set multiple to fire all at once:

yaad config set notifier cli,notify-send
Adapter Platform Requirement
cli All None — prints a styled box to the terminal
notify-send Linux notify-send must be installed (libnotify-bin)