Skip to main content
A Thread represents a group of interactions between a user and an AI app. It can be, for example, a conversation between a human and one or several assistants, or an agent generating a document piece by piece from a user input. A Thread is composed of Steps. A Step can be a message, or an intermediate AI step like an LLM call.

Log a Thread

Visualize the Thread on Literal

Navigate to the Threads page on the platform to see the thread you just created.
A thread on the platform

Output on the platform

Tags

You can add tags to a Thread, Step or Generation. Similar to Github labels, you can use tags to filter data both from the Literal UI and the clients. Tags are shared between units (Threads, Steps and Generations). To add a tag to a Thread or Generation, open the specific item and add the tag on the top of the window. Here, you can also add new tags. Adding tags to Steps is possible in the Step itself.
Add new Tag to a Thread

Add new Tag

Using the SDKs: When you add a Tag that doesn’t exist yet, a new Tag will be automatically created. Note: When you update the Tags in using update_thread() (Python) or upsertThread() (TypeScript), you replace all previous assigned tags to this Thread.
Next, you can filter Threads or Generations by tags.
Filter Threads by Tag

Filter by Tag

Using the SDKs: