google / langfun

OO for LLMs
Apache License 2.0
100 stars 17 forks source link

Change the prompt markups for multi-modal object. #220

Closed copybara-service[bot] closed 2 months ago

copybara-service[bot] commented 2 months ago

Change the prompt markups for multi-modal object.

Previously we use {{object_name}} to quote multi-modal objects in rendered prompt, this turns to be problematic, since {{ can be easily found in normal web text (e.g. latex expression). To avoid the clash, we use <<[[object_name]]>> to quote multi-modal objects in rendered prompt.