Scribble at 2026-08-18 11:00:50 Last modified: 2026-08-19 07:51:27
[上の画像のプロンプト: A black straight line on white background. / Style: drawn by crayon. / Composition: this line is drawn horizontally on the center of canvas from edge to edge.]
Krea 2 のような、いわゆる自然文をプロンプトとして使えるアーキテクチャのモデルでは、プロンプトのフォーマットを柔軟に設定できる。「自然文」と言われると、英語の文章を書くことだと即断する人は多いし、それでもかまわないのだけれど、何も小説の一節みたいに気の効いた表現でプロンプトを作る必要はない。冒頭で紹介したように(スラッシュは改行箇所に当たる)、箇条書きでも十分に描画の方法を指示できるということが、上の画像で分かるだろう。
本来、こういう箇条書きで描画の条件を指定するプロンプトは、どちらかと言えばシステム・プロンプトのフォーマットとして知られているのだけど、何も AI へ事前に条件としてあたえる内容だけではなく、実際に何かを描いてもらうためのプロンプトとして箇条書きを採用していけない理由はない。そして、そういうことに対応できるからこそ、自然文を扱えるテキスト・エンコーダは強力なのだ。ヒトの方が、なにか流麗な文章を入力しないといけないかのように凝り固まっていては、それこそ AI を活用するには未熟な知性と言わなくてはなるまい。
ちなみに、他のプロンプトも試しているところなのだが、少し複雑になると失敗してしまう。たとえば、"A graph for function of y = x^2 on white background. / Style: drawn by black lines for axis of x and y, and drawn by red line for a graph of this function. The origin has a sign of "O" by a letter in black. / Composition: this graph is drawn from x = -10 to x = 10." というプロンプトだと、x 軸と y 軸は黒で、そしてグラフは赤で描いてくれるのだが、グラフそのものは滅茶苦茶である。原点の他にも出鱈目な文字を Legend として記入したりする。それでも、"Grid lines on black background. / Style: this grid is drawn by white lines, from edge to edge of cambus. / Composition: each line is separated by 10 pixels." というプロンプトでは、グリッドを 10 px ごとに描くというのは難しいようだが、かなり綺麗に方眼を描いてくれる。
[追記:2026-08-19] Krea 2 の Technical Report にも、"Across our user prompts, we observe a wide variety of prompting styles, including natural language, tags, detailed JSON, bounding boxes, instructions, visual guidelines, and Markdown, among others. While prompt expansion can address some of this, we believe that natively comprehending such prompts should also be a core capability of the model." と書かれていて、色々なフォーマットに対応している。