Single-Turn Production Monitoring
For simple, single-turn interactions, you can send the details to Galtea usingcreate_single_turn
with is_production=True
.
Multi-Turn Production Monitoring (Conversations)
For multi-turn conversations, use the session-based workflow to log the entire interaction first and then evaluate it.1
1. Create a Session
First, create a session at the start of the conversation. For production monitoring, make sure to set
is_production=True
.2
2. Log Conversation Turns
Next, log the user-assistant interactions. You can do this individually as each turn happens or in a single batch after the conversation ends.
This approach is useful for logging interactions in real-time in a live application.
3
3. Evaluate the Session
Finally, once the conversation is complete and all turns are logged, you can run an evaluation on the entire session.
For more details on evaluating multi-turn conversations, see the Evaluating Conversations guide.