Library / Building Blocks & Utilities
Building Blocks & Utilities
Evaluate LLMs on Legal Questions with OpenRouter
When you run it, it loops over test questions from Google Sheets, asks OpenRouter models to answer, and records the results for benchmarking.
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
- When clicking ‘Test workflow’
- Loop Over Items
- Wait
- OpenRouter Chat Model
- Extract from File
- Google Drive
- Get Tests
- Structured Output Parser
- Update Results
- LLM Judge
- Is PDF?
- Is a file?
Similar automations
Building Blocks & UtilitiesBenchmark LLMs on Legal Documents with Google Sheets15 stepsRAG & Knowledge BasesLegal Contract Q&A on Telegram with OpenAI7 stepsAI Agents & AssistantsCompare LLMs with OpenRouter and Google Sheets14 stepsContent Writing & GenerationGenerate llms.txt Files from Screaming Frog Crawls with OpenAI16 steps