Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Building Blocks & Utilities

Building Blocks & Utilities

Benchmark LLMs on Legal Documents with Google Sheets

When triggered manually or by a webhook, it runs legal test questions against OpenRouter and OpenAI models using Drive documents and saves scored results to Google Sheets.

What it does

## Data format Our Tests Sheet contains the following columns: - ID: A unique identifier for each row - Test No.: The test that the LLM was given - AI Platform: The LLM that was given the test. - Relevant Source: The file name of the source document that was given to the LLM. - URL: The Google Drive URL where the file is stored. - Input: The input prompt that the LLM was given. - Output: The response that the LLM gave.

The steps

  1. When clicking ‘Test workflow’
  2. Webhook
  3. Merge1
  4. Get Tests
  5. Is PDF?
  6. Structured Output Parser2
  7. Basic LLM Chain1
  8. Google Drive
  9. Extract from File
  10. Save Input/Output
  11. Execute Subworkflow
  12. OpenRouter Chat Model
  13. Keep Original Data
  14. Limit (for testing)

15 steps in total.

Similar automations