Welcome to the Quickstart guide for using the Bigdata Chat Service.
bigdata-client
package bigdata-client
packagebigdata-client
package in a python
virtual environment.
Open the terminal and create a virtual environment with the following
command:
bigdata-client
within the environment bigdata_venv
.
formatter
. This is the mechanism to customize
inline attribution in chat answers. By default
DefaultFormatter
is used. For more information see
Inline attribution formatterresponse
object contains an array of source references that the Chat Service used to ground the response into truth.
Those inline attribution references have the format :ref[i]
where i
is the index in the list response.sources
.
find_sources
method. The following example find sources by name, and it is also possible to find sources by Country and Rank, check out the page Find Sources for more details.
It is not possible to filter web sources that Bigdata has not indexed. If you have other sources essential for your use case, please reach out to support@bigdata.com to consider adding them.
source_filter
streaming=True
param provided to chat.ask
method it returns
StreamingChatInteraction
instead 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:
StreamingChatInteraction
properties are not filled with data