# Reviewing suggestions

## How to review the Tabnine Chat suggestions

Once you get an answer from Tabnine Chat, review it. If you aren't satisfied with the answer, refine your original request with an alternative or a more specific prompt **in the current or new session**.

If you're happy with the response, you can add it to your code in one of the following ways.

### Manual Copy and Paste

Copy the answer (or part of it) and paste it into the relevant location in your code:

<figure><img src="/files/opRSaWmc6KZXij2k7bVx" alt="" width="563"><figcaption></figcaption></figure>

### Copy Function

Click **Copy,** then paste the answer into the relevant location in your code:

<figure><img src="/files/RbeL65rmJccN41CqzEuz" alt="" width="563"><figcaption></figcaption></figure>

### Insert Action

Click **Insert** to copy and insert the code into the open file with one click.

The code is pasted at the cursor location or inside the selected block:

<figure><img src="/files/jtPFMHQUaSOPPgG8WSni" alt="" width="563"><figcaption></figcaption></figure>

### Show Diff

If the Chat answer is close enough to the current open file, a **Show diff** option appears. Click **Show diff** to see the specific change offered by Tabnine.

To paste the changes into the file, click **Insert**.

{% hint style="info" %}
Diff insert is available in VS Code, JetBrains and Visual Studio 2022
{% endhint %}

In VS Code, you'll need to **Accept** each change inline:

<figure><img src="/files/iR6vUxi39Lw2FW2qBzjI" alt="" width="563"><figcaption><p>Show diff, Insert, and Accept in VS Code</p></figcaption></figure>

### Apply

Within Chat, you will have the option to apply suggestions directly to the relevant code snippet in your target file.

After generating a response, the Apply button will appear in the upper right-hand corner of the code snippet. Simply click and the code will be inserted.

<figure><img src="/files/2Po0LYXkFqEm7Ina0Rwq" alt=""><figcaption></figcaption></figure>

You should receive confirmation of changes with a screen that lists the files where code changes were applied, similar to this:

<figure><img src="/files/v1FPg8lDuFxET83sxuUN" alt=""><figcaption><p>Changes applied successfully using the 'Apply' button in Tabnine</p></figcaption></figure>

#### References

If the context for local code awareness is enabled, by default the Tabnine Chat tries to answer the user questions with context from the local workspace. When returning the answer to the user, Tabnine Chat is explicit about the context used to answer the question by including a list of references:

<figure><img src="https://lh7-us.googleusercontent.com/ZVxhJ2hiw7zDcHHHeUmxRgn3xYHQq63tMN8tlH6EZ4WnQ4MuVw5JO8gN04chVw_Ft8uByddl7i-ubYP4PWdPfqDOpGo24y6bpQGOo0TgWhA7Gf3ANRZARVH19bTWbdbSl-z6zPmeVyj77QuDYd_yQVM" alt="" width="563"><figcaption></figcaption></figure>

You can click each reference and get to the full code that was induced in the chat context. \\


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tabnine.com/main/getting-started/tabnine-chat/consume.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
