Datapoints
Retrieve a list of datapoints
- Knowledge
- Community
- GETRetrieve a list of configurations
- POSTCreate a new configuration
- PUTUpdate an existing configuration
- DELDelete a configuration
- GETRetrieve a list of datapoints
- PUTUpdate a specific datapoint
- POSTCreate a new datapoint
- GETRetrieve a specific datapoint
- DELDelete a specific datapoint
Configurations
Datapoints
Datapoints
Retrieve a list of datapoints
curl --request GET \
--url https://api.honeyhive.ai/datapoints \
--header 'Authorization: Bearer <token>'
{
"datapoints": [
{
"_id": "65c13dbbd65fb876b7886cdb",
"tenant": "org_XiCNIMTZzUKiY2As",
"project_id": "653454f3138a956964341c07",
"created_at": "2024-02-05T19:57:47.050Z",
"updated_at": "2024-02-05T19:57:47.050Z",
"inputs": {
"query": "what's the temperature in Iceland?"
},
"history": [
{
"role": "system",
"content": "You are a helpful web assistant that helps users answer questions about the world based on the information provided to you by Google's search API. Answer the questions as truthfully as you can. In case you are unsure about the correct answer, please respond with \"I apologize but I'm not sure.\""
},
{
"role": "user",
"content": "what's the temperature in Iceland?\\n\\n\\n--Google search API results below:---\\n\\n\"snippet\":\"2 Week Extended Forecast in Reykjavik, Iceland ; Feb 4, 29 / 20 °F · Snow showers early. Broken clouds. ; Feb 5, 27 / 16 °F · Light snow. Decreasing cloudiness.\",\"snippet_highlighted_words\":[\"Feb 4, 29 / 20 °F\"]"
}
],
"ground_truth": {
"role": "assistant",
"content": "The temperature in Reykjavik, Iceland is currently around 5F or -15C. Please note that weather conditions can change rapidly, so it's best to check a reliable source for the most up-to-date information."
},
"linked_event": "6bba5182-d4b1-4b29-a64a-f0a8bd964f76",
"linked_evals": [],
"linked_datasets": [],
"saved": false,
"type": "event",
"metadata": {
"question_type": "weather",
"completion_tokens": 47,
"prompt_tokens": 696,
"total_tokens": 743
}
}
]
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
project
string
requiredProject ID to filter datapoints
type
enum<string>
Type of data - "session" or "event"
Available options:
session
, event
datapoint_ids
string[]
List of datapoint ids to fetch
Response
200 - application/json
datapoints
object[]
datapoints._id
string
UUID for the datapoint
datapoints.tenant
string
datapoints.project_id
string
UUID for the project where the datapoint is stored
datapoints.created_at
string
datapoints.updated_at
string
datapoints.inputs
object
Arbitrary JSON object containing the inputs for the datapoint
datapoints.history
object[]
Conversation history associated with the datapoint
datapoints.ground_truth
object
datapoints.linked_event
string
Event id for the event from which the datapoint was created
datapoints.linked_evals
string[]
Ids of evaluations where the datapoint is included
datapoints.linked_datasets
string[]
Ids of all datasets that include the datapoint
datapoints.saved
boolean
datapoints.type
string
session or event - specify the type of data
datapoints.metadata
object
curl --request GET \
--url https://api.honeyhive.ai/datapoints \
--header 'Authorization: Bearer <token>'
{
"datapoints": [
{
"_id": "65c13dbbd65fb876b7886cdb",
"tenant": "org_XiCNIMTZzUKiY2As",
"project_id": "653454f3138a956964341c07",
"created_at": "2024-02-05T19:57:47.050Z",
"updated_at": "2024-02-05T19:57:47.050Z",
"inputs": {
"query": "what's the temperature in Iceland?"
},
"history": [
{
"role": "system",
"content": "You are a helpful web assistant that helps users answer questions about the world based on the information provided to you by Google's search API. Answer the questions as truthfully as you can. In case you are unsure about the correct answer, please respond with \"I apologize but I'm not sure.\""
},
{
"role": "user",
"content": "what's the temperature in Iceland?\\n\\n\\n--Google search API results below:---\\n\\n\"snippet\":\"2 Week Extended Forecast in Reykjavik, Iceland ; Feb 4, 29 / 20 °F · Snow showers early. Broken clouds. ; Feb 5, 27 / 16 °F · Light snow. Decreasing cloudiness.\",\"snippet_highlighted_words\":[\"Feb 4, 29 / 20 °F\"]"
}
],
"ground_truth": {
"role": "assistant",
"content": "The temperature in Reykjavik, Iceland is currently around 5F or -15C. Please note that weather conditions can change rapidly, so it's best to check a reliable source for the most up-to-date information."
},
"linked_event": "6bba5182-d4b1-4b29-a64a-f0a8bd964f76",
"linked_evals": [],
"linked_datasets": [],
"saved": false,
"type": "event",
"metadata": {
"question_type": "weather",
"completion_tokens": 47,
"prompt_tokens": 696,
"total_tokens": 743
}
}
]
}