Overview

Batch-evaluating multiple local or self-hosted language models manually is tedious and error-prone. This workflow automates sending a single prompt across all loaded models, gathers their raw responses, computes key text metrics, and logs everything to Google Sheets for easy comparison and historical tracking.

The Impact

  • Automate evaluations. Eliminate manual repetitive testing of multiple local LLMs with a single workflow.
  • Quantify output. Capture response quality metrics like readability and sentence statistics for objective comparison.
  • Track performance. Record response times to monitor speed changes across models or versions.
  • Centralize data. Append all results automatically into Google Sheets for archiving and analysis.

Who This Is For

  • ML Engineers performing regression tests across model versions to detect quality or speed shifts.
  • Product Managers comparing multiple local models side-by-side using consistent prompts and metrics.
  • O&M and R&D Teams monitoring deployed models’ performance and output quality trends over time.
  • Data Analysts collecting structured raw responses and statistics for report generation or review.

How It Works

1
  1. Build API URLs
  2. Construct full model list and chat endpoint URLs from the provided BaseUrl.
2
  1. Fetch and Parse Models
  2. Request the list of loaded models, then extract each model's identifier for evaluation.
3
  1. Evaluate Models in Loop
  2. For each model, capture start time, send the prompt with system instructions, parse the response, and capture end time.
4
  1. Analyze Response Metrics
  2. Calculate word count, sentence count, readability score, average sentence and word lengths, plus response duration.
5
  1. Log Results to Google Sheets
  2. Combine all data into a row and append it to the specified worksheet for record keeping and comparison.

What You'll Need

Before using this template, make sure you have:

  • An active LM Studio or compatible local/self-hosted model service running with multiple models loaded and accessible via a BaseUrl API endpoint.
  • A Google Sheets spreadsheet with a worksheet containing the headers: Model, Prompt, Response, Start Time, Word Count, Sentence Count, End Time, Time Diff Seconds, Readability Score, Average Sentence Length, Average Word Length.
  • OAuth2 credentials configured for Google Sheets API access to allow appending rows to your target spreadsheet.
  • The spreadsheet ID (from its URL) and the exact worksheet name to target for data appending.

How to Use

  1. Step 1. Prepare Environment
  2. Start your local model service with multiple models loaded and ensure the BaseUrl API endpoint is reachable.

  3. Step 2. Set Up Spreadsheet
  4. Create a Google Sheets spreadsheet and worksheet with the required headers in order.

  5. Step 3. Configure Credentials
  6. Provide Google Sheets OAuth2 credentials to allow the workflow to write data.

  7. Step 4. Input Parameters
  8. Fill in prompt text (ChatInput), BaseUrl, optional SystemPrompt, and sampling parameters (Temperature, TopP, PresencePenalty), plus spreadsheet info (SpreadsheetId, SheetName).

  9. Step 5. Run and Verify
  10. Execute the workflow and verify the appended rows in your Google Sheets worksheet for each model's evaluation data.

FAQs

How does the workflow handle multiple models at once?
It fetches the list of all loaded models from the BaseUrl API, then loops over each model to send the same prompt and capture responses and metrics individually.
What metrics are calculated from the model responses?
Word count, sentence count, average sentence length, average word length, Flesch-Kincaid readability score, and response time in seconds.
Can I customize the prompt and model behavior?
Yes, you provide a ChatInput prompt and an optional SystemPrompt to define the model’s role and style of response.
How are results stored and accessed?
All results for each model evaluation are appended as rows to a specified Google Sheets worksheet for easy access and historical tracking.
What happens if some models fail to respond?
The workflow summarizes total models evaluated and how many succeeded, providing a clear status message at the end to highlight any failures.
Was This Page Helpful?

More Workflows for Inspiration

📧
Intelligent Email Auto-reply
Automate Gmail replies with AI-based classification and calendar scheduling to save time.
Learn more >
📧
Smart Email Priority Manager
Automatically classify Gmail emails by urgency and importance to streamline inbox management.
Learn more >
⚙️
Sheets-to-Calendar Event Sync
Automatically sync Google Sheets event lists to Google Calendar, skipping duplicates efficiently.
Learn more >