The Langtrace SDK gives you the ability to pass user feedback from your application as scores for measuring accuracy.
Langtrace.withLangTraceRootSpan
function for typescript or with_langtrace_root_span
decorator in python.
This helps with understanding usage patterns and measure the accuracy of your application from your user’s perspective.
Langtrace.withLangTraceRootSpan
function to trace interaction which provides spanId
and traceId
for the interaction.
userScore
and userId
from your application and pass it to Langtrace.sendUserFeedback({userScore, userId, traceId, spanId})
function along with traceId
and spanId
.