curl --request POST \
  --url https://api.honeyhive.ai/datapoints \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "project": "653454f3138a956964341c07",
  "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": [],
  "type": "event",
  "metadata": {
    "question_type": "weather",
    "completion_tokens": 47,
    "prompt_tokens": 696,
    "total_tokens": 743
  }
}'
{
  "result": {
    "insertedId": "<string>"
  }
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
project
string
required

UUID for the project to which the datapoint belongs

inputs
object
required

Arbitrary JSON object containing the inputs for the datapoint

type
enum<string>
required

Type of datapoint - "event" or "session"

Available options:
event,
session
ground_truth
object

Expected output JSON object for the datapoint

linked_event
string

Event id for the event from which the datapoint was created

linked_evals
string[]

Ids of evaluations where the datapoint is included

linked_datasets
string[]

Ids of all datasets that include the datapoint

metadata
object

Any additional metadata for the datapoint

Response

200 - application/json
result
object