# Ask Kodesage

The Ask Kodesage feature allows developers to query the digital resource base of the legacy system using natural language questions, such as "How is the user's name stored?" or "Where is the login function defined?" Kodesage then processes the query, analyzes the codebase, and returns the most relevant code snippets, making it easier for developers to find information and understand complex legacy systems.

**Getting started with Ask Kodesage**

Ask Kodesage supports resource type limitation, query type selection, and additional settings to customize the interaction with the system.

**Context editor:** You can set the resource types on which the query  should be performed. This allows you to filter the search scope to specific types such as source code, documentation, knowledge hubs or issues.

<figure><img src="/files/M1yVGyVQQBOY2eueK8YP" alt=""><figcaption><p>Resource type selection</p></figcaption></figure>

**Additional Settings:** The user can modify various aspects of the Ask kodesage functionality, such as manipulating the context and priorities. This includes options like file tagging, force context, and advanced settings.&#x20;

**Generating diagrams**

You can use the Ask Kodesage feature to draw visual diagrams about projects, or specific environments within a systems (e.g. front end, back end, etc).&#x20;

<figure><img src="/files/ypk3j81Gozvj29anxaqi" alt=""><figcaption><p>Generate diagrams with Ask Kodesage</p></figcaption></figure>

**Prompt template library**

Kodesage will provide a set of custom prompt templates out of the box. Prompt templates ensure better answer quality, and can be customized to the needs of your teams.&#x20;

You will be able to review and customize template in Settings -Templates

<figure><img src="/files/H62sHSI64aYCogu1AHNZ" alt=""><figcaption><p>Go to templates in settings</p></figcaption></figure>

Once in templates, you will be able to select and modify specific prompt templates according to your requirements.

<figure><img src="/files/gq9bWyDMfMPGagAFS5Kc" alt=""><figcaption><p>Edit specific prompt templates</p></figcaption></figure>


---

# 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.kodesage.ai/key-features/ask-kodesage.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.
