Chat Quickstart Guide
Welcome to the Quickstart guide for running a Chat Service, powered by Bigdata.com.
Why Build Your Chatbot with Bigdata.com?
Bigdata.com is designed specifically for business and finance professionals, delivering real-time, AI-driven insights with precision and speed.
✅ Unmatched Data Access — Instantly analyze vast, high-quality datasets.
✅ Finance & Business Expertise — Designed for professionals, not generic use.
✅ Seamless Integration — Easily power your chatbot with cutting-edge AI.
In just 5 minutes, you’ll learn how to:
✅ Install bigdata-client
package
✅ Authenticate to Bigdata.com
✅ Chat with the Bigdata.com research assistant
✅ Delete the chat instance
Ready to get started? Let’s dive in!
- The Chat API is experimental, and future updates may not be backward-compatible.
- Each question queries Bigdata.com and consumes API units - Monitor usage accordingly.
Install bigdata-client
package
First of all, let’s install bigdata-client
package in a python
virtual environment.
Open the terminal and create a virtual environment with the following command:
Activate the virtual environment, every time you want to use it:
And install the bigdata-client
within the environment bigdata_venv
.
Authenticate to bigdata.com
Enter the python interpreter with the following command
Now you can import the Bigdata object from the bigdata_client package,
And initiate it with your bigdata.com personal credentials.
Chat with bigdata.com
Your proprietary App or Server can leverage this programmatic Chat experience similar to the chat of bigdata.com App.
Create a new Chat
Let’s create a Chat instance:
Chat support formatter
. This is the mechanism to customize
inline attribution in chat answers. By default
DefaultFormatter
is used. For more information see
Inline attribution formatter
First question
We can ask a question and print both, the question and the answer:
Output:
Ask any follow up questions
You can continue asking questions. It will remember your previous questions and answers within this chat instance.
Output:
Chat with bigdata.com in Streaming mode
Chat support streaming mode
When streaming=True
param provided to chat.ask
method it returns
StreamingChatInteraction
insead of ChatInteraction
StreamingChatInteraction
implements iterator. Also it has
same interface as ChatInteracion
and contains exactly same
properties.
Ask question with streaming
We can ask a question and print both, the question and the answer:
Output:
Unless iterator fully consumed, StreamingChatInteraction
properties are not filled with data
Delete the chat instance
We can delete this chat instance if we no longer need to ask follow-up questions.
Summary
Congratulations! 🎉 You have successfully integrated with Bigdata.com chat service programmatically, and we can’t wait to see what you build. We’re always around to help.
Next steps
We recommend exploring the following pages:
- Chat Reference: Chat API reference.
- Monitor usage: How-to guide to help you monitor your API usage.
- Inline attribution formatter: How-to guide to customize inline attribution formatting.