Agent Types
Meridian provides two specialized agents, each optimized for different tasks:Query Agent
Generates DuckDB SQL queries from natural language. Perfect for data transformation and complex queries.
Analysis Agent
Explores your data using multiple tools. Provides insights, comparisons, and quality assessments.
Switching Between Agents
Use the segmented control at the top of the agent panel to switch modes:Query Agent: Natural Language to SQL
The Query Agent converts your requests into executable SQL commands.Describe Your Query
Type a natural language description of what you want to do:Example requests:
- “Show me the top 10 customers by revenue”
- “Calculate average order value by month”
- “Update all products in the Electronics category to increase price by 10%”
- “Find orders where the amount is greater than $1000”
AI Generates SQL
The agent analyzes your request and generates one or more SQL commands:You’ll see:
- A description of what the query does
- The generated SQL commands
- Number of commands in the queue
Query Agent Examples
- Filtering
- Aggregation
- Updates
- Complex
Request: “Show me all sales from the West region in 2024”Generated SQL:Description: Filters sales records for West region during 2024.
Analysis Agent: AI-Powered Exploration
The Analysis Agent uses multiple tools to explore your data and provide insights.Ask a Question
Describe what you want to understand about your data:Example questions:
- “What patterns do you see in this sales data?”
- “Compare Q1 and Q2 revenue performance”
- “Check data quality issues in this dataset”
- “Find correlations between product price and sales volume”
Agent Uses Tools
The agent automatically selects and executes relevant tools:You see real-time updates as each tool runs.
Tool Execution Visualization
When the Analysis Agent runs tools, you see live updates:Analysis Agent Capabilities
Data Quality Analysis
Data Quality Analysis
The agent can assess your data quality automatically:Common issues detected:
- High percentage of null values
- Duplicate IDs or keys
- Empty string values in text columns
- Type inconsistencies
Schema Inspection
Schema Inspection
Automatically examine table structure:Returns column names, types, and metadata.
Sample Data Retrieval
Sample Data Retrieval
Fetch representative data samples:Helps the AI understand your data structure.
Web Search Integration
Web Search Integration
The agent can search the web for context:Useful for enriching analysis with external data.
Table Comparison
Table Comparison
Compare two datasets:Identifies differences and trends.
Conversation Threads
Both agents maintain conversation context through threads, enabling multi-turn interactions.Thread Management
Using Threads
Automatic Thread Creation
When you start a new conversation, a thread is created automatically. The title is generated from your first message.
Create New Threads
Click the + button to start a fresh conversation while keeping old threads accessible.
Streaming Responses
Both agents stream responses in real-time for immediate feedback.Query Agent Streaming
Analysis Agent Streaming
Best Practices
Be Specific in Requests
Be Specific in Requests
More specific requests yield better results:❌ “Show me sales data”
✅ “Show me total sales by region for Q1 2024”❌ “Update prices”
✅ “Increase all Electronics category prices by 10%”
Use Natural Language
Use Natural Language
Write requests as you would ask a colleague:✅ “What are the top 5 products by revenue?”
✅ “Find customers who haven’t ordered in 90 days”
✅ “Calculate the average order value for each customer segment”
Review Generated SQL
Review Generated SQL
Always review SQL before executing, especially for:
- UPDATE statements
- DELETE operations
- Complex joins
- Production data
Use Threads for Complex Analysis
Use Threads for Complex Analysis
For multi-step analysis:
- Start a thread
- Ask exploratory questions
- Build on previous answers
- Refine your understanding
- Keep the thread for future reference
Choose the Right Agent
Choose the Right Agent
- Query Agent: When you know you need SQL or data transformation
- Analysis Agent: When exploring, investigating, or need insights
Agent Architecture
Meridian’s agents are powered by Google’s Gemini model with Convex Agent Component:Context Management
To stay within API limits, Meridian trims prompts to ~8000 characters:What’s Next?
Create Charts
Visualize agent analysis results with interactive charts
Collaboration Tips
Work with your team in real-time on data analysis