# Source Citations Options

Every Wonderchat bot is equipped with the ability to cite sources. Let’s take a deep dive onto what type of source citation methods would benefit your chatbot the most.

## How to turn on or off source citations for chat responses

To turn on the source citation setting, navigate to the Edit Chatbot page and under the "General" tab, navigate to the "Citation Settings".

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-5ad8e812d6fd3e9a8954b472517b204364340759%2Fimage.png?alt=media" alt=""><figcaption><p>Click on the “⋮” and go to “Edit Chatbot”</p></figcaption></figure>

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-e1cb29c63f10a5fbcddacb6c06c582ad9525cb60%2Fimage.png?alt=media" alt=""><figcaption><p>Go under "General" tab and scroll down</p></figcaption></figure>

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-d2ac7b81717e470ce0c7ad7feace8719ba5f0422%2Fimage.png?alt=media" alt=""><figcaption><p>Under the source citation settings, you can edit all information related to the chatbot's sources</p></figcaption></figure>

Ensure that the "Cite URL sources when answering" setting is checked for a chatbot to be able to cite a source for every response it gives out.

## **Source Citation Types**

### **1. Cite Similar Sources**

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-d2ac7b81717e470ce0c7ad7feace8719ba5f0422%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

The ‘cite similar sources’ setting is **most suitable for chatbots that are built on** **website links**.

This setting allows your chatbot to display a ‘read more’ section below, which would link to webpages that serve as the sources of truths for the chatbot’s responses.

If you find that the existing chatbot’s response does not include a page link that you want, you can add the page link as a correction here.

### **2. Cite most appropriate sources (Deprecated)**

This source citation is recommended if you want your chatbot to respond with the raw link of a source.

It is highly recommended that you **use this setting in combination with a GPT-4 model** to prevent link hallucinations where a chatbot would recommend a wrong link.

### **3. Cite from PDF source**

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-7ed5ac41934f7c40b447995e43086ef866537710%2Fimage.png?alt=media" alt=""><figcaption><p>To cite PDF pages as sources, toggle the PDF source citation settings.</p></figcaption></figure>

It is recommended that this option is **turned off** unless you prefer your chatbot to cite the exact PDF source name and page where it fetches the information from.

As you can see in the image above, enabling PDF source citations is only useful when you wish for the bot to pinpoint exactly which part of a PDF document they have obtained their information from.

***

If you have any more questions, feel free to reach out to us at <mark style="color:purple;">**<support@wonderchat.io>**</mark>


---

# 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.wonderchat.io/setup-guides/setting-up-your-chatbot/how-to-pick-between-source-citations-options-for-your-chatbot.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.
