# Document Comparison using UI

Now, we have a capability to compare VC and VP documents.

{% hint style="info" %}
**Note:** Documents can only be compared of published policies
{% endhint %}

All dialogs displaying documents provide mean to add the current document into the ‘diff basket’ - the list of documents for comparison as shown below:

<figure><img src="/files/j0udFzULatLvfn4tFnEI" alt=""><figcaption></figcaption></figure>

If the ‘diff basket’ of documents is not empty a corresponding icon with a count will be displayed in the menu bar of Guardian UI.&#x20;

From the drop-down menu displayed upon clicking on this icon users can select document and execute the comparison.

<figure><img src="/files/3HpFS6w8dhTzUgJwE4W0" alt=""><figcaption></figcaption></figure>

When documents are compared the entire chain of linked documents is compared. It also includes the content of these documents.

<figure><img src="/files/Qr26Q9Cyq3OmYR5duKUh" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/CsQFPJvebuZSkBqYQGVX" alt=""><figcaption></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.guardianservice.app/technical-information/users/standard-registry-users-schemas-and-policies/policies/document-comparison/document-comparison-using-ui.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.
