> For the complete documentation index, see [llms.txt](https://purecodedocs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://purecodedocs.gitbook.io/docs/features/chat-vs-codebase-chat.md).

# 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="/files/60cDMjXczZYyiGGCehWs" 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;
