diff --git a/common/.config/aichat/config.yaml b/common/.config/aichat/config.yaml index 9d1215a0..6bf99faa 100644 --- a/common/.config/aichat/config.yaml +++ b/common/.config/aichat/config.yaml @@ -15,12 +15,8 @@ clients: models: - name: text-embedding-3-small type: embedding - default_chunk_size: 1024 - max_batch_size: 50 - name: text-embedding-3-large type: embedding - default_chunk_size: 2096 - max_batch_size: 100 - type: openai-compatible name: jina @@ -35,3 +31,5 @@ document_loaders: rag_embedding_model: openai:text-embedding-3-small rag_reranker_model: jina:jina-reranker-v2-base-multilingual +rag_chunk_size: 2048 +rag_chunk_overlap: 128 diff --git a/common/.local/libexec/dwm/dmenumaim b/common/.local/libexec/dwm/dmenumaim index 89c1e0f2..f945797d 100755 --- a/common/.local/libexec/dwm/dmenumaim +++ b/common/.local/libexec/dwm/dmenumaim @@ -3,7 +3,7 @@ # this script provides a menu of screenshot options, using maim # variables -dir=$XDG_PICTURES_DIR/Screenshots +dir="${XDG_PICTURES_DIR}/Screenshots" output="$(date '+%y%m%d-%H%M-%S').png" xclip_cmd="xclip -sel clip -t image/png" @@ -18,9 +18,9 @@ character recognition' case "$( echo "$opts" | xargs -n 1 -d '\n' | dmenu -l 6 -i -p "Screenshot which area?" )" in - "a selected area") maim -usq "$dir/pic-selected-${output}" ;; - "current window") maim -q -d 0.2 -i "$(xdotool getactivewindow)" "$dir/pic-window-${output}" ;; - "full screen") maim -q -d 0.2 "$dir/pic-full-${output}" ;; + "a selected area") maim -usq "${dir}/pic-selected-${output}" ;; + "current window") maim -q -d 0.2 -i "$(xdotool getactivewindow)" "${dir}/pic-window-${output}" ;; + "full screen") maim -q -d 0.2 "${dir}/pic-full-${output}" ;; "character recognition") maim -us | tesseract-ocr - - | xclip -sel clip ;; "a selected area (copy)") maim -u -s | ${xclip_cmd} ;; "current window (copy)") maim -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;; diff --git a/common/.local/libexec/statusbar/sb-nettraf b/common/.local/libexec/statusbar/sb-nettraf index 64931f03..ce74f007 100755 --- a/common/.local/libexec/statusbar/sb-nettraf +++ b/common/.local/libexec/statusbar/sb-nettraf @@ -1,9 +1,7 @@ #!/bin/sh . libsb -# NOTE: This should be executed once per second to get bps - -CACHE=$XDG_RUNTIME_DIR/nettrafcache +CACHE="${XDG_RUNTIME_DIR}/nettrafcache" get_physical_devices() { nmcli -t -f STATE,DEVICE device | awk -F: '$1=="connected" { print $2 }'