Create reusable query collections for batch document processing. Define your questions once, then extract structured data from multiple documents with coordinates. Perfect for high-volume document workflows.
const formData = new FormData();
formData.append('document', file);
formData.append('processor_id', '123e4567-e89b-12d3-a456-426614174000');
const batchQueries = await fetch('/api/ask/batch', {
method: 'POST',
headers: { 'X-API-Key': 'your-api-key' },
body: formData
});
const job = await batchQueries.json();
// { id: "987fcdeb-51a2-43d1-b456-426614174000", status: "queued" }
// Poll for completion
const statusResponse = await fetch(`/api/jobs/${job.id}`, {
headers: { 'X-API-Key': 'your-api-key' }
});
const result = await statusResponse.json();
// Get extracted field data with coordinates
const invoiceTotal = result.data.find(field => field.field_name === 'invoice_total');
console.log('Value:', invoiceTotal.value); // "$1,234.56"
console.log('AI Answer:', invoiceTotal.ai_answer); // "The total amount is $1,234.56"
console.log('Coordinates:', invoiceTotal.geometry[0].bbox); // [100, 200, 300, 250]
Create reusable sets of questions for consistent extraction across documents
Process multiple documents with the same query set efficiently
Get consistent JSON responses with coordinates for every field
Interactive demo coming soon...
Streamline document processing across industries
See how Document Queries fits into real-world applications
Process hundreds of invoices daily with consistent field extraction
Example questions:
Automated AP workflows
Multi-vendor invoice processing
Extract key terms and dates from large contract portfolios
Example questions:
Contract renewal tracking
Risk assessment automation
Digitize paper forms and applications at scale
Example questions:
Customer onboarding
Survey data collection
Why natural language questions beat rigid templates
Replace complex OCR setup with simple questions that work on any document format
Unique: Natural language questions ("What's the total?") + coordinate proof for any document type
NinjadocAI | Template OCR | Generic LLM/AI API | |
---|---|---|---|
โNatural Language Questions | ~ | ||
๐Answer + Coordinate Proof | ~ | ||
โก5-Minute Integration | ~ | ||
๐ฒTransparent Pricing | ~ | ||
๐งTypeScript SDK + React Components | |||
๐ง Context Understanding | ~ | ||
๐ฏZero Configuration Required | ~ | ||
๐Handles Document Layout Variations | ~ | ||
๐Developer-Friendly REST API | ~ |
Real results from real implementations
See how Document Queries is transforming document processing workflows
"Batch processing with query collections has streamlined our document workflows. We process hundreds of invoices daily with consistent results."
Robert Kim
Operations Manager
"Setting up query collections once and reusing them across documents saves us so much time. The structured output is perfect for our systems."
Lisa Wong
Data Analyst
Everything you need to know
Get answers to common questions about Document Queries
Query collections allow you to define a set of questions once, then apply them to multiple documents. Each document gets processed with the same queries for consistent, structured output.
Yes, you can update your query collections through our dashboard or API. Changes will apply to future document processing, but won't affect completed jobs.
Batch processing is ideal for high-volume document processing where you need consistent extraction from similar document types, like invoices, contracts, or forms.
Complete your document intelligence stack
Discover other powerful tools in the Ninjadoc AI suite