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.
When you use the Bigdata.com Chat API, every answer can be traced back to its sources. This is called inline attribution. Inline attribution helps you understand where the information comes from, providing transparency and trust in the responses. This guide will show you how to: ✅ Install bigdata-client package
✅ Read inline attribution details
✅ Retrieve the full document
✅ Get the favicon
You can display those details in your proprietary Chatbot in the same way as Bigdata App: Chat source details Ready to get started? Let’s dive in!
The steps below provide code snippet examples, please refer to the section Complete script to see the complete script.

Install bigdata-client package

Follow Prerequisites instructions to set up the require environment.

Read inline attribution details

The following script will create a chat, ask a question and print the inline attribution details from the response sources.
  • headline: The title of the document.
  • id: A unique identifier for the document in Bigdata.com.
  • URL: The direct link to the source document (if available).
  • timestamp: The publication date/time of the document.
  • image_urls: A representative image from the document (if available).

Retrieve the full Document

If the document is an indexed Bigdata.com document, you can download the full annotated document with the following script.

Getting the Favicon

We need the ID of the indexed source that published the document, and use the Knowledge Graph’s get_sources method.

Complete script

This script creates a Chat, asks a question, prints the question and the answer, and prints inline attribution details for each document used to craft the Chat response. Then it also downloads the entire annotated document and saves it in your directory.
Output:
Annotated documents created in your directory: Annotated files Example of annotated file: