# Docs Indexes

Docs Indexes allow you to integrate and organize external documentation sources within the PureCode AI environment. This feature is particularly useful for managing project-specific guides, API references, or any external resources you frequently consult.

## How to Use:

{% stepper %}
{% step %}
**Access Settings:**&#x20;

Navigate to PureCode AI's settings by clicking on the extension icon and selecting "Settings" right below chat area.
{% endstep %}

{% step %}
**Add Documentation**

In the Docs Indexes section, you can add new entries by specifying the documentation's name and URL. Alternatively, you can paste the content directly if you prefer to host the documentation locally.
{% endstep %}

{% step %}

#### Documentation Naming

Fill in the documentation's name (e.g., "Project API Guide") and provide the URL to the online documentation or paste the content directly if hosting it locally.
{% endstep %}

{% step %}

#### Including Example

Including example usage and detailed descriptions enhances the AI's ability to provide contextually relevant suggestions.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
&#x20;Including example usage and detailed descriptions in your documentation entries will improve the AI's ability to provide contextually relevant suggestions.
{% endhint %}

***

## Examples:

1. Integrating Internal API Documentation:

* *Scenario:* You're working on a project that interacts with your company's internal APIs.
* *Action:* Add your internal API documentation to PureCode AI's Docs Indexes.
* *Benefit:* Quick access to API endpoints and parameters directly within your development environment, reducing context-switching and enhancing productivity.

2. Organizing Codebase Architecture Overviews:

* *Scenario:* You're onboarding a new module in a large codebase and need to understand its architecture.
* *Action:* Include architectural diagrams and module overviews in Docs Indexes.
* *Benefit:* Easier comprehension of the codebase structure, aiding in faster development and collaboration.

3. Managing Third-Party Service Guidelines:

* *Scenario:* Your application integrates with multiple third-party services like payment gateways or messaging platforms.
* *Action:* Store the integration guidelines and best practices in Docs Indexes.
* *Benefit:* Instant reference to integration steps and troubleshooting tips, streamlining the development process.

***

## Benefits&#x20;

* **Centralized Access:** Keeps all your essential documentation within easy reach, reducing the time spent searching for external resources.
* **Contextual Assistance:** Enables **PureCode AI** to reference your custom documentation, offering more precise and tailored code suggestions.


---

# 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/docs-indexes-and-ui-docs-indexes/docs-indexes.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.
