Skip to main content
Version: v2.10.0

Yeedu Assistant

Overview​

Yeedu Assistant is the platform-wide AI assistant available across the entire Yeedu UI. It is used to diagnose cluster and job errors, answer questions about Yeedu features, and provide general product guidance.

In notebook cells, the AI Assistant is a separate, cell-level assistant that helps you ask questions specific to the current cell, generate code, and optimize notebook queries.

Note: Yeedu Assistant is available on every page of the Yeedu UI. The AI Assistant is available inside notebook cells for more targeted per-cell assistance and model selection.

Yeedu Assistant

Key Features​

The notebook AI Assistant helps you build and improve code with a single cell-level workflow:

  • Generate Spark SQL, Python/PySpark, Scala, and notebook query code from natural language.
  • Get inline code assistance with autocomplete, snippets, bug detection, and performance recommendations.
  • Diagnose notebook cell errors with automatic root-cause analysis and suggested fixes.
  • Optimize SQL and data queries with execution, rewrite, indexing, and performance insights.

Accessing Yeedu Assistant​

Yeedu Assistant is available across the Yeedu UI. Use the assistant panel or icon from any page to diagnose cluster errors, job failures, and ask questions about Yeedu.

In the Yeedu UI​

  1. Open any page in Yeedu
  2. Click the Yeedu Assistant panel or icon
  3. Enter your question/request

Using AI Assistant in Notebooks​

In notebook cells, the AI Assistant offers a cell-level experience for asking prompts specific to that cell.

AI Assistant

In Notebook Cells​

  1. Open a notebook cell
  2. Click the AI Assistant button
  3. Select a model for this cell
  4. Enter your prompt or code context
  5. Click Generate or press Enter
  6. Review the response and click Accept or Reject

Using AI Assistant for Code Generation​

Generate Query​

  1. Click Generate Code
  2. Describe what you want:
    • "Get total sales by region"
    • "Count unique customers per month"
    • "Join customers with orders"
  3. Select query type:
    • SQL
    • Python/PySpark
    • Scala
  4. AI Assistant generates code
  5. Review and adjust as needed
  6. Execute in notebook

Error Diagnosis with AI Assistant​

Automatic Error Analysis​

When a cell fails:

  1. Error message displayed in output
  2. Diagnose button appears
  3. Click the button to see issue
  4. Yeedu Assistant shows:
    • Root cause
    • Why it occurred
    • Suggested fixes
    • Related documentation

Manual Error Diagnosis​

  1. Select the error message
  2. Right-click → Ask AI Assistant
  3. Describe your issue
  4. Get targeted suggestions

Debugging Workflow​

  1. Run cell with error
  2. Click Diagnose
  3. Review diagnosis
  4. Apply suggested fix
  5. Re-run cell
  6. Verify results

Model Selection Per Cell​

LLM model selection is configured per notebook cell. Choose the best model for each cell's task to optimize performance and cost.

Change Cell Model​

  1. Focus the notebook cell
  2. Click the AI Assistant button in the cell toolbar
  3. Open the model dropdown
  4. Choose the model for the current cell
  5. Enter your prompt in the assistant input box
  6. Click Generate or press Enter
  7. Review the response and click Accept to keep it or Reject / press ESC to dismiss it

Model Options​

ModelBest ForSpeedCostContext
GPT-5.2Highest-capability code reasoningMediumHighLarge
GPT-5.1Advanced generation and analysisMediumHighLarge
GPT-5General-purpose coding and reasoningMediumHighLarge
GPT-5 MiniFast, lightweight responsesFastMediumSmall
GPT-4oStrong reasoning and efficiencyMediumMediumLarge
GPT-4o TurboFaster GPT-4o variantFastMediumLarge
GPT-3.5 TurboQuick suggestions, simple tasksFastLow16K tokens
Claude Opus 4.6Long-context code analysisMediumMedium100K tokens
Claude Sonnet 4.6Structured reasoning and code reviewMediumMedium100K tokens
Claude Opus 4.5Code understanding with long contextMediumMedium100K tokens
Claude Sonnet 4.5Code review and refactoringMediumMedium100K tokens
Claude Sonnet 4Natural language and code insightsMediumMedium100K tokens
Claude Haiku 4.5Lightweight code helpFastMedium100K tokens

Model Selection and Usage​

AI Assistant provides a choice of notebook-level models so you can match the task to the right capability and cost.

  • Set a default model in Settings and override per cell as needed.
  • The selected model applies only to the active cell.
  • After entering a prompt, click Generate or press Enter.
  • Review the response and click Accept to keep it or Reject / press ESC to dismiss it.

How to Choose​

  • GPT-5: use for complex code generation, detailed debugging, and large-context reasoning.
  • GPT-4o: use for fast, interactive notebook tasks with strong reasoning.
  • GPT-3.5 Turbo: use for quick suggestions, simple completions, and routine edits.
  • Claude: use for long-context code analysis, review, and technical explanations.

Cost and Optimization​

  • Higher-capability models typically cost more.
  • Use lower-cost options for simple or repetitive tasks.
  • Use stronger models when the task requires deeper reasoning or larger context.
  • Monitor token usage and choose the model that balances speed, cost, and accuracy.

Query Optimization and Context​

The AI Assistant can help optimize notebook queries and understands notebook context to give better recommendations.

Query Optimization​

  1. Write the SQL query in the notebook cell.
  2. Select query text.
  3. Click Optimize Query.
  4. The AI Assistant reviews the query and suggests:
    • execution improvements
    • join optimization
    • indexing and partition recommendations
    • caching strategies

Context and Privacy​

The AI Assistant uses notebook context such as:

  • current active notebook and cell content
  • selected code or text
  • imported libraries

Data handling and privacy principles:

  • Code is processed securely.
  • No data is stored permanently by default.
  • Enterprise-grade encryption protects requests.
  • Compliance with privacy and security policies is maintained.

Best Practices and Troubleshooting​

Best Practices​

  • Be specific and provide context in prompts.
  • Verify generated code before using it.
  • Test outputs with sample data and edge cases.
  • Use follow-up prompts to refine results.

Troubleshooting​

  • If the assistant does not respond, check connectivity and model selection.
  • If output quality is poor, provide more context, simplify the request, or try a different model.
  • If model selection issues occur, confirm the model is available and check permissions.
  • Contact support if access or subscription problems persist.