llamaindex vector index, llmindex mangement command

This commit is contained in:
shamoon
2025-04-24 20:51:06 -07:00
parent eb1c49090b
commit 959ebdbb85
12 changed files with 1868 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
#!/command/with-contenv /usr/bin/bash
# shellcheck shell=bash
set -e
cd "${PAPERLESS_SRC_DIR}"
if [[ $(id -u) == 0 ]]; then
s6-setuidgid paperless python3 manage.py document_llmindex "$@"
elif [[ $(id -un) == "paperless" ]]; then
python3 manage.py document_llmindex "$@"
else
echo "Unknown user."
fi