Ask Mode
No notebook changes — the AI answers questions about your notebook, explains code, and provides guidance without modifying anything.Best for: Exploration, explanations, learning, and getting advice without altering your cells. Perfect when you want to understand before you act.
How Ask Mode Works
Ask Mode is purely conversational. The AI has read-only access to your notebook and can help you understand what’s happening without making any changes:AI reads your notebook
The AI can see:
- All cells and their outputs
- Current kernel state (variables, dataframes)
- Database connections
- Previous execution results
The AI can read everything but cannot modify anything.
You ask questions
Ask anything about your notebook:
- “What does this code do?”
- “Why is this cell producing an error?”
- “How can I optimize this query?”
- “Explain the logic in cell 7”
- “What’s the difference between these two approaches?”
AI provides explanations
The AI responds with:
- Clear explanations in natural language
- Code breakdowns and logic walkthroughs
- Debugging suggestions
- Performance optimization ideas
- Alternative approaches
No code is generated or executed. It’s purely advisory.
Example Interactions
Understanding code
Understanding code
You: “What does cell 5 do?”AI: “Cell 5 performs a left join between the
customers and orders dataframes on the customer_id column. It then filters for orders from 2024 and groups by region to calculate total revenue. The result is sorted by revenue in descending order.”Debugging without changes
Debugging without changes
You: “Why is the last cell showing a KeyError?”AI: “The KeyError on
revenue_usd suggests that column doesn’t exist in your dataframe. Looking at cell 3, the column is actually named revenue_dollars. You have two options:- Rename the column in cell 3 to
revenue_usd - Update cell 7 to use
revenue_dollars
Learning and exploration
Learning and exploration
You: “How would I calculate a rolling average in pandas?”AI: “To calculate a rolling average in pandas, use the This computes a 7-period moving average. You can adjust Would you like me to explain how rolling windows handle edge cases?”
.rolling() method:window to change the period. For your daily_revenue dataframe, you could do:The AI provides educational explanations without modifying your notebook. Perfect for learning new techniques.
Performance optimization
Performance optimization
You: “Is there a faster way to do this groupby operation?”AI: “Yes! Your current approach loops through groups, which is slow for large datasets. Here’s a vectorized alternative:Current approach (slow):Faster vectorized approach:For your dataset with 1M rows, this could be 10-100x faster. The vectorized version lets pandas optimize operations internally instead of Python looping.”The AI explains the optimization but lets you implement it.
Data quality checks
Data quality checks
You: “Are there any issues with my data that I should be aware of?”AI: “I notice a few potential issues in your
sales_data dataframe:- Missing values: 342 rows have null
customer_id(8% of total) - Negative revenue: 17 rows have negative
revenuevalues (likely refunds?) - Date range gap: No data between March 15-22, 2024
- Outliers: 5 transactions over 8,500)
The AI proactively identifies data quality concerns without making assumptions about how to fix them.
When to Use Ask Mode
Before making changes
Use Ask Mode to understand the current state before modifying anything. Get a clear picture of what exists, then switch modes to implement changes.
Code review
Review notebooks from teammates or understand legacy code without risking accidental modifications.
Learning new techniques
Ask how to implement something or understand a coding pattern. The AI teaches without writing code for you.
Sanity checks
Verify your logic, check for edge cases, or get a second opinion on your approach.
Limitations
Switching from Ask Mode
When you’re ready to implement changes, switching is seamless:- To Hands-On Mode
- To Agent Mode
- Manual Implementation
When to switch: You understand what needs to change and want to approve each suggestion.What happens:
- Conversation history is preserved
- Context from Ask Mode carries over
- AI starts suggesting code instead of just explaining
- Ask Mode: “Why is this slow?”
- AI explains the issue
- Switch to Hands-On Mode
- AI suggests optimized code
- You review and approve
Conversation Continuity
One of Ask Mode’s strengths is that conversations carry context:FAQ
Does Ask Mode use my data?
Does Ask Mode use my data?
Yes, Ask Mode reads your notebook state to answer questions accurately. It can see:
- Cell contents and outputs
- Kernel variables and dataframes
- Database connections
- Execution history
Can I ask about database schemas in Ask Mode?
Can I ask about database schemas in Ask Mode?
Yes! If you have database connections configured, Ask Mode can:
- Describe table schemas
- Explain relationships between tables
- Suggest queries
- Identify performance issues
Will Ask Mode tell me if my code has bugs?
Will Ask Mode tell me if my code has bugs?
Yes. Ask Mode can:
- Identify logical errors
- Spot common pitfalls (e.g., division by zero, type mismatches)
- Warn about performance issues
- Suggest edge cases to test
Can I use Ask Mode with MCP servers?
Can I use Ask Mode with MCP servers?
Yes! Ask Mode can read from MCP servers to provide context:
- dbt model documentation
- Slack discussion history
- Jira ticket details
- Query history
Learn about MCP
See how SignalPilot connects to external tools via Model Context Protocol
Can I ask hypothetical questions?
Can I ask hypothetical questions?
Absolutely! Ask Mode is perfect for:
- “What would happen if I changed this parameter?”
- “How would this perform on a larger dataset?”
- “What’s the trade-off between these two approaches?”
- “If I modify this cell, what else needs to change?”
Is Ask Mode faster than other modes?
Is Ask Mode faster than other modes?
Generally yes, because:
- No code generation required
- No execution overhead
- Simpler interactions
- Lighter context processing