# Chat Vs Codebase Chat

## Chat Feature

Purpose: Enables real-time communication with an AI assistant for discussing code-related questions.

**Functionality:**

* **Code Assistance:** Provides explanations, identifies bugs, and suggests enhancements based on the current file and cursor position.
* **Contextual Interaction:** Lets developers share specific code snippets as context using shortcuts like **`Ctrl+Shift+L`** or '@', improving the relevance of AI responses.

**Usage:** Ideal for debugging, seeking code explanations, and receiving improvement suggestions within the development environment.

## Codebase Chat Feature:

**Purpose:** Provides an in-depth understanding of the entire codebase, similar to a senior developer's perspective.

**Functionality:**

* **Codebase Summarization:** Generates summaries of the entire codebase and individual files, highlighting key features and interrelationships among components.
* **Context-Aware Suggestions:** Utilizes advanced embeddings to provide relevant and precise recommendations based on the project's structure and content.

**Usage:** Essential for navigating large projects, identifying potential issues, and obtaining high-level overviews of the project's architecture.

{% hint style="info" %}
To use the **@codebase** feature, make sure to enable the **advanced indexing option**, which can be found below in the chat area.
{% endhint %}

<figure><img src="https://1934073637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVx22AmjG9CHfbdGPtjJI%2Fuploads%2FMAqwkxyqcTN2jdf60H05%2Fscreenshot-06_29%2C%2002_29_58%20AM.jpg?alt=media&#x26;token=923bdcc3-45e5-48df-9d78-849c194048e6" alt=""><figcaption></figcaption></figure>

### How to Exclude Codebase Context from Your Requests

* By default, this **use Codebase option** \[ under chat area ]  is enabled, meaning that context items (such as summaries or project-wide details) will automatically be included with your request.
* **If you uncheck the box**, it will prevent the AI from sending the codebase context, focusing only on the current file's context.

## Tips for Effective Use:

**Utilize the Chat Feature:** For specific, localized code inquiries or debugging assistance within the current file.

**Utilize the Codebase feature:** Activate the `@codebase` feature to allow the AI to analyze and index your entire project, enhancing its understanding and the relevance of its suggestions.

{% hint style="info" %}
To use the **@codebase** feature, make sure to enable the advanced indexing option, which can be found below in the chat area.
{% endhint %}

**Efficient Debugging:** Quickly identify and resolve issues within your codebase, reducing development time and improving code quality.&#x20;
