CodeBench: plaintext-speksi pienille malleille
- spec-plain.md: "entity Author (authors): name string, email string"
- extractPlainSpec() parseri plaintext → {entities, relationships}
- Small-profiili käyttää plain-formaattia, large JSON
- specText muuttuja: plaintext tai JSON prompteihin
- Ei voi mennä syntaktisesti rikki kuten JSON
This commit is contained in:
19
kipina-codebench/prompts/spec-plain.md
Normal file
19
kipina-codebench/prompts/spec-plain.md
Normal file
@@ -0,0 +1,19 @@
|
||||
You design database schemas. Output ONLY the schema in this exact format, nothing else.
|
||||
|
||||
FORMAT (one entity per line):
|
||||
project: project-name
|
||||
entity EntityName (table_name): field1 type, field2 type, field3 type=default
|
||||
entity ChildName (table_name): field1 type, parent_id int->ParentName, field2 type
|
||||
|
||||
TYPES: string, text, int, float, bool, date, datetime
|
||||
RULES:
|
||||
- id is automatic, do NOT include it
|
||||
- FK fields end with _id and use -> to reference parent
|
||||
- Parent entities BEFORE children
|
||||
- Max 7 fields per entity, max 3 entities
|
||||
- Status fields: string with =default (e.g. status string=draft)
|
||||
|
||||
EXAMPLE:
|
||||
project: blog-api
|
||||
entity Author (authors): name string, email string, bio text
|
||||
entity Post (posts): title string, content text, author_id int->Author, published_at datetime, status string=draft
|
||||
Reference in New Issue
Block a user