To access the latest features keep your code editor plug-in up to date.
Navie supports forward-slash options that can be included at the beginning of your questions to control various aspects of text generation.
The /tokenlimit
option is used to specify a limit on the number of tokens processed by the system. This parameter can help control the length of the generated text or manage resource consumption effectively.
Syntax
/tokenlimit=<value>
<value>
: The maximum number of tokens to be processed. This can be either a string or a number. If provided as a string, it will be automatically converted to an integer.Description
When executing commands, the /tokenlimit
option sets the upper limit on the number of tokens the system should utilize. The default token limit is 8000. Increasing the token limit allows more space for context.
Example To set the token limit to 16000, you can use:
@explain /tokenlimit=16000 <question>
Notes
/tokenlimit
is a valid positive integer./tokenlimit
can directly impact the performance and output length of text generation processes./tokenlimit
cannot be increased above the fundamental limit of the LLM backend. Some backends, such as Copilot, may have a lower token limit than others.The /temperature
option is used to control the randomness of the text generation process. This parameter can help adjust the creativity and diversity of the generated text.
Syntax
/temperature=<value>
<value>
: The temperature value to be set. This can be either a string or a number. If provided as a string, it will be automatically converted to a float.Description
When executing commands, the /temperature
option sets the randomness of the text generation process. The default temperature value is 0.2. Lower values result in more deterministic outputs, while higher values lead to more creative and diverse outputs.
Example To set the temperature to 0, you can use:
@generate /temperature=0 <question>
Notes
/temperature
is a valid float./temperature
can directly impact the creativity and diversity of the generated text.The /include
and /exclude
options are used to include or exclude specific file patterns from the retrieved context.
Syntax
/include=<word-or-pattern>|<word-or-pattern> /exclude=<word-or-pattern>|<word-or-pattern>
<word-or-pattern>
: The word or pattern to be included or excluded. Multiple values or patterns can be separated by a pipe |
, because the entire string is treated as a
regular expression.Description
When executing commands, the /include
option includes files according to the words or patterns specified, while the /exclude
option excludes them. This can help control the context used by the system to generate text.
Example
To include only Python files and exclude files containing the word “test”:
@plan /include=\.py /exclude=test