[genui] get-started says the system prompt is 3-5K tokens, it's closer to 14K
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- documentation
Research direction
Start with the GenUI get-started page at https://docs.flutter.dev/ai/genui/get-started and check how it describes the PromptBuilder.chat() prompt size. Verify the reported size for the basic catalog, then look into how to make a catalog with only the components an app uses. Done when the page gives a representative basic-catalog number and shows how to trim the catalog.
Written by the indexing model from the issue text.
Description
Page: https://docs.flutter.dev/ai/genui/get-started
The page says the PromptBuilder.chat() prompt might be 3,000 to 5,000+ tokens. I measured it and it's a lot bigger, about 3x:
final cat = BasicCatalogItems.asNoAssetCatalog();
final p = PromptBuilder.chat(
catalog: cat,
systemPromptFragments: ['You are a helpful assistant.'],
).systemPromptJoined();
print(p.length); // ~55K chars
With the basic catalog, two small custom items and a one-line fragment I got 55,247 chars, so roughly 13,800 tokens.
That matters because people will read "3-5K" and assume it fits small or on-device models. It doesn't.
Would be great if the page gave a real number for the basic catalog and showed how to trim it down (like a catalog with just the components your app uses).
genui 0.10.4, Flutter 3.47.9, Dart 3.13.7.
- Dominant language
- Dart
- Stars
- 3.1k
- Forks
- 3.5k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 88
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flutter/website
-
act.await-dev-pr co.request d.new-feature dev.flavors e1-hours p2-medium st.blocked t.cli-tools target.web
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
flutter/website#14165 · 1 comment ·
Maintainers usually reply within 1 day
-
a.fwe a.tut.tutorial co.PRs-welcome co.volunteer e0-minutes fix.bug fix.examples from.page-issue p2-medium
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
flutter/website#14158 · 1 comment ·
Maintainers usually reply within 1 day
-
act.await-dev-pr d.enhancement e1-hours p2-medium st.blocked target.web
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
from.page-issue p2-medium
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Document the `use-explicit-plural-values` gen-l10n optionMay be free again @busradansmn claimed this 27 days ago, and no pull request is open. Openact.await-dev-pr d.enhancement e0-minutes p2-medium t.cli-tools t.i18n t.l10n
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
flutter/website#13993 · 2 comments ·
Maintainers usually reply within 1 day
Similar issues
-
lang-java needs-triage package:jni package:jni_flutter package:jnigen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
finamp-app/finamp#1920 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
flutter/flutter#197796 · 1 comment ·
Maintainers usually reply within 1 day