Library / Documents, PDF & OCR
Documents, PDF & OCR
Extract PDF data from Google Drive with Claude and Gemini side by side
Runs on manual trigger. Downloads a PDF from Google Drive, converts it to base64, and sends it to Claude 3.5 Sonnet and Gemini 2.0 Flash to compare extraction results, latency and cost.
What it does
## Workflow: Extract data from PDF with Claude 3.5 Sonnet or Gemini 2.0 Flash Overview - This workflow helps you compare Claude 3.5 Sonnet and Gemini 2.0 Flash when extracting data from a PDF - This workflow extracts and processes the data within a PDF in one single step, instead of calling an OCR and then an LLM” How it works - The initial 2 steps download the PDF and convert it to base64. - This base64 string is then sent to both Claude 3.5 Sonnet and Gemini 2.0 Flash to extract information. - This workflow is made to let you compare results, latency, and cost (in their dedicated dashboard). How to use it - Set up your Google Drive if not already done - Select a document on your Google Drive - Modify the prompt in "Define Prompt" to extract the information you need and transform it as wanted. - Get a [Claude API key]({{ $env.WEBHOOK_URL }} and/or [Gemini API key]({{ $env.API_BASE_URL }} - Note that you can deactivate one of the 2 API calls if you don't want to try both - Test the Workflow
The steps
- When clicking 'Test workflow'
- Extract from File
- Google Drive
- Call Gemini 2.0 Flash with PDF Capabilities
- Call Claude 3.5 Sonnet with PDF Capabilities
- Define Prompt
Similar automations
Documents, PDF & OCRExtract PDF data from Google Drive with Claude and Gemini side by side6 stepsDocuments, PDF & OCRExtract PDF Information with Claude or Gemini6 stepsDocuments, PDF & OCRExtract PDF Data with Claude 3.5 Sonnet or Gemini 2.0 Flash6 stepsDocuments, PDF & OCRExtract Text from Drive PDFs and Images with Gemini12 steps