Inline File Context

Inline File Context lets you provide specific code selections to DinoAI, helping it understand your code patterns, naming conventions, and focus on exactly the sections you want to discuss or modify.

Example Use Cases

  • Ask questions about specific functions or code blocks

  • Request changes to particular lines of code

  • Debug targeted portions of your files

How to Use Inline File Context

Step-by-Step Instructions:

  1. Highlight the code you want to add as context in your editor

  2. Click "Add to Chat" to send the selected code to DinoAI

  3. Add your prompt describing what you want DinoAI to do with the selected code


Inline File Context Example

Here's how Inline File Context improves DinoAI's results:

Without Inline Context

Prompt: "This CTE is running slowly, can you help optimize it?"

Result: DinoAI asks which CTE you're referring to since your model file contains 8 different CTEs, or provides generic optimization advice that may not apply to your specific performance issue

With Inline Context

Prompt: "This CTE is running slowly, can you help optimize it?"

+ Inline Context: highlighted CTE with multiple LEFT JOINs and aggregations

Result: DinoAI identifies that the slow performance and optimizes CTE accordingly

Best Practices

  1. Select relevant code blocks that include enough context for DinoAI to understand the purpose

  2. Be specific in your prompts about what you want DinoAI to do with the highlighted code

  3. Include related functions when selecting code if they're necessary for understanding

  4. Use for targeted questions rather than broad file-level discussions {% endhint %}

Last updated

Was this helpful?