Be specific and clear

As a general rule, the more specific and clear your prompt, the better your response.

1. Ask for a detailed explanation with examples

Here is the referenced function in the text editor:

Less effective prompt: Explain this function:

More effective prompt: Explain this function step by step, including an example:

2. Ask for alternative implementations as part of an explanation

Here, we ask Tabnine to Explain this function in a detailed and precise manner, including alternative implementations. Having the prompt contains the phrase "detailed and precise manner" often helps Tabnine produce a more focused response.

Here is the referenced function in the text editor:

Part one of the response, using the prompt Explain this function in a detailed and precise manner, including alternative implementations:

Part two of the response:

Last updated

Was this helpful?