> For the complete documentation index, see [llms.txt](https://help.kenyalaw.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.kenyalaw.org/finding-information/similar-documents.md).

# Similar documents

The similar documents feature makes it easier for you to find related legal content, helping you quickly access more context or supporting materials relevant to your work.

The functionality is available in two primary areas:

1. Within an individual document
2. Within a folder of saved documents

### How to access similar documents for a document

1. Open the document you want to view
2. Click on the **Related documents** tab
3. Look out for the **More documents like this one** section

<figure><img src="https://1597910029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQ0pb8IaOwfvABEIc9EBL%2Fuploads%2Fgit-blob-3cb1844e00b87b6dacdd2e11a7a95d6995047025%2Fkenyalaw--per%20doc%20same.png?alt=media" alt=""><figcaption></figcaption></figure>

### How to access similar documents within your saved folders

1. Go to your **Saved documents** section
2. Click on a saved folder
3. Click **Suggested for this folder** tab to view similar document recommendations for that folder
4. The list shows AI-generated suggestions of documents similar to those saved in the folder

<figure><img src="https://1597910029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQ0pb8IaOwfvABEIc9EBL%2Fuploads%2Fgit-blob-5828a1e811bfee57c7843e63a911ccc70ee1d14e%2Fkenyalaw--similar%20saved.png?alt=media" alt=""><figcaption></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://help.kenyalaw.org/finding-information/similar-documents.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.
