What Does ChatML Mean For Prompt Chaining Applications

There has been an emergence of a new software genre for building conversational interfaces/applications based on Large Language Models. This collection of applications are often referred to as prompt chaining applications.

Chatbots & Unstructured Data

For any conventional graphic user interface (mobile apps, web interfaces, etc), the onus is on the user to structure their data input according to the design affordances made available. The design affordances are tabs, buttons, fields which need to be completed, etc.

The continuous chatbot process: structuring & unstructured data for each dailog turn.

LLMs and More Unstructured Input — Prompt Engineering

Along came Large Language Models and general access to Generative AI.

Prompt Engineering Templates

Two terms have emerged with the adoption of LLMs in production settings, the first is prompt chaining, and the second is templating.

Chat Markup Language

With the introduction of ChatML, will this become the de facto template for prompts?

[{"role": "system", "content" : "You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible.\nKnowledge cutoff: 2021-09-01\nCurrent date: 2023-03-02"},
{"role": "user", "content" : "How are you?"},
{"role": "assistant", "content" : "I am doing well"},
{"role": "user", "content" : "When was the last Formula One championship in South Africa?"}]

ChatML makes explicit to the model the source of each piece of text, and particularly shows the boundary between human and AI text.

This gives an opportunity to mitigate and eventually solve injections, as the model can tell which instructions come from the developer, the user, or its own input. ~ OpenAI

Hence OpenAI is adding a structure in which an engineered prompt must be submitted to the LLM. This required structure will have to be incorporated into the functionality of prompt chaining tools.

  1. Will other LLM providers adopt the structure of OpenAI’s ChatML?
  2. Will ChatML become the de facto standard structure for LLM prompt input?
  3. How are chaining applications going to incorporate ChatML into their application and structure?
https://www.linkedin.com/in/cobusgreyling
https://www.linkedin.com/in/cobusgreyling

--

--

Chief Evangelist @ HumanFirst. I explore and write about all things at the intersection of AI and language; NLP/NLU/LLM, Chat/Voicebots, CCAI. www.humanfirst.ai

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cobus Greyling

Chief Evangelist @ HumanFirst. I explore and write about all things at the intersection of AI and language; NLP/NLU/LLM, Chat/Voicebots, CCAI. www.humanfirst.ai