mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-07-16 09:37:23 +00:00
Do full Gemma-4 run of pipeline, transfer sqllite file to public dir of preview
This commit is contained in:
Binary file not shown.
@@ -14,11 +14,13 @@
|
|||||||
// JSON object (the prompts explicitly invite this); only the "{...}" tail is
|
// JSON object (the prompts explicitly invite this); only the "{...}" tail is
|
||||||
// constrained to the expected shape.
|
// constrained to the expected shape.
|
||||||
inline constexpr std::string_view kUserJsonGrammar = R"json_user(
|
inline constexpr std::string_view kUserJsonGrammar = R"json_user(
|
||||||
root ::= thought-block "{" ws
|
root ::= thought-block (
|
||||||
|
"{" ws
|
||||||
"\"username\"" ws ":" ws string ws "," ws
|
"\"username\"" ws ":" ws string ws "," ws
|
||||||
"\"bio\"" ws ":" ws string ws "," ws
|
"\"bio\"" ws ":" ws string ws "," ws
|
||||||
"\"activity_weight\"" ws ":" ws number ws
|
"\"activity_weight\"" ws ":" ws number ws
|
||||||
"}" ws
|
"}" ws
|
||||||
|
)
|
||||||
thought-block ::= [^{]*
|
thought-block ::= [^{]*
|
||||||
ws ::= [ \t\n\r]*
|
ws ::= [ \t\n\r]*
|
||||||
string ::= "\"" char+ "\""
|
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
|
// GBNF grammar for structured brewery JSON output (see thought-block note
|
||||||
// above).
|
// above).
|
||||||
inline constexpr std::string_view kBreweryJsonGrammar = R"json_brewery(
|
inline constexpr std::string_view kBreweryJsonGrammar = R"json_brewery(
|
||||||
root ::= thought-block "{" ws
|
root ::= thought-block (
|
||||||
|
"{" ws
|
||||||
"\"name_en\"" ws ":" ws string ws "," ws
|
"\"name_en\"" ws ":" ws string ws "," ws
|
||||||
"\"description_en\"" ws ":" ws string ws "," ws
|
"\"description_en\"" ws ":" ws string ws "," ws
|
||||||
"\"name_local\"" ws ":" ws string ws "," ws
|
"\"name_local\"" ws ":" ws string ws "," ws
|
||||||
"\"description_local\"" ws ":" ws string ws
|
"\"description_local\"" ws ":" ws string ws
|
||||||
"}" ws
|
"}" ws
|
||||||
|
)
|
||||||
thought-block ::= [^{]*
|
thought-block ::= [^{]*
|
||||||
ws ::= [ \t\n\r]*
|
ws ::= [ \t\n\r]*
|
||||||
string ::= "\"" char+ "\""
|
string ::= "\"" char+ "\""
|
||||||
|
|||||||
Reference in New Issue
Block a user