When Langfuse tracing is enabled, LibreChat sends message feedback to Langfuse as a user-feedback BOOLEAN score on the corresponding trace.
Feedback Logic
- Thumbs Up: Sent as
1. - Thumbs Down: Sent as
0. - Tags/Comments: Any selected feedback tag or comment is included in the score.
- Deleting Feedback: Removing feedback in LibreChat removes the score in Langfuse.
Metadata and Constraints
Feedback scores include metadata such as messageId, parentId, conversationId, userId, endpoint, sender, isCreatedByUser, and tokenCount.
Feedback follows the same configuration as tracing and respects these variables:
LANGFUSE_TRACING_ENABLED=false (disables feedback)LANGFUSE_SAMPLE_RATE=0LANGFUSE_TRACING_ENVIRONMENT
Note: Sending scores is 'best-effort'; the LibreChat UI will not block if Langfuse is temporarily unavailable.