Question

Is the "Include citations" checkbox in Agent settings the same as `"include_retrieval_info": true` in the API?

Does this setting only affect the “playground” and the provided chatbot widget or does it also change the API behavior?

It’s not clear exactly how this works and.what it’s supposed to do. In the playground it’s functionality seems to just hyper link to the same information that is linked from “Message Info” below every message whether that checkbox is checked or not.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
May 12, 2025

Hey Setec,

From what I can tell, the “Include citations” checkbox in the Agent settings mainly affects how citations are displayed in the Playground and the built-in chatbot widget, I guess that it is likely it doesn’t change API behavior on its own.

If you’re working with the API directly and want retrieval metadata like source documents or citations, you probably need to set "include_retrieval_info": true explicitly in your request. I think that this seems to be what controls whether the retrievals field is returned in the response.

So while the checkbox and the API flag appear to serve similar purposes, they don’t seem to be directly linked, at least not in a way that impacts the API output automatically. But I haven’t found official confirmation on this.

Has the DigitalOcean support team been able to confirm if this is the case?

- Bobby

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.