Skip to main content
We are sunsetting our SDKs and will no longer add new features, security patches, bug fixes, or technical support for them. To access the latest capabilities and ongoing improvements, we encourage you to migrate to our Research Service RESTful API.SDK support will officially end on December 31, 2026. On this date, the underlying endpoints used by the SDKs and related documentation will be decommissioned.To avoid any disruption to your services, please ensure your migration is complete by that date.For migration assistance, please contact us at support@bigdata.com.
Chat answers contain inline attributions and uses DefaultFormatter by default. Example:
Output:
DefaultFormatter adds inline attributes as a `:ref[index]` where index is an index of inline attribution element in sources property in ChatInteraction There are two formatters available at the moment and it is also possible to create custom formatter
  1. DefaultFormatter
  2. MarkdownLinkFormatter

How to configure it

You can configure the inline attribution formatter at different levels:
  • When chat is created
  • When getting existing chat
  • When getting list of chats
  • When making chat.ask request

When chat is created

When getting existing chat

When getting list of available chats

When making chat.ask request

In case it’s necessary to chage formatter only for one chat.ask call there is a possibility:

Create a custom formatter

It is possible to create custom inline attribution formatter. All inline attribution formatters extend abstract class InlineAttributionFormatter It is necessary to implement format method. Here an example how to create custom formatter:
Output: