AI-Powered Coding
Alph integrates AI assistance directly into the notebook experience, helping you write code faster, debug issues, and learn new techniques.Available AI Models
Choose from multiple leading AI providers:Claude
Anthropic Claude
- Claude 3.5 Sonnet
- Claude 3 Opus
- Best for complex reasoning
GPT
OpenAI GPT
- GPT-4
- GPT-3.5 Turbo
- Fast and versatile
Gemini
Google Gemini
- Gemini 1.5 Pro
- Gemini 1.5 Flash
- Great for code generation
Cell Generation
Generate entire code or markdown cells using natural language descriptions.How to Generate Cells
1
Click the AI button
Between any two cells, click the + AI button
2
Describe what you want
Type a natural language description:
- “Create a bar chart showing monthly sales”
- “Load CSV file and clean missing values”
- “Calculate correlation matrix for numeric columns”
3
Review the generated code
AI generates a complete cell based on your notebook’s context
4
Accept or refine
- Accept: Click ✓ to insert the cell
- Refine: Modify your description and regenerate
- Cancel: Click ✗ to dismiss
Context Awareness
Alph’s AI understands your notebook context:- Previous Cells
- Following Cells
- Smart Truncation
AI reads cells above (up to 20 cells by default) to understand:
- Imported libraries
- Defined variables and functions
- DataFrame structures
- Previous computations
Generation Examples
Data Loading
Data Loading
Prompt: “Load the sales.csv file from the data folder”Generated:
Visualization
Visualization
Prompt: “Create a line plot of revenue over time with a trend line”Generated:
Data Processing
Data Processing
Prompt: “Remove duplicates and fill missing values with median”Generated:
Machine Learning
Machine Learning
Prompt: “Train a random forest classifier to predict churn”Generated:
AI Chat
Have a conversation with AI about your notebook, code, or data science questions.Opening the Chat Panel
- Click the Chat button in the toolbar
- Or press
Ctrl/Cmd + Kto quick-open - The chat panel appears on the right side
Chat Features
Ask Questions
- “Why is my plot not showing?”
- “How do I handle class imbalance?”
- “Explain what this function does”
Get Explanations
- Select code and ask for explanation
- Understand error messages
- Learn about libraries and functions
Debug Issues
- Paste error messages for help
- Ask for debugging suggestions
- Get alternative approaches
Optimize Code
- “How can I make this faster?”
- “Is there a more efficient way?”
- Get performance tips
Chat Context
The chat AI has access to:- Your current notebook content
- Recent cell outputs
- Selected code (if any)
- Previous chat messages
Code Completion
Get intelligent autocomplete suggestions as you type.Using Completions
- Start typing in a code cell
- Press
Tabto see suggestions - Use arrow keys to navigate
- Press
Enterto accept
Completion Types
- Variable names: Recently defined variables
- Function signatures: With parameter hints
- Library imports: Common packages
- Method chains: DataFrame operations, etc.
- Code snippets: Common patterns
Specialized Generators
Alph provides specialized AI endpoints for specific content types:- Data Formats
- Languages
- Commands
CSV Generator: Create sample CSV data
JSON Generator: Generate JSON structures
HTML Generator: Create HTML templates
SVG Generator: Design SVG graphics
AI Limits and Quotas
Different subscription tiers have different AI usage limits:| Plan | Cell Generation | Chat Messages | Models |
|---|---|---|---|
| Hobby | 50/month | 100/month | All models |
| Pro | Unlimited | Unlimited | All models |
| Expert | Unlimited | Unlimited | Priority access |
Upgrade your plan
Get unlimited AI usage with Pro or Expert plans
Best Practices
Be specific in prompts
Be specific in prompts
Better: “Create a histogram of age distribution with 20 bins”
Worse: “Make a chart”Specific prompts yield better results.
Provide context in markdown
Provide context in markdown
Add markdown cells explaining:
- What your data represents
- What you’re trying to accomplish
- Any constraints or requirements
Review generated code
Review generated code
Always review AI-generated code before running:
- Check for correctness
- Verify it matches your intent
- Look for potential issues
- Modify as needed
Iterate on generations
Iterate on generations
If the first generation isn’t perfect:
- Modify your prompt
- Add more context
- Try a different AI model
- Combine AI with manual edits
Use chat for exploration
Use chat for exploration
Before generating cells, use chat to:
- Explore different approaches
- Understand best practices
- Get library recommendations
- Plan your implementation
Model Selection
Choose the right AI model for your task:Claude (Anthropic)
Best for: Complex reasoning, multi-step problems, detailed explanations Use when: You need sophisticated analysis or detailed codeGPT-4 (OpenAI)
Best for: Versatile coding, general questions, creative solutions Use when: You want reliable, well-rounded assistanceGemini (Google)
Best for: Fast generation, code patterns, data transformation Use when: You need quick results for common tasksPrivacy and Security
- AI requests include only notebook content, not your account data
- Your notebooks are not used to train AI models
- AI responses are not stored or logged
- Private notebooks remain private