llama.cpp/examples/server/public
Olivier Chafik 55b2d0849d
grammars: x{min,max} repetition operator (#6640)
* grammars: x{min,max} repetition operator + tweak +/*/? to avoid duplication of original over alternates

* grammars: handle `x{n}` and fix `x{n,n}`

* grammars: document new repetition operators

* grammars: uniform use of int for min & max

* grammars: refactor parser test

* grammar: parsing tests w/ natural pretty print of updated expectations

* grammars: much prettier print of expectations (+ TEST_GRAMMAR_PARSER_PRINT_ALL=1 to force all)

* grammars: improve test pretty print again

* grammars: pretty print rules and chars

* grammars: fix copy rule skipping

* grammars: disallow `a{,}` (not allowed in regexps)

* Update common/grammar-parser.cpp

Co-authored-by: Clint Herron <hanclinto@gmail.com>

* grammars: fix copy rule skipping (again) & display of expectations

* grammars: more test cases

* grammars: update reps parsing to bring ? / * / + closer to before

* json: use new GBNF repetitions{m,n} syntax

* grammars: update performance gotchas w/ repetition advice

* Update examples/json_schema_to_grammar.py

Co-authored-by: Clint Herron <hanclinto@gmail.com>

* Update examples/server/public/json-schema-to-grammar.mjs

Co-authored-by: Clint Herron <hanclinto@gmail.com>

* grammars: comment on rule repetitions

* grammars: ensure unambiguous number alternatives

* grammar: nit typo switched error msgs

* grammar: nit numbering in comment

* json: update numeric rule to be unambiguous

* Apply suggestions from code review

Co-authored-by: Clint Herron <hanclinto@gmail.com>

* Update examples/server/public/json-schema-to-grammar.mjs

Co-authored-by: Clint Herron <hanclinto@gmail.com>

* json: fix integral-part

* grammar: add repetition tests

---------

Co-authored-by: Clint Herron <hanclinto@gmail.com>
2024-06-06 10:07:06 +01:00
..
colorthemes.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
completion.js server: public: use relative routes for static files (#6325) 2024-03-27 06:55:29 +01:00
favicon.ico server : add themes + favicon (#6848) 2024-05-08 22:12:06 +03:00
index-new.html server : new UI (#7633) 2024-06-01 22:31:48 +03:00
index.html server : new UI (#7633) 2024-06-01 22:31:48 +03:00
index.js server : update js (#7670) 2024-05-31 22:23:04 +03:00
json-schema-to-grammar.mjs grammars: x{min,max} repetition operator (#6640) 2024-06-06 10:07:06 +01:00
prompt-formats.js server : new UI (#7633) 2024-06-01 22:31:48 +03:00
style.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
system-prompts.js server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-beeninorder.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-ketivah.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-mangotango.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-playground.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-polarnight.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-snowstorm.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00