From 3da0da6217323340decd3845f2ef13f649441f8f Mon Sep 17 00:00:00 2001 From: Aaron Po Date: Tue, 23 Jun 2026 03:16:34 -0400 Subject: [PATCH] Do full Gemma-4 run of pipeline, transfer sqllite file to public dir of preview --- tooling/pipeline/includes/data_generation/json_grammars.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tooling/pipeline/includes/data_generation/json_grammars.h b/tooling/pipeline/includes/data_generation/json_grammars.h index 1c0fb1c..d30b9a8 100644 --- a/tooling/pipeline/includes/data_generation/json_grammars.h +++ b/tooling/pipeline/includes/data_generation/json_grammars.h @@ -14,11 +14,13 @@ // JSON object (the prompts explicitly invite this); only the "{...}" tail is // constrained to the expected shape. inline constexpr std::string_view kUserJsonGrammar = R"json_user( -root ::= thought-block "{" ws +root ::= thought-block ( + "{" ws "\"username\"" ws ":" ws string ws "," ws "\"bio\"" ws ":" ws string ws "," ws "\"activity_weight\"" ws ":" ws number ws "}" ws +) thought-block ::= [^{]* ws ::= [ \t\n\r]* string ::= "\"" char+ "\"" @@ -31,12 +33,14 @@ number ::= "-"? ("0" | [1-9] [0-9]*) ("." [0-9]+)? // GBNF grammar for structured brewery JSON output (see thought-block note // above). inline constexpr std::string_view kBreweryJsonGrammar = R"json_brewery( -root ::= thought-block "{" ws +root ::= thought-block ( + "{" ws "\"name_en\"" ws ":" ws string ws "," ws "\"description_en\"" ws ":" ws string ws "," ws "\"name_local\"" ws ":" ws string ws "," ws "\"description_local\"" ws ":" ws string ws "}" ws +) thought-block ::= [^{]* ws ::= [ \t\n\r]* string ::= "\"" char+ "\""