Add batch-llm module: 100,000 synthetic tickets classified by a ChatClient in a Spring Batch 6 chunk step with Resilience4j rate limiting and retry, skip-and-record for malformed JSON, restart after kill -9 in a second JVM, and a per-chunk cost ledger. The model is a deterministic simulated ChatModel; prices are configurable placeholders. No provider called.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4VQVEJWetTT1dYzyJ
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
# One uninterrupted run of the whole job against a fresh database and a fresh provider meter.
|
||||
set -euo pipefail
|
||||
source "$(dirname "$0")/common.sh"
|
||||
[ -f "$JAR" ] || mvn -B -q -T1 package -DskipTests
|
||||
rm -rf target/clean && mkdir -p target/clean output
|
||||
java -jar "$JAR" --batch.llm.tickets="$TICKETS" --batch.llm.run-id=clean \
|
||||
--spring.datasource.url="jdbc:h2:file:./target/clean/batchdb;DB_CLOSE_ON_EXIT=FALSE" \
|
||||
--sim.provider.meter-file=target/clean/provider-meter.bin 2>&1 | clean_log | tee target/clean/run.log
|
||||
{ echo "# One uninterrupted run, $TICKETS tickets (java -jar, fresh H2 file, fresh provider meter)"; echo;
|
||||
grep -v '^PROGRESS' target/clean/run.log; } > output/08-clean-run.txt
|
||||
Reference in New Issue
Block a user