SDK classes
ChatScope
# 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
Get the information from transcripts
Get the information from private uploaded files
Get the information from NEWS
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="")
Was this page helpful?
# 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="")