Conversation
Conversation Coherence
Evaluate your LLM models on their ability to hold a coherent conversation.
Conversation coherence refers to the logical flow, relevance, and consistency of dialogue in a conversation. It ensures that the exchange of information or ideas between participants aligns with the context and builds meaningfully upon prior interactions. In the context of natural language processing and conversational AI, coherence is a critical metric to evaluate how well an AI or chatbot can maintain a contextually relevant and natural conversation.
Required Parameters
Parameter | Description | Required |
---|---|---|
messages | Array of conversation messages | Yes |
Configuration
The evaluation accepts the following configuration:
Parameter | Type | Description | Required |
---|---|---|---|
model | string | The LLM model to use for evaluation | Yes |
Test Case Setup
The evaluation requires a list of messages between the user and assistant:
Client Setup
Initialize the evaluation client with your API credentials: