# Import classes from the bigdata-client Python SDK        
from bigdata_client import Bigdata
from bigdata_client.models.chat import ChatScope

# Log in to Bigdata
bigdata = Bigdata("YOUR_USERNAME", "YOUR_PASSWORD")

# Create a new chat
chat = bigdata.chat.new("Pfizer company analysis")

# First question using ChatScope
response = chat.ask("Evaluate the experience and reputation of the management team of Pfizer in 2024", streaming=True, scope=ChatScope.NEWS)

print(f"\nQuestion:\n - {response.question}")
print(f"\nAnswer:")
for streamingChatInteraction in response:
  print(streamingChatInteraction, end="")

Defines the scope of a chat interaction.

Enum Values

EARNING_CALLS
str

Get the information from transcripts

FILES
str

Get the information from private uploaded files

NEWS
str

Get the information from NEWS

REGULATORY_FILINGS
str

Get the information from SEC Filings

# Import classes from the bigdata-client Python SDK        
from bigdata_client import Bigdata
from bigdata_client.models.chat import ChatScope

# Log in to Bigdata
bigdata = Bigdata("YOUR_USERNAME", "YOUR_PASSWORD")

# Create a new chat
chat = bigdata.chat.new("Pfizer company analysis")

# First question using ChatScope
response = chat.ask("Evaluate the experience and reputation of the management team of Pfizer in 2024", streaming=True, scope=ChatScope.NEWS)

print(f"\nQuestion:\n - {response.question}")
print(f"\nAnswer:")
for streamingChatInteraction in response:
  print(streamingChatInteraction, end="")