Repository Public
1#!/bin/zsh -l2# =============================================================================3# SP BOUCHER | INFRASTRUCTURE & AUTOMATION4# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project : Vrai-Prix8# File : scripts/run-eval-shards.sh9# Module : scripts10# Repository : https://git.spboucher.ai/vrai-prix11# Created : 2026-09-0812# Last Modified : 2026-09-0813#14# Author : Simon-Pierre Boucher15# Position : Professor of Finance16# Institution : Université du Québec en Outaouais (UQO)17# Organization : SP Boucher18# Website : https://spboucher.ai19# Git : https://git.spboucher.ai20#21# Preferred Contact: contact@spboucher.ai22# Technical Contact: dev@spboucher.ai23# Security/Admin : admin@spboucher.ai24#25# Copyright (c) 202626# Simon-Pierre Boucher27# All rights reserved where applicable. This file is governed by the28# applicable project license, copyright notices and relevant law.29# Existing third-party rights and notices remain unaffected.30#31# License : None specified (no license file in this repository)32#33# Do not embed credentials, private keys, access tokens,34# certificates or confidential personal information.35#36# =============================================================================37# END OF SP BOUCHER SOURCE HEADER38# =============================================================================3940# scripts/run-eval-shards.sh — évalue en lot les annonces Immo-Ka (data/immoka.db)41# avec le moteur Vrai-Prix, en N processus parallèles (défaut : 6 shards).42# Portable : s'exécute depuis la racine du dépôt (laptop ou nœud).43# SHARDS=8 scripts/run-eval-shards.sh44# Ensuite : node scripts/build-marche-stats.mjs (table vp_eval + marche-stats.json).45set -u46cd "$(dirname "$0")/.."47N=${SHARDS:-6}48mkdir -p tmp/eval-shards49rm -f tmp/eval-shards/*.jsonl tmp/eval-shards/log-*.txt50for ((i = 0; i < N; i++)); do51 SHARDS=$N SHARD=$i npx tsx scripts/eval-immoka.ts > tmp/eval-shards/log-$i.txt 2>&1 &52done53wait54tail -n1 tmp/eval-shards/log-*.txt55wc -l tmp/eval-shards/*.jsonl56