# Document Comparison using UI

1. [Step By Step Process](#id-1.-step-by-step-process)
2. [Demo Video](#id-2.-demo-video)

## 1. Step By Step Process

We can now compare VC and VP documents.

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

All dialogs displaying documents provide means to add the current document into the ‘diff basket’ - the list of documents for comparison.

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

If the ‘diff basket’ of documents is not empty then a corresponding icon with a count will be displayed in the menu bar of Guardian UI. From the drop-down menu displayed upon clicking on this icon users can select document and execute the comparison.

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

When documents are compared the entire chain of linked documents is compared along with its contents.

<figure><img src="/files/5ACNvBQnQOxWTUvIz0Ro" alt=""><figcaption></figcaption></figure>

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

## 2. Demo Video

[Youtube](https://youtu.be/2ABlV3amPVo?si=9SKcuEakrNasclZ-\&t=125)


---

# 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://guardian.hedera.com/guardian-dev/guardian/standard-registry/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.
