Galileo’s Annotations feature helps teams label, categorize, and analyze model outputs more effectively. Annotations provide a structured way to add human-in-the-loop feedback, highlight model behavior patterns, and guide future improvements to datasets and models.
Annotations are tags and metadata that can be used to label predictions, inputs, or other artifacts during model development and evaluation. They help organize, classify, and track model behavior during experimentation and production.You can see the tags and metadata in the Log Streams section of the Galileo Console.These labels can represent:
Model issues (e.g., label_mismatch, low_confidence)
Observations from human reviewers (e.g., grammar_error, ambiguous_input)
Annotations are added to logged Traces and Spans in the form of tags and metadata.Tags - short, flat labels (strings) you assign to a trace or span to make them easy to group and filter.
Unlimited number of tags per trace/span (practical limit ≈ 50)
Case-sensitive strings ≤ 50 chars each
Ideal for boolean-style filters (e.g., “show me all traces tagged physics”)
Metadata - key-value dictionaries that travel with a trace or a span, perfect for structured information like user IDs, experiment hashes, timestamps, or numeric metrics.
Keys and values are strings ≤ 256 chars
Appears in Log Streams as new columns
Ideal for structured attributes you can filter, group, and aggregate
To add annotations to your Traces, initialize the Galileo Logger, and then include tags and metadata when you start your Trace.
Copy
Ask AI
# Include GalileoLogger in importsfrom galileo import GalileoLogger# Initialize loggerlogger = GalileoLogger()# Initialize a new Trace with tags and metadatatrace = logger.start_trace( input="Explain the following topic succinctly: Newton's First Law", tags=["newton", "test", "new-version"], metadata={"experimentNumber": "1", "promptVersion": "0.0.1", "field": "physics"})
Tags and metadata appear within the selected Project and Log Stream in the Galileo Console.You can view the tags and metadata attached to Traces and Spans in their “Parameters” section.Additionally, metadata appears as new columns in the Log Stream.