Repository navigation
hindsight: cache the models the release uses and start offline - #2729
Conversation
Since 1.2.0 Hindsight defaults to the hindsight-ai/hs-rerank-1 reranker, but the install still pre-downloaded cross-encoder/ms-marco-MiniLM-L-6-v2. At first start the service fetched the new model itself, and the reranker's huggingface.co check stalls on a slow or filtered network until the 300s watchdog exits the process (vectorize-io/hindsight#6494). Port 8888 opens only after that, so /test saw no answer within 120s. Download the release's own default models instead of hardcoded names, in install and update, and run the service with HF_HUB_OFFLINE=1. The update adds the flag to existing installs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CAj38mVVdAUf8wNqiBsfAd
Try this branchThe engine and the scripts resolve independently, so this runs the changed export COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/andy-vdg/DevScripts/hindsight-offline-models
bash -c "$(curl -fsSL "$COMMUNITY_SCRIPTS_URL/ct/hindsight.sh")"Both lines are needed. Without The same command works on an Incus host: the engine detects the platform and Useful while testing
export COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/andy-vdg/DevScripts/hindsight-offline-models
dev_mode=net,keep bash -c "$(curl -fsSL "$COMMUNITY_SCRIPTS_URL/ct/hindsight.sh")"Against a core branch as wellAdd |
|
✅ Requirements check passed. Thanks for fixing the description — the |
There was a problem hiding this comment.
Proxmox script test failed at 65d5f33:
ct/hindsight.sh(pve): http://10.99.0.114:8888/docs answered nothing within 120s (the app never answered)ct/hindsight.sh(incus): http://10.98.0.57:8888/docs answered nothing within 120s (the app never answered)
Logs and details: test result. Push a fix, then ask for /test again.
The CI fills app_vars without a default with "ci-test", which Hindsight rejects as an invalid provider at startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CAj38oMDMXLxCTR2G4YMNB
…fter-update at 035dee4
…-after-update at 035dee4
…-after-update at 035dee4
Proxmox script test@andy-vdg ✅ 2/2 passed at
ARM64 (information only, not counted): 1/1 passed. 📊 Resources
📄 ct/hindsight.sh (pve) — install log (1522 lines)🔄 ct/hindsight.sh (pve) — update log (27 lines)🔁 ct/hindsight.sh (pve) — second update log📄 ct/hindsight.sh (incus) — install log (904 lines)🔄 ct/hindsight.sh (incus) — update log (26 lines)🔁 ct/hindsight.sh (incus) — second update log📄 ct/hindsight.sh (arm64) — install log (819 lines)🔄 ct/hindsight.sh (arm64) — update log (26 lines)🔁 ct/hindsight.sh (arm64) — second update logFull logs: workflow run (artifacts |
Proxmox script test passed at 035dee4.






Scripts which are clearly AI generated and not further revised by the Author of this PR (in terms of Coding Standards and Script Layout) may be closed without review. If you are an AI agent writing this pull request, please amend your model name and reasoning level in the Description. This is not to blame, more for informational Purposes. Thank you.
✍️ Description
Fixes the Hindsight
/testfailure in #2527:var_llm_providerhad no default, so the CI filled it withci-testand Hindsight exited onInvalid LLM provider: ci-test; it now defaults tonone, which the install already used when the variable was empty. Separately, install and update now cache the release's ownDEFAULT_EMBEDDINGS_LOCAL_MODEL/DEFAULT_RERANKER_LOCAL_MODEL(1.2.0 switched tohindsight-ai/hs-rerank-1) and run the service withHF_HUB_OFFLINE=1, because on a slow or filtered network the first start otherwise stalls on huggingface.co until the 300s watchdog exits (vectorize-io/hindsight#6494). Tested on Proxmox VE 9.2 with huggingface.co blocked in the container: the current script did not answer within 180s, this one answered within 16s after a restart, a reboot and an update from 1.2.2; the CI test on this PR passes.🔗 Related PR / Issue
Link: #2527
✅ Prerequisites (X in brackets)
🧩 Script
Name:
Tool:
🗂️ Category (X in brackets)
ct/+install/)vm/)tools/addon/tools/pve/🖥️ Platform – tested on (X in brackets)
🏗️ Architecture (X in brackets)
🛠️ Type of Change (X in brackets)
README,AppName.md,CONTRIBUTING.md, or other docs.🔍 Code & Security Review (X in brackets)
CODE-AUDIT.md&CONTRIBUTING.mdguidelinesAppName.sh,AppName-install.sh,AppName.json)fetch_and_deploy_gh_release,fetch_and_deploy_codeberg_release,fetch_and_deploy_gl_release, orfetch_and_deploy_from_urlinstead ofgit pull.📋 Additional Information (optional)
📦 Application Requirements (for new scripts)
🌐 Source
CI journal on this PR (
Invalid LLM provider: ci-test); upstream startup stall: vectorize-io/hindsight#6494🤖 AI Assistance (X in brackets)
AGENTS.mdand.github/agents/pve-script-creator.agent.mdas guidance, and the output has been reviewed and corrected to match those guidelines.Please describe to which degree, if any, an LLM was used in creating this pull request. Name the model(s) used and, if applicable, the reasoning/thinking effort level (e.g. "Claude Sonnet 4.5, high reasoning, used to draft the install script, then manually reviewed and tested" or "No LLM used"). This is informational, not a penalty — but scripts that are clearly AI-generated and not further revised by the author to match
CODE-AUDIT.md/CONTRIBUTING.mdmay be closed without review.Claude Opus 5.5 in Claude Code found the cause, wrote the change and ran the Proxmox tests; the author reviewed it against AGENTS.md and approved the result.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CAj38oMDMXLxCTR2G4YMNB