# Context Awareness

**Context Awareness** is central to enhancing the AI's ability to understand your codebase and provide accurate suggestions. It leverages **Normal Indexing** and **Advanced Indexing** to build an intelligent model of your project.

**Normal Indexing:**

* **Purpose:** Establishes a foundational understanding of your codebase by analyzing the entire project.
* **Process:** PureCodeAI scans all files within your project to create an initial index. This process helps the AI become familiar with the structure and content of your code.
* **Benefits:**

  * Provides the AI with a general overview of your project.
  * Enables basic code completions and suggestions.
  * Facilitates initial code analysis and understanding.

**Advanced Indexing:**

* **Purpose:** Enhances the AI's comprehension by creating detailed summaries and relationships within your codebase.
* **Process:** After the initial indexing, PureCodeAI performs advanced indexing to:
  * Generate a comprehensive summary of the entire codebase, highlighting key features, approaches, and critical checkpoints.
  * Develop detailed summaries for each file, improving natural language understanding and enabling efficient retrieval of relevant code sections.
  * Integrate these summaries to provide context-aware suggestions during your interactions.
* **Benefits:**
  * Improves the AI's ability to understand complex code structures and relationships.
  * Enhances the accuracy and relevance of code suggestions.
  * Facilitates efficient navigation and comprehension of large codebases.

**Enabling Advanced Indexing:**

To activate advanced indexing in PureCodeAI:

1. Navigate to **⚙️ Advanced > Codebase Indexing** in the settings.
2. Enable the option for advanced indexing.

This configuration allows PureCodeAI to perform detailed analysis, resulting in a more profound understanding of your codebase.

By utilizing both normal and advanced indexing, PureCodeAI can offer a comprehensive and context-aware coding experience, significantly enhancing your development workflow.

<details>

<summary>Normal Indexing </summary>

</details>


---

# 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://purecodedocs.gitbook.io/docs/features/images-and-media.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.
