Looking for latest HoneyHive v2? See v2 docs here.
import honeyhive
from honeyhive.models import operations
s = honeyhive.HoneyHive(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.datasets.add_datapoints(dataset_id='<value>', request_body=operations.AddDatapointsRequestBody(
project='<value>',
data=[
{
'key': '<value>',
},
],
mapping=operations.Mapping(
inputs=[
'<value>',
],
ground_truth=[
'<value>',
],
history=[
'<value>',
],
),
))
if res.object is not None:
# handle response
pass{
"inserted": true,
"datapoint_ids": [
"<string>"
]
}import honeyhive
from honeyhive.models import operations
s = honeyhive.HoneyHive(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.datasets.add_datapoints(dataset_id='<value>', request_body=operations.AddDatapointsRequestBody(
project='<value>',
data=[
{
'key': '<value>',
},
],
mapping=operations.Mapping(
inputs=[
'<value>',
],
ground_truth=[
'<value>',
],
history=[
'<value>',
],
),
))
if res.object is not None:
# handle response
pass{
"inserted": true,
"datapoint_ids": [
"<string>"
]
}Documentation Index
Fetch the complete documentation index at: https://docs.honeyhive.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the dataset to add datapoints to like 663876ec4611c47f4970f0c3
Name of the project associated with this dataset like New Project
List of JSON objects to be added as datapoints
Mapping of keys in the data object to be used as inputs, ground truth, and history, everything else goes into metadata
Show child attributes
Was this page helpful?