Learn how to update data previously published to the Openlayer platform
inference_id
— a unique identifier
of the row. You can provide the inference_id
during stream time, and if you don’t,
Openlayer will assign unique IDs to your rows.
@trace
decorator, you can
dynamically add metadata and set custom inference IDs: - Custom Inference
IDs: Use update_current_trace(inferenceId="your_id")
for request
correlation and future data updates - Trace Metadata: Add context with
update_current_trace(user_id="123", session="abc")
- Step Metadata:
Enrich individual steps with update_current_step(model="gpt-4", tokens=150)
Key Benefit: Custom inference IDs enable you to easily add user feedback,
ground truth labels, and signals after the initial request. See the Tracing
guide
for comprehensive examples.inference_id
to specify the rows you want to update.
Let’s say that you want to add a column called label
with ground truths. If you have
your data in a pandas DataFrame similar to:
@trace
decorator, you can easily collect and update data with user feedback, ratings, and other signals after the initial request. This creates powerful feedback loops for improving your AI system.