[Unit] Description=Obsidian Vault Reindex Endpoint After=network.target [Service] Type=simple ExecStart=/usr/bin/python3 /home/will/lab/swarm/scripts/obsidian-reindex-server.py Restart=on-failure RestartSec=5 Environment=PORT=18810 Environment=RAG_COLLECTION=obsidian_bge_npu Environment=RAG_EMBED_MODEL=bge-base-en-v1.5-int8-ov Environment=OLLAMA_BASE_URL=http://127.0.0.1:18817 # Request-time second-stage reranking. The :18810 handler keeps vector-order # fallback on reranker timeout/error or missing positive NPU proof. Environment=RAG_RERANK_ENABLED=true Environment=RAG_RERANK_URL=http://127.0.0.1:18818/rerank Environment=RAG_RERANK_INITIAL_K=20 Environment=RAG_RERANK_TOP_K=5 Environment=RAG_RERANK_TIMEOUT_MS=1500 Environment=RAG_RERANK_REQUIRE_NPU_PROOF=true [Install] WantedBy=default.target