Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate LLMs with custom metrics with LLM as a judge #77

Open
6 of 20 tasks
iRahulPandey opened this issue Jun 20, 2024 · 2 comments
Open
6 of 20 tasks

Evaluate LLMs with custom metrics with LLM as a judge #77

iRahulPandey opened this issue Jun 20, 2024 · 2 comments
Assignees
Labels
ack/guide I have read through and am familiar with the contributing guide ack/legal I have read and understand the legal considerations for blog posting ack/readme I have configured my local development environment for building the website locally blog/deep-dive I want to write an in-depth guide blog topic/core I'm writing about MLflow public APIs or core features topic/genai I'm writing about GenAI use cases or features

Comments

@iRahulPandey
Copy link

Summary

This template is intended to capture a few base requirements that are needed to be met prior to filing a PR that contains a new blog post submission.

Please fill out this form in its entirety so that an MLflow maintainer can review and work with you in the process of drafting your blog content and in reviewing your blog submission PR.

PRs that are filed without a linked Blog Post Submission issue and a subsequent agreement on the content and topics covered for the blog post are not guaranteed to be reviewed or merged.

Acknowledgements

  • ack/guide I have read through the contributing guide

  • ack/readme I have configured my local development environment so that I can build a local instance of the MLflow website by following the development guide

  • ack/legal I have verified that there are no legal considerations associated with the nature of the blog post, its content, or references to organizations, ideas, or individuals contained within my post. If I mention a particular organization, idea, or person, I will provide evidence of consent to post by any organization or individual that is mentioned prior to filing my PR.

Proposed Title

Evaluate LLMs with custom metrics with LLM as a judge

Abstract

This blog post explores the capability of using large language models (LLMs) as automated judges to evaluate the quality of outputs from retrieval-augmented generation (RAG) pipelines within the MLflow framework. RAG pipelines combine information retrieval with language models to generate outputs informed by relevant textual sources. The post discusses how MLflow's
mlflow.evaluate() function can leverage LLMs to score RAG outputs across multiple dimensions like relevance, coherence, and factuality, and even custom metrics, providing an automated way to assess both the retrieved information and the generated text.

Blog Type

  • blog/how-to: A how-to guide to using core MLflow functionality, focused on a common use case user journey
  • blog/deep-dive: An in-depth guide that covers a specific feature in MLflow
  • blog/use-case: A comprehensive overview of a real-world project that leverages MLflow
  • blog/best-practices: A comprehensive tutorial that covers usage patterns of MLflow, focusing on an MLOps journey
  • blog/tips: A short blog covering tips and tricks for using MLflow APIs or the MLflow UI components
  • blog/features: A feature-focused announcement that introduces a significant new feature that is recently or not-yet released
  • blog/meetup: A report on an MLflow community event or other Linux Foundation MLflow Ambassador Program event
  • blog/news: Summaries of significant mentions of MLflow or major initiatives for the MLflow project

Topics Covered in Blog

  • topic/genai: Highlights MLflow's use in training, tuning, or deploying GenAI applications
  • topic/tracking: Covering the use of Model Tracking APIs and integrated Model Flavors
  • topic/deployment: Featuring topics related to the deployment of MLflow models and the MLflow Model Registry
  • topic/training: Concerned with the development loop of training and tuning models using MLflow for tracking
  • topic/mlflow-service: Topics related to the deployment of the MLflow Tracking Service or the MLflow Deployments Server
  • topic/core: Topics covering core MLflow APIs and related features
  • topic/advanced: Featuring guides on Custom Model Development or usage of the plugin architecture of MLflow
  • topic/ui: Covering features of the MLflow UI
  • topic/other: < please fill in >

Thank you for your proposal! An MLflow Maintainer will reach out to you with next steps!

@github-actions github-actions bot added ack/guide I have read through and am familiar with the contributing guide ack/legal I have read and understand the legal considerations for blog posting ack/readme I have configured my local development environment for building the website locally blog/deep-dive I want to write an in-depth guide blog topic/core I'm writing about MLflow public APIs or core features topic/genai I'm writing about GenAI use cases or features labels Jun 20, 2024
@BenWilson2
Copy link
Member

Great topic selection!
Let's be sure to cover:

  1. Built-in metrics that are defined by specifying a particular constant in the model_type argument of evaluate()
  2. Defining extra_metrics to include additional pre-built metrics in addition to the default metrics that are defined by setting model_type
  3. Building a custom metric via make_genai_metric() (and using it)
  4. Building a fully customized metric via make_genai_metric_with_prompt() (and using it)

@iRahulPandey please let me know how you would prefer to submit working drafts (either through Google Docs or via a Draft PR in .md format) and I'll be happy to review progress and help you work toward getting it published in the blog!

@iRahulPandey
Copy link
Author

@BenWilson2 Sure! the blog will cover all points.

I will submit a draft via PR in .md format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack/guide I have read through and am familiar with the contributing guide ack/legal I have read and understand the legal considerations for blog posting ack/readme I have configured my local development environment for building the website locally blog/deep-dive I want to write an in-depth guide blog topic/core I'm writing about MLflow public APIs or core features topic/genai I'm writing about GenAI use cases or features
Projects
None yet
Development

No branches or pull requests

2 participants