Evaluation
You can evaluate the interactions with the Models in LangDB.
Data Collection
To evaluate model interactions, we extract message data from LangDB. This involves:
Fetching all messages from conversation threads using the LangDB API.
Exporting the data into a structured format such as a DataFrame (df) or CSV file.
Cost Calculation
Once the data is collected, we can compute:
Total cost: Sum of the cost of all interactions.
Average: Average cost per message.
Custom Evaluations
Beyond cost analysis, the messages allows you to conduct deeper insights into topic distribution, and trends.
Example Output:
For more evaluations, check out the full notebook!
Last updated
Was this helpful?