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.
How to Use Inline File Context
Step-by-Step Instructions:
Highlight the code you want to add as context in your editor
Click "Add to Chat" to send the selected code to DinoAI
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
Select relevant code blocks that include enough context for DinoAI to understand the purpose
Be specific in your prompts about what you want DinoAI to do with the highlighted code
Include related functions when selecting code if they're necessary for understanding
Use for targeted questions rather than broad file-level discussions {% endhint %}
Last updated
Was this helpful?