Overview
Meridian provides flexible data ingestion options to get your data into the platform quickly. You can upload CSV files directly or extract structured data from web pages using AI-powered extraction.Upload Methods
The data upload interface provides two methods for importing data:File Upload
Drag and drop CSV, XLSX, or XLS files (up to 10MB) directly into Meridian. Files are automatically:- Uploaded to Cloudflare R2 storage
- Processed into DuckDB tables
- Made available for querying and analysis
URL Extraction
Extract structured data from any webpage using AI:- Enter the URL of the webpage
- Provide a prompt describing what data to extract
- Meridian uses Firecrawl to scrape and extract structured data
- The extracted data is converted to a table automatically
Implementation Details
The upload flow is implemented inFileUpload.tsx and follows this architecture:
File Processing Pipeline
Usage Patterns
Basic CSV Upload
URL Extraction with Custom Prompt
For URL extraction, craft descriptive prompts:Progress Tracking
The upload component provides real-time progress feedback:- 20%: File uploaded to R2
- 50-65%: Metadata saved
- 85-95%: DuckDB table created
- 100%: Complete
Advanced Tips
Table Naming Convention
Table Naming Convention
Table names are automatically generated from filenames:Example:
Sales Data 2024.csv → sales_data_2024Handling Large Files
Handling Large Files
Files up to 10MB are supported. For larger datasets:
- Split into multiple files
- Use URL extraction with pagination
- Consider direct DuckDB import (see Architecture docs)
Error Recovery
Error Recovery
If DuckDB table creation fails:
Common Use Cases
Uploading Sales Data
- Prepare your CSV with clean column headers
- Drag and drop the file into the upload zone
- Wait for processing (typically 5-15 seconds)
- Start querying immediately
Extracting Web Data
- Find a webpage with structured data
- Click the From URL tab
- Paste the URL
- Write a clear extraction prompt
- Click Extract Data & Create Table
Batch Uploads
You can upload multiple files at once:API Integration
The upload feature integrates with these Convex APIs:api.r2- R2 storage operations (from `/home/daytona/workspace/source/src/components/dashboard/FileUpload.tsx:131)api.csv.saveFile- Save file metadata (from `/home/daytona/workspace/source/src/components/dashboard/FileUpload.tsx:35)api.csv.updateDuckDBInfo- Link table to file (from `/home/daytona/workspace/source/src/components/dashboard/FileUpload.tsx:38)api.csv.createTableFromURL- URL extraction (from `/home/daytona/workspace/source/src/components/dashboard/FileUpload.tsx:41)
Next Steps
Query Your Data
Learn how to write SQL queries against your uploaded data
AI Agents
Use AI agents to analyze and query your data automatically