index-vault.mjs
22 lines 499 B
Raw
sha256:700fafdd1afa490919f9515d660ca6e75456bcd5bb67513abcd8757a634c01f6 docs: record AIP-b SD-21 land (KN #308) Human 11 days ago
1 #!/usr/bin/env node
2 import '../lib/load-env.mjs';
3
4 /**
5 * Index vault: walk Markdown under vault_path → chunk → embed → upsert to Qdrant.
6 * Config: config/local.yaml or env (KNOWTATION_VAULT_PATH, QDRANT_URL).
7 * Exit 0 on success, 2 on failure. SPEC §5; Phase 2.
8 */
9
10 import { runIndex } from '../lib/indexer.mjs';
11
12 async function main() {
13 try {
14 await runIndex();
15 process.exit(0);
16 } catch (e) {
17 console.error('Index failed:', e.message);
18 process.exit(2);
19 }
20 }
21
22 main();
File History 1 commit
sha256:700fafdd1afa490919f9515d660ca6e75456bcd5bb67513abcd8757a634c01f6 docs: record AIP-b SD-21 land (KN #308) Human 11 days ago