> For the complete documentation index, see [llms.txt](https://docs.kodesage.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kodesage.ai/key-features/ask-kodesage.md).

# Ask Kodesage

Feature overview

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="https://1498950825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8qhVWzMLXcYl3WBsXBHs%2Fuploads%2FDgAXKXGvpB7ea3o0o4A1%2FXnapper-2025-01-28-18.12.18.png?alt=media&amp;token=c7776bc7-449b-47ec-bd12-1e8484e83280" 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="https://1498950825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8qhVWzMLXcYl3WBsXBHs%2Fuploads%2FhML2oEG9xavFN4lhcpz8%2FXnapper-2025-01-22-11.05.07.png?alt=media&amp;token=4c3a1a5c-bacb-4bc3-ad2d-bab587815f88" 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="https://1498950825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8qhVWzMLXcYl3WBsXBHs%2Fuploads%2Faa0UJCNpXYvawrfBM6P7%2FXnapper-2025-01-29-17.32.14.png?alt=media&amp;token=27c7b502-201b-44f5-8cfe-bcd70d1045ba" 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="https://1498950825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8qhVWzMLXcYl3WBsXBHs%2Fuploads%2FlrAcUahpTZLuj30Z9dgw%2FXnapper-2025-01-29-17.27.30.png?alt=media&amp;token=cd4dbaee-fc21-4ac9-bf9a-08d3b8296100" alt=""><figcaption><p>Edit specific prompt templates</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.kodesage.ai/key-features/ask-kodesage.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
